Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903345 - sys-apps/accountsservice-23.13.9: Without dev-python/python-dbusmock, emerge fails with "AttributeError: module 'dbusmock' has no attribute 'DBusTestCase'"
Summary: sys-apps/accountsservice-23.13.9: Without dev-python/python-dbusmock, emerge ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-28 18:00 UTC by Bernd Feige
Modified: 2023-03-28 20:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Feige 2023-03-28 18:00:12 UTC
Either sys-apps/accountsservice-23.13.9 should build-depend upon dev-python/python-dbusmock, or the unittests needing it disabled.

Error: 
Program [1munittest_inspector.py[0m found: [1;32mYES[0m (/var/tmp/portage/sys-apps/accountsservice-23.13.9/work/accountsservice-23.13.9/tests/unittest_inspector.py)

tests/meson.build:49:8: [1;31mERROR:[0m Command `/var/tmp/portage/sys-apps/accountsservice-23.13.9/work/accountsservice-23.13.9/tests/unittest_inspector.py /var/tmp/portage/sys-apps/accountsservice-23.13.9/work/accountsservice-23.13.9/tests/test-libaccountsservice.py` failed with status 1.

A full log can be found at [1m/var/tmp/portage/sys-apps/accountsservice-23.13.9/work/accountsservice-23.13.9-build/meson-logs/meson-log.txt[0m

In meson-log.txt:

--- stderr ---
Traceback (most recent call last):
  File "/var/tmp/portage/sys-apps/accountsservice-23.13.9/work/accountsservice-2
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/var/tmp/portage/sys-apps/accountsservice-23.13.9/work/accountsservice-2
    class AccountsServiceTestBase(dbusmock.DBusTestCase):
                                  ^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'dbusmock' has no attribute 'DBusTestCase'


Reproducible: Always
Comment 1 Bernd Feige 2023-03-28 18:03:57 UTC
Note: My use flags for sys-apps/accountsservice are
introspection systemd -doc -elogind -gtk-doc -selinux -test
Comment 2 Larry the Git Cow gentoo-dev 2023-03-28 20:50:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dda6ecd73dccbefa8955d9482d69fd11a5fa2e2f

commit dda6ecd73dccbefa8955d9482d69fd11a5fa2e2f
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-03-28 20:50:15 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-03-28 20:50:15 +0000

    sys-apps/accountsservice: disable tests when USE="-test"
    
    Closes: https://bugs.gentoo.org/903345
    Signed-off-by: David Seifert <soap@gentoo.org>

 sys-apps/accountsservice/accountsservice-23.13.9.ebuild | 5 +++++
 1 file changed, 5 insertions(+)