[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1092192: libei: FTBFS: NameError: name 'Attribute' is not defined



Package: src:libei
Version: 1.3.0-1.1
Severity: serious
Tags: ftbfs trixie sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f subprojects/munit
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
ln -s ../munit subprojects/
dh_auto_configure -- \
	-Dauto_features=enabled \
	-Dsd-bus-provider=libsystemd
	cd obj-x86_64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb LC_ALL=C.UTF-8 meson setup .. --wrap-mode=nodownload --buildtype=plain --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=lib/x86_64-linux-gnu -Dpython.bytecompile=-1 -Dauto_features=enabled -Dsd-bus-provider=libsystemd
The Meson build system
Version: 1.6.1
Source dir: /<<PKGBUILDDIR>>
Build dir: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu
Build type: native build
Project name: libei
Project version: 1.3.0
C compiler for the host machine: cc (gcc 14.2.0 "cc (Debian 14.2.0-12) 14.2.0")
C linker for the host machine: cc ld.bfd 2.43.50.20241230
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wno-unused-parameter: YES 
Compiler for C supports arguments -Wmissing-prototypes: YES 
Compiler for C supports arguments -Wno-missing-field-initializers: YES 
Compiler for C supports arguments -Wstrict-prototypes: YES 
Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
Compiler for C supports arguments -Wlogical-op: YES 
Compiler for C supports arguments -Wpointer-arith: YES 
Compiler for C supports arguments -Wuninitialized: YES 
Compiler for C supports arguments -Winit-self: YES 
Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
Compiler for C supports arguments -Wimplicit-fallthrough: YES 
Compiler for C supports arguments -Wredundant-decls: YES 
Compiler for C supports arguments -Wincompatible-pointer-types: YES 
Compiler for C supports arguments -Wformat=2: YES 
Compiler for C supports arguments -Wformat-overflow=2: YES 
Compiler for C supports arguments -Wformat-signedness: YES 
Compiler for C supports arguments -Wformat-truncation=2: YES 
Compiler for C supports arguments -Wmissing-declarations: YES 
Compiler for C supports arguments -Wshift-overflow=2: YES 
Compiler for C supports arguments -Wstrict-overflow=2: YES 
Compiler for C supports arguments -Wswitch: YES 
Checking for function "memfd_create" : YES 
Library m found: YES
Found pkg-config: YES (/usr/bin/pkg-config) 1.8.1
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency epoll-shim found: NO (tried pkgconfig and cmake)
Run-time dependency xkbcommon found: YES 1.7.0
Run-time dependency libevdev found: YES 1.13.3
Run-time dependency libsystemd found: YES 257
Configuring config.h using configuration
Program ei-scanner found: YES (/<<PKGBUILDDIR>>/proto/ei-scanner)
Program xmllint found: NO
Program python3 (attr, jinja2) found: YES (/usr/bin/python3) modules: attr, jinja2

Executing subproject munit 

munit| Project name: munit
munit| Project version: undefined
munit| C compiler for the host machine: cc (gcc 14.2.0 "cc (Debian 14.2.0-12) 14.2.0")
munit| C linker for the host machine: cc ld.bfd 2.43.50.20241230
munit| ../subprojects/munit/meson.build:6: WARNING: Consider using the built-in option for language standard version instead of using "-std=c99".
munit| Build targets in project: 14
munit| Subproject munit finished.

Dependency munit from subproject subprojects/munit found: YES undefined
Program valgrind found: NO
Message: valgrind not found, disabling valgrind test suite
../test/meson.build:109: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build.
C++ compiler for the host machine: c++ (gcc 14.2.0 "c++ (Debian 14.2.0-12) 14.2.0")
C++ linker for the host machine: c++ ld.bfd 2.43.50.20241230
Program python3 found: YES (/usr/bin/python3)
Program python3 (pytest, attr, structlog, dbusmock) found: YES (/usr/bin/python3) modules: pytest, attr, structlog, dbusmock
Program pytest-3 found: YES (/usr/bin/pytest-3)
Program python3 (xdist) found: NO
Configuring test_protocol.py using configuration
Configuring test_scanner.py using configuration
Program black found: YES (/usr/bin/black)
Program ruff found: NO
Build targets in project: 25

libei 1.3.0

  Conditional Features
    liboeffis           : true

  Test options
    valgrind available  : false
    unit tests enabled  : true
    pytest tests enabled: true

  Subprojects
    munit               : YES 1 warnings

  User defined options
    auto_features       : enabled
    buildtype           : plain
    libdir              : lib/x86_64-linux-gnu
    localstatedir       : /var
    prefix              : /usr
    python.bytecompile  : -1
    sd-bus-provider     : libsystemd
    sysconfdir          : /etc
    wrap_mode           : nodownload

Found ninja-1.12.1 at /usr/bin/ninja
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build
	cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j2 -v
[1/149] cc -Isrc/libutil.a.p -Isrc -I../src -I. -I.. -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -Wno-unused-parameter -Wmissing-prototypes -Wno-missing-field-initializers -Wstrict-prototypes -Wstrict-prototypes -Wlogical-op -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation=2 -Wmissing-declarations -Wshift-overflow=2 -Wstrict-overflow=2 -Wswitch -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MQ src/libutil.a.p/util-bits.c.o -MF src/libutil.a.p/util-bits.c.o.d -o src/libutil.a.p/util-bits.c.o -c ../src/util-bits.c
[2/149] cc -Isrc/libutil.a.p -Isrc -I../src -I. -I.. -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -Wno-unused-parameter -Wmissing-prototypes -Wno-missing-field-initializers -Wstrict-prototypes -Wstrict-prototypes -Wlogical-op -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation=2 -Wmissing-declarations -Wshift-overflow=2 -Wstrict-overflow=2 -Wswitch -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MQ src/libutil.a.p/util-list.c.o -MF src/libutil.a.p/util-list.c.o.d -o src/libutil.a.p/util-list.c.o -c ../src/util-list.c
[3/149] cc -Isrc/libutil.a.p -Isrc -I../src -I. -I.. -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -Wno-unused-parameter -Wmissing-prototypes -Wno-missing-field-initializers -Wstrict-prototypes -Wstrict-prototypes -Wlogical-op -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation=2 -Wmissing-declarations -Wshift-overflow=2 -Wstrict-overflow=2 -Wswitch -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MQ src/libutil.a.p/util-logger.c.o -MF src/libutil.a.p/util-logger.c.o.d -o src/libutil.a.p/util-logger.c.o -c ../src/util-logger.c
[4/149] cc -Isrc/libutil.a.p -Isrc -I../src -I. -I.. -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -Wno-unused-parameter -Wmissing-prototypes -Wno-missing-field-initializers -Wstrict-prototypes -Wstrict-prototypes -Wlogical-op -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation=2 -Wmissing-declarations -Wshift-overflow=2 -Wstrict-overflow=2 -Wswitch -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MQ src/libutil.a.p/util-io.c.o -MF src/libutil.a.p/util-io.c.o.d -o src/libutil.a.p/util-io.c.o -c ../src/util-io.c
[5/149] cc -Isrc/libutil.a.p -Isrc -I../src -I. -I.. -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -Wno-unused-parameter -Wmissing-prototypes -Wno-missing-field-initializers -Wstrict-prototypes -Wstrict-prototypes -Wlogical-op -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation=2 -Wmissing-declarations -Wshift-overflow=2 -Wstrict-overflow=2 -Wswitch -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MQ src/libutil.a.p/util-memfile.c.o -MF src/libutil.a.p/util-memfile.c.o.d -o src/libutil.a.p/util-memfile.c.o -c ../src/util-memfile.c
[6/149] cc -Isrc/libutil.a.p -Isrc -I../src -I. -I.. -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -Wno-unused-parameter -Wmissing-prototypes -Wno-missing-field-initializers -Wstrict-prototypes -Wstrict-prototypes -Wlogical-op -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation=2 -Wmissing-declarations -Wshift-overflow=2 -Wstrict-overflow=2 -Wswitch -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MQ src/libutil.a.p/util-memmap.c.o -MF src/libutil.a.p/util-memmap.c.o.d -o src/libutil.a.p/util-memmap.c.o -c ../src/util-memmap.c
[7/149] cc -Isrc/libutil.a.p -Isrc -I../src -I. -I.. -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -Wno-unused-parameter -Wmissing-prototypes -Wno-missing-field-initializers -Wstrict-prototypes -Wstrict-prototypes -Wlogical-op -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation=2 -Wmissing-declarations -Wshift-overflow=2 -Wstrict-overflow=2 -Wswitch -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MQ src/libutil.a.p/util-sources.c.o -MF src/libutil.a.p/util-sources.c.o.d -o src/libutil.a.p/util-sources.c.o -c ../src/util-sources.c
[8/149] cc -Isrc/libutil.a.p -Isrc -I../src -I. -I.. -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -Wno-unused-parameter -Wmissing-prototypes -Wno-missing-field-initializers -Wstrict-prototypes -Wstrict-prototypes -Wlogical-op -Wpointer-arith -Wuninitialized -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough -Wredundant-decls -Wincompatible-pointer-types -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation=2 -Wmissing-declarations -Wshift-overflow=2 -Wstrict-overflow=2 -Wswitch -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MQ src/libutil.a.p/util-strings.c.o -MF src/libutil.a.p/util-strings.c.o.d -o src/libutil.a.p/util-strings.c.o -c ../src/util-strings.c
[9/149] /<<PKGBUILDDIR>>/proto/ei-scanner --component=brei --output=src/brei-proto.h /<<PKGBUILDDIR>>/proto/protocol.xml ../src/brei-proto.h.tmpl
FAILED: src/brei-proto.h 
/<<PKGBUILDDIR>>/proto/ei-scanner --component=brei --output=src/brei-proto.h /<<PKGBUILDDIR>>/proto/protocol.xml ../src/brei-proto.h.tmpl
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/proto/ei-scanner", line 157, in <module>
    inner_attribute_eq = Attribute.__eq__
                         ^^^^^^^^^
NameError: name 'Attribute' is not defined
[10/149] /<<PKGBUILDDIR>>/proto/ei-scanner --component=ei --output=src/ei-proto.h /<<PKGBUILDDIR>>/proto/protocol.xml ../src/ei-proto.h.tmpl
FAILED: src/ei-proto.h 
/<<PKGBUILDDIR>>/proto/ei-scanner --component=ei --output=src/ei-proto.h /<<PKGBUILDDIR>>/proto/protocol.xml ../src/ei-proto.h.tmpl
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/proto/ei-scanner", line 157, in <module>
    inner_attribute_eq = Attribute.__eq__
                         ^^^^^^^^^
NameError: name 'Attribute' is not defined
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j2 -v returned exit code 1
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202501/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:libei, so that this is still
visible in the BTS web page for this package.

Thanks.


Reply to: