Package: python3-dbusmock Version: 0.32.1-1 Severity: normal Tags: patch python3-dbusmock hasn't used dbus-launch(1) from the dbus-x11 package since 2017, but still Depends on it.
The obvious solution is to replace Depends: dbus-x11 by Depends: dbus, matching the build dependencies; but in fact dbus is a larger dependency than is actually necessary, so it would be better to set the Depends and Build-Depends to dbus-daemon (available since Debian 12). The attached patch is also available at https://salsa.debian.org/python-team/packages/python-dbusmock/-/merge_requests/2 which I will update to include a Closes: for this bug number when I receive it. Thanks, smcv
From: Simon McVittie <[email protected]> Date: Thu, 22 Aug 2024 08:50:50 +0100 Subject: d/control: Depend on dbus-daemon instead of dbus, dbus-x11 In 2017 (#836053) the build-dependency and the dependency for python-dbus were swapped from dbus-x11 to dbus, but python3-dbus still depended on dbus-x11. This is no longer necessary. The dbus package sets up dbus-daemon to provide the well-known system bus, but this is unnecessary for dbusmock; all it actually needs is the dbus-daemon executable and enough configuration to run it as a session bus, for which the dbus-daemon package is sufficient (since Debian 12). Closes: #-1 --- debian/control | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index a5a4ec8..f9de27d 100644 --- a/debian/control +++ b/debian/control @@ -10,7 +10,7 @@ Build-Depends-Indep: upower, python3-gi, python3-pytest, gir1.2-glib-2.0, - dbus, + dbus-daemon, libnotify-bin Maintainer: Debian Python Team <[email protected]> Uploaders: Martin Pitt <[email protected]> @@ -27,7 +27,7 @@ Depends: ${python3:Depends}, python3-dbus, python3-gi, gir1.2-glib-2.0, - dbus-x11, + dbus-daemon, ${misc:Depends} Suggests: python3-pytest Description: mock D-Bus objects for tests

