#1150020 libsecret: FTBFS: AttributeError: 'TestStore' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?

#1150020#5
Date:
2026-10-05 12:23:48 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

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

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 cannot 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:libsecret, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
  if not isinstance(_get_event_loop_policy(), GLibEventLoopPolicy):
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/libsecret/test-py-store.py", line 64, in on_result_ready
    self.assertEquals(True, stored)
    ^^^^^^^^^^^^^^^^^
AttributeError: 'TestStore' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
..
----------------------------------------------------------------------
Ran 2 tests in 0.162s

OK
==============================================================================

=================================== 20/25 ====================================
test:         javascript - libsecret:test-js-lookup
start time:   15:48:09
duration:     0.13s
result:       exit status 0
command:      MESON_TEST_ITERATION=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libsecret MALLOC_PERTURB_=46 GI_TYPELIB_PATH=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libsecret MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /usr/bin/dbus-run-session /usr/bin/gjs /<<PKGBUILDDIR>>/libsecret/test-js-lookup.js
==============================================================================

=================================== 21/25 ====================================
test:         javascript - libsecret:test-js-clear
start time:   15:48:09
duration:     0.12s
result:       exit status 0
command:      MESON_TEST_ITERATION=1 MALLOC_PERTURB_=25 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libsecret GI_TYPELIB_PATH=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libsecret MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /usr/bin/dbus-run-session /usr/bin/gjs /<<PKGBUILDDIR>>/libsecret/test-js-clear.js
==============================================================================

=================================== 22/25 ====================================
test:         javascript - libsecret:test-js-store
start time:   15:48:09
duration:     0.13s
result:       exit status 0
command:      MESON_TEST_ITERATION=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libsecret GI_TYPELIB_PATH=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libsecret MALLOC_PERTURB_=196 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /usr/bin/dbus-run-session /usr/bin/gjs /<<PKGBUILDDIR>>/libsecret/test-js-store.js
==============================================================================

=================================== 23/25 ====================================
test:         vala - libsecret:test-vala-lang
start time:   15:48:09
duration:     0.10s
result:       exit status 0
command:      MESON_TEST_ITERATION=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libsecret MALLOC_PERTURB_=229 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /usr/bin/dbus-run-session /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libsecret/test-vala-lang
----------------------------------- stdout -----------------------------------
TAP version 14
# random seed: R02S10ac2ee1106bbf9f01baf35cfe034069
1..8
# Start of vala tests
# Start of attributes tests
ok 1 /vala/attributes/validate
# End of attributes tests
# Start of lookup tests
# GLib-GIO-DEBUG: GTask secret_service_async_initable_init_async (source object: 0x55578f02f2d0, source tag: 0x7f46127547b0) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program.
ok 2 /vala/lookup/sync
ok 3 /vala/lookup/async
ok 4 /vala/lookup/no-name
# End of lookup tests
# Start of store tests
ok 5 /vala/store/sync
ok 6 /vala/store/async
# End of store tests
# Start of clear tests
ok 7 /vala/clear/sync
ok 8 /vala/clear/async
# End of clear tests
# End of vala tests
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
==============================================================================

=================================== 24/25 ====================================
test:         vala - libsecret:test-vala-unstable
start time:   15:48:09
duration:     0.08s
result:       exit status 0
command:      MESON_TEST_ITERATION=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libsecret MALLOC_PERTURB_=41 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /usr/bin/dbus-run-session /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libsecret/test-vala-unstable
----------------------------------- stdout -----------------------------------
TAP version 14
# random seed: R02S6963fe5d0f3c336c4c489ee6a11ea9e8
1..1
# Start of vala tests
# Start of unstable tests
ok 1 /vala/unstable/read-alias
# End of unstable tests
# End of vala tests
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
==============================================================================

==================================== 9/25 ====================================
test:         libsecret - libsecret:test-service
start time:   15:47:56
duration:     13.97s
result:       exit status 0
command:      MALLOC_PERTURB_=78 MESON_TEST_ITERATION=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libsecret MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /usr/bin/dbus-run-session /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libsecret/test-service
----------------------------------- stdout -----------------------------------
TAP version 14
# random seed: R02S952655e1de030c671a4bfe25fe02401b
1..12
# Start of service tests
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
ok 1 /service/get-sync
# slow test /service/get-sync executed in 2.07 secs
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
# GLib-GIO-DEBUG: GTask secret_service_async_initable_init_async (source object: 0x5651571c5550, source tag: 0x56512fc8d540) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program.
# GLib-GIO-DEBUG: GTask secret_service_async_initable_init_async (source object: 0x5651571c5550, source tag: 0x56512fc8d540) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program.
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
ok 2 /service/get-async
# slow test /service/get-async executed in 1.07 secs
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
ok 3 /service/get-more-sync
# slow test /service/get-more-sync executed in 1.09 secs
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
# GLib-GIO-DEBUG: GTask secret_service_async_initable_init_async (source object: 0x5651571c1330, source tag: 0x56512fc8d540) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program.
# GLib-GIO-DEBUG: GTask secret_service_async_initable_init_async (source object: 0x5651571d6950, source tag: 0x56512fc8d540) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program.
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
ok 4 /service/get-more-async
# slow test /service/get-more-async executed in 1.09 secs
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
ok 5 /service/open-sync
# slow test /service/open-sync executed in 1.07 secs
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
# GLib-GIO-DEBUG: GTask secret_service_async_initable_init_async (source object: 0x5651571d18e0, source tag: 0x56512fc8d540) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program.
# GLib-GIO-DEBUG: GTask secret_service_async_initable_init_async (source object: 0x5651571c1310, source tag: 0x56512fc8d540) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program.
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
ok 6 /service/open-async
# slow test /service/open-async executed in 1.07 secs
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
ok 7 /service/open-more-sync
# slow test /service/open-more-sync executed in 1.09 secs
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
# GLib-GIO-DEBUG: GTask secret_service_async_initable_init_async (source object: 0x5651571c1310, source tag: 0x56512fc8d540) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program.
# GLib-GIO-DEBUG: GTask secret_service_async_initable_init_async (source object: 0x5651571d8f40, source tag: 0x56512fc8d540) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program.
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
ok 8 /service/open-more-async
# slow test /service/open-more-async executed in 1.09 secs
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
# GLib-GIO-DEBUG: GTask secret_service_async_initable_init_async (source object: 0x5651571c1040, source tag: 0x56512fc8d540) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program.
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
ok 9 /service/connect-sync
# slow test /service/connect-sync executed in 1.07 secs
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
# GLib-GIO-DEBUG: GTask secret_service_async_initable_init_async (source object: 0x5651571d94e0, source tag: 0x56512fc8d540) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program.
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
ok 10 /service/connect-ensure-sync
# slow test /service/connect-ensure-sync executed in 1.08 secs
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
ok 11 /service/ensure-sync
# slow test /service/ensure-sync executed in 1.09 secs
# GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
# GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
ok 12 /service/ensure-async
# slow test /service/ensure-async executed in 1.08 secs
# End of service tests
==============================================================================

=================================== 25/25 ====================================
test:         secret-tool - libsecret:test-secret-tool.sh
start time:   15:48:10
duration:     0.19s
result:       exit status 0
command:      MESON_TEST_ITERATION=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 abs_top_builddir=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu MALLOC_PERTURB_=183 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /usr/bin/dbus-run-session /<<PKGBUILDDIR>>/tool/test-secret-tool.sh
----------------------------------- stdout -----------------------------------
1..6
ok 1 /secret-tool/store1
ok 2 /secret-tool/store2
ok 3 /secret-tool/lookup
ok 4 /secret-tool/search
ok 5 /secret-tool/clear
ok 6 /secret-tool/search-after-clear
----------------------------------- stderr -----------------------------------
attribute.foo = bar
attribute.apple = orange
attribute.foo = bar
attribute.foo = bar
==============================================================================


Summary of Failures:

15/25 libsecret - libsecret:test-collection       FAIL             1.19s   (exit status 134 or signal 6 SIGABRT)

Ok:                24
Fail:              1
dh_auto_test: error: cd obj-x86_64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb LC_ALL=C.UTF-8 MESON_TESTTHREADS=2 meson test --verbose --timeout-multiplier 6 returned exit code 1
make[1]: *** [debian/rules:16: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1150020#10
Date:
2026-10-05 16:23:49 UTC
From:
To:
90% on machines with 1 CPU
25% on machines with 2 CPUs.

In cases like this one, I recommend GRUB_CMDLINE_LINUX="nr_cpus=1" to reproduce.
If that does not work, I can offer a VM, as always.

Thanks.

#1150020#13
Date:
2026-10-09 10:55:03 UTC
From:
To:
Hello,

Bug #1150020 in libsecret reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/gnome-team/libsecret/-/commit/c5537b51042aab90ec29bffdb6b6e6468ae29355
------------------------------------------------------------------------
Restore build test setup delay patch

Revert "Remove remaining patch: no longer needed"

This reverts commit c3f15af5115844dd61a291fb39d2786f12b3d626.

This at least fixes the build on Salsa CI

Closes: #1150020
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1150020

#1150020#20
Date:
2026-10-09 11:12:26 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libsecret, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1150020@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jeremy Bícha <jbicha@ubuntu.com> (supplier of updated libsecret package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 09 Oct 2026 12:53:54 +0200
Source: libsecret
Built-For-Profiles: derivative.ubuntu noudeb
Architecture: source
Version: 0.21.8.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Changed-By: Jeremy Bícha <jbicha@ubuntu.com>
Closes: 1150020
Changes:
 libsecret (0.21.8.2-2) unstable; urgency=medium
 .
   * Restore build test setup delay patch (Closes: #1150020)
Checksums-Sha1:
 1f8a13bff22284fbbcadd89f50c7a8b6bc23932d 2767 libsecret_0.21.8.2-2.dsc
 818752009b3378899b906ea33d76075ca3dc8bbf 11012 libsecret_0.21.8.2-2.debian.tar.xz
 c5915657595be5a6c5ecf4a0ed586da1eefbcdeb 12125 libsecret_0.21.8.2-2_source.buildinfo
Checksums-Sha256:
 a17975c643eec01e1c4e2d2ab96bbf5efe29169f27f6b63a6dc9555e2df95648 2767 libsecret_0.21.8.2-2.dsc
 46b261bedb28c28b45bbfc61c8c37ab8573d41e3576fd6f0b74628f26146eb36 11012 libsecret_0.21.8.2-2.debian.tar.xz
 2994b4ce997d91408d67093d2b59ac4ced9a413269f779fd9221895e7f5bf256 12125 libsecret_0.21.8.2-2_source.buildinfo
Files:
 cef0290a6517964e33b7aec2e82d6b21 2767 devel optional libsecret_0.21.8.2-2.dsc
 faa367cb569b344c394cee0bd383eb3c 11012 devel optional libsecret_0.21.8.2-2.debian.tar.xz
 7ac5b35ff6371749ba619996ce1aef61 12125 devel optional libsecret_0.21.8.2-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEETQvhLw5HdtiqzpaW5mx3Wuv+bH0FAmrIx+0ACgkQ5mx3Wuv+
bH2dZhAAvOUopxDUx5i/ecKa2q1gq5rJerHCzdDA1d9v+cys/NXElNtpMkVA/ORB
8QQNzUr5tntICU4/isE53LVqPsUNWs788wHtPnZoPu9i+mCQbef5zhmFCXoqN9V6
NHYo4tUJvLJoEyyBQqwF4uxiL8AKpllrMvbeC63OeFmT3qsj11KW4Os0Au7aKHPG
5i8aOgX0+qDWrLoHaXc+aU4JeIqRJaiaDVn1t5ezblwRyQ0hLdQCrnLlCz5DJHhD
bXWwGGpYiIstOT7HNc+nFRy5xVv4i/fVhCohnr8j3X/sx1egpSUKzwUDsn+bCZTJ
+ftWOyiI+3gaYJwfJqb5MXOVoUnMjjltfwl7J/ODTkohIglyEd9wmSDmOPyTj/Jy
YCJstqELBDgMMOA3o7BbktDVCLFtP/cwKYI/VG2FiVWJZcVPQtr18S6SubhqgaMZ
SEFLqdZv7GDvXrApkOJQ9wUxlnT9BzHI9AS7O6VyV7f1naJuKXtGNvgK7h+LQi9b
Gs9j6+5j/XxBVwp77u0EBKMk02j5VOGo4uVU33pWNNw3BIoKJY74hFBdENxRQ7Sq
XGc49UxXhdAl2mMyaMUkTpRImeKEq1i6/lPG9r/UJFoiGvJXXlw1G8I3lbFxqMq7
rl2vOV4Jul3H8RII4PQ6arH8nVovG/orr0vKwSZ+ZD38wBjnBzc=
=M8sC
-----END PGP SIGNATURE-----