Bug#998062: Please change default dbus implementation to dbus-broker

Michael Biebl biebl at debian.org
Fri Oct 29 11:11:39 BST 2021


Package: at-spi2-core
Version: 2.42.0-1
Severity: wishlist
Tags: patch
X-Debbugs-Cc: bluca at debian.org, smcv at debian.org

Hi,

I currently have dbus-broker installed and enabled:

michael at pluto:~$ apt-cache policy dbus-broker
dbus-broker:
  Installed: 29-2
  Candidate: 29-2
  Version table:
 *** 29-2 500
        500 http://ftp.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status
michael at pluto:~$ systemctl status dbus.service
* dbus-broker.service - D-Bus System Message Bus
     Loaded: loaded (/lib/systemd/system/dbus-broker.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2021-10-29 10:58:51 CEST; 13min ago
TriggeredBy: * dbus.socket
       Docs: man:dbus-broker-launch(1)
   Main PID: 591 (dbus-broker-lau)
      Tasks: 2 (limit: 19028)
     Memory: 5.8M
        CPU: 622ms
     CGroup: /system.slice/dbus-broker.service
             |-591 /usr/bin/dbus-broker-launch --scope system --audit
             `-596 dbus-broker --log 4 --controller 9 --machine-id 567a68a5c2672114bcf5192d00000008 --max-bytes 536870912 --max-fds >

Oct 29 10:58:51 pluto systemd[1]: Starting D-Bus System Message Bus...
Oct 29 10:58:51 pluto systemd[1]: Started D-Bus System Message Bus.
Oct 29 10:58:51 pluto dbus-broker-launch[591]: AppArmor enabled, but not supported. Ignoring.
Oct 29 10:58:51 pluto dbus-broker-lau[591]: Ready



Yet, I still see that at-spi2-core launches a dbus-daemon instance
itself:

michael at pluto:~$ ps aux | grep dbus
message+     591  0.0  0.0   9744  4232 ?        Ss   10:58   0:00 /usr/bin/dbus-broker-launch --scope system --audit
message+     596  0.0  0.0   6988  4468 ?        S    10:58   0:00 dbus-broker --log 4 --controller 9 --machine-id 567a68a5c2672114bcf5192d00000008 --max-bytes 536870912 --max-fds 4096 --max-matches 131072 --audit
michael     1643  0.0  0.0   9540  3804 ?        Ss   10:59   0:00 /usr/bin/dbus-broker-launch --scope user
michael     1711  0.0  0.0   7080  4616 ?        S    10:59   0:00 dbus-broker --log 4 --controller 10 --machine-id 567a68a5c2672114bcf5192d00000008 --max-bytes 100000000000000 --max-fds 25000000000000 --max-matches 5000000000
michael     2062  0.0  0.0   8024  4256 ?        S    10:59   0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3


This can be fixed by building at-spi2-core with
-Ddefault_bus=dbus-broker
This way, bus/at-spi-bus-launcher.c will first try to use dbus-broker
and if not available fall back to dbus-daemon.

I rebuilt the package with the attached patch and applied and
successfully tested
- dbus-broker installed: → dbus-broker is used
- dbus-broker not installed → dbus-daemon is used

I've CCed Simon and Luca as maintainers of dbus and dbus-broker, in case
they have some input on this matter.


Regards,
Michael



-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.14.0-3-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages at-spi2-core depends on:
ii  libatspi2.0-0  2.42.0-1
ii  libc6          2.32-4
ii  libdbus-1-3    1.12.20-3
ii  libglib2.0-0   2.70.0-3
ii  libsystemd0    249.5-1
ii  libx11-6       2:1.7.2-2+b1
ii  libxtst6       2:1.2.3-1

at-spi2-core recommends no packages.

at-spi2-core suggests no packages.

-- no debconf information
-------------- next part --------------
diff -Nru at-spi2-core-2.42.0/debian/rules at-spi2-core-2.42.0/debian/rules
--- at-spi2-core-2.42.0/debian/rules	2021-09-19 01:23:16.000000000 +0200
+++ at-spi2-core-2.42.0/debian/rules	2021-10-29 11:05:43.000000000 +0200
@@ -7,8 +7,10 @@
 
 override_dh_auto_configure:
 	ac_cv_lib_ICE_IceConnectionNumber=no \
-	dh_auto_configure -- -Dintrospection=yes \
-			-Ddocs=true
+	dh_auto_configure -- \
+		-Dintrospection=yes \
+		-Ddocs=true \
+		-Ddefault_bus=dbus-broker
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))


More information about the Pkg-a11y-devel mailing list