[Pkg-ayatana-devel] Bug#1074645: user-session-migration: FTBFS: AttributeError: 'DebhelperTests' object has no attribute 'assertEquals'

Lucas Nussbaum lucas at debian.org
Tue Jul 2 13:44:02 BST 2024


Source: user-session-migration
Version: 0.4.2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240702 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[5]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> nosetests3
> E/usr/lib/python3.12/unittest/case.py:580: RuntimeWarning: TestResult has no addDuration method
>   warnings.warn("TestResult has no addDuration method",
> /usr/lib/python3.12/unittest/case.py:580: RuntimeWarning: TestResult has no addDuration method
>   warnings.warn("TestResult has no addDuration method",
> ........
> ======================================================================
> ERROR: build the package with migration argument
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tests/debhelper_tests.py", line 89, in test_build_with_migrations
>     self.assertEquals(f.read().count("user-session-migration"), 1)
>     ^^^^^^^^^^^^^^^^^
> AttributeError: 'DebhelperTests' object has no attribute 'assertEquals'
> -------------------- >> begin captured logging << --------------------
> debhelper_tests: DEBUG: {'SCHROOT_GID': '1001', 'DEB_HOST_MULTIARCH': 'x86_64-linux-gnu', 'DEB_HOST_GNU_SYSTEM': 'linux-gnu', 'LC_ALL': 'C.UTF-8', 'DEB_BUILD_GNU_TYPE': 'x86_64-linux-gnu', 'DEB_TARGET_ARCH_LIBC': 'gnu', 'FFLAGS': '-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection', 'DEB_BUILD_ARCH_ENDIAN': 'little', 'DEB_BUILD_GNU_SYSTEM': 'linux-gnu', 'CFLAGS_FOR_BUILD': '-g -O2', 'OBJCXXFLAGS_FOR_BUILD': '-g -O2', 'DEB_BUILD_ARCH_BITS': '64', 'DEB_HOST_ARCH': 'amd64', 'LDFLAGS_FOR_BUILD': '', 'DEB_TARGET_ARCH_ENDIAN': 'little', 'PWD': '/<<PKGBUILDDIR>>', 'SOURCE_DATE_EPOCH': '1711365475', 'OBJCFLAGS_FOR_BUILD': '-g -O2', 'OBJCXXFLAGS': '-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection', 'DEB_HOST_ARCH_BITS': '64', 'LANG': 'C.UTF-8', 'MAKEFLAGS': 'w -j8 --jobserver-auth=3,4 -- ARGS=--verbose\\ -j8', 'SCHROOT_GROUP': 'user42', 'DEB_TARGET_ARCH': 'amd64', 'DEB_HOST_GNU_CPU': 'x86_64', 'DEB_BUILD_ARCH_LIBC': 'gnu', 'MFLAGS': '-w -j8 --jobserver-auth=3,4', 'DEB_TARGET_ARCH_BITS': '64', 'CXXFLAGS_FOR_BUILD': '-g -O2', 'ASFLAGS': '', 'DEB_BUILD_ARCH_CPU': 'amd64', 'LC_COLLATE': 'C.UTF-8', 'SCHROOT_ALIAS_NAME': 'unstable', 'DEB_HOST_ARCH_OS': 'linux', 'SHELL': '/bin/sh', 'FCFLAGS': '-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection', 'DEB_HOST_ARCH_CPU': 'amd64', 'ARGS': '--verbose -j8', 'SCHROOT_USER': 'user42', 'PATH': '/tmp/tmpm9iwfb1_:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games', 'DEB_BUILD_ARCH_ABI': 'base', 'CPPFLAGS_FOR_BUILD': '', 'DEB_BUILD_ARCH': 'amd64', 'FFLAGS_FOR_BUILD': '-g -O2', 'DEB_HOST_ARCH_LIBC': 'gnu', 'SCHROOT_SESSION_ID': 'sid-amd64-sbuild-118e1dae-803d-4749-bbb7-d7e035ab2970', 'DEB_TARGET_ARCH_CPU': 'amd64', 'DEB_HOST_GNU_TYPE': 'x86_64-linux-gnu', 'DEB_BUILD_ARCH_OS': 'linux', 'FCFLAGS_FOR_BUILD': '-g -O2', 'DFLAGS_FOR_BUILD': '-frelease', 'LOGNAME': 'user42', 'CPPFLAGS': '-Wdate-time -D_FORTIFY_SOURCE=2', 'DEB_TARGET_MULTIARCH': 'x86_64-linux-gnu', 'DEB_BUILD_GNU_CPU': 'x86_64', 'DEB_TARGET_ARCH_OS': 'linux', 'USER': 'user42', 'DEB_HOST_ARCH_ABI': 'base', 'DEB_BUILD_MULTIARCH': 'x86_64-linux-gnu', 'MAKEOVERRIDES': '${-*-command-variables-*-}', 'LDFLAGS': '-Wl,-z,relro -Wl,-z,now', 'DEB_TARGET_GNU_TYPE': 'x86_64-linux-gnu', 'CTEST_OUTPUT_ON_FAILURE': '1', 'DEB_TARGET_ARCH_ABI': 'base', 'XDG_RUNTIME_DIR': '/tmp/dh-xdg-rundir-MGjbWjw7', 'CFLAGS': '-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection', 'SCHROOT_UID': '1001', 'SCHROOT_COMMAND': 'dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -sa', 'DFLAGS': '-frelease', 'DEB_TARGET_GNU_CPU': 'x86_64', 'ASFLAGS_FOR_BUILD': '', 'APT_CONFIG': '/var/lib/sbuild/apt.conf', 'HOME': '/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home', 'DEB_RULES_REQUIRES_ROOT': 'no', 'DEB_TARGET_GNU_SYSTEM': 'linux-gnu', 'DEB_HOST_ARCH_ENDIAN': 'little', 'OBJCFLAGS': '-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection', 'SCHROOT_CHROOT_NAME': 'sid-amd64-sbuild', 'DEB_BUILD_MAINT_OPTIONS': 'hardening=+all', 'DH_INTERNAL_BUILDFLAGS': '1', 'CXXFLAGS': '-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection', 'DH_INTERNAL_OVERRIDE': 'dh_auto_test', 'MAKELEVEL': '6', 'PERLLIB': '/tmp/tmpm9iwfb1_:'}
> --------------------- >> end captured logging << ---------------------
> 
> ----------------------------------------------------------------------
> Ran 9 tests in 8.611s
> 
> FAILED (errors=1)
> make[5]: *** [CMakeFiles/check.dir/build.make:73: CMakeFiles/check] Error 1
> make[5]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> make[4]: *** [CMakeFiles/Makefile2:122: CMakeFiles/check.dir/all] Error 2
> make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> make[3]: *** [CMakeFiles/Makefile2:129: CMakeFiles/check.dir/rule] Error 2
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> make[2]: *** [Makefile:172: check] Error 2
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> dh_auto_test: error: cd obj-x86_64-linux-gnu && make -j8 check ARGS\+=--verbose ARGS\+=-j8 returned exit code 2


The full build log is available from:
http://qa-logs.debian.net/2024/07/02/user-session-migration_0.4.2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240702;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240702&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-ayatana-devel mailing list