[Pkg-utopia-maintainers] Bug#652487: dbus-x11: please explain how to setup D-Bus to launch applications from within a chroot

Luca Capello luca at pca.it
Sat Dec 17 18:19:14 UTC 2011


Package: dbus-x11
Version: 1.4.16-1
Severity: wishlist
Usertags: pca.it-virtualization

Hi there!

I am trying to setup Empathy in a schroot and found out that it is quite
difficult to get all the D-Bus stuff to work together [1][2][3][4].
Moreover, I could not find a complete guide about what is needed: thus,
I am here to understand the correct procedures to then write an entry
for README.Debian.

[1] <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599518#15>
[2] <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619636#70>
[3] <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649744>
[4] <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649884>

First of all, here what my /etc/schroot/desktop/fstab [1] contains:

--8<---------------cut here---------------start------------->8---
## D-Bus support
/run/dbus       /run/dbus       none    rw,bind         0       0
/var/lib/dbus  /var/lib/dbus   none    ro,bind         0       0
## PulseAudio device discovery support
### <http://bugs.debian.org/649884>
/run/udev       /run/udev       none    rw,bind         0       0
--8<---------------cut here---------------end--------------->8---

[5] 

However, I found two major problems, which are maybe correlated:

1) D-Bus services not provided by any .service files
=====
luca at gismo:~$ schroot -c sid-desktop

(sid-desktop)luca at gismo:~$ epiphany
Gkr-Message: secret service operation failed: \
 The name org.freedesktop.secrets was not provided by any .service files

(sid-desktop)luca at gismo:~$ empathy

** (empathy:21365): WARNING **: _nm_object_get_property: \
 Error getting 'WirelessHardwareEnabled' for /org/freedesktop/NetworkManager: \
 (9) Rejected send message, 2 matched rules; type="method_call", \
 sender=":1.29" (uid=1000 pid=21365 comm="empathy ") \
 interface="org.freedesktop.DBus.Properties" member="Get" error name="(unset)" \
 requested_reply="0" destination="org.freedesktop.NetworkManager" \
 (uid=0 pid=1691 comm="/usr/sbin/NetworkManager ")


** (empathy:21365): WARNING **: _nm_object_get_property: \
 Error getting 'WwanHardwareEnabled' for [same as above]


** (empathy:21365): WARNING **: _nm_object_get_property: \
 Error getting 'WimaxHardwareEnabled' for [same as above]


** (empathy:21365): WARNING **: _nm_object_get_property: \
 Error getting 'State' for [same as above]


** (empathy:21365): WARNING **: _nm_object_get_property: \
 Error getting 'State' for [same as above]

(empathy:21365): folks-DEBUG: individual-aggregator.vala:305: Setting primary store IDs to defaults.
(empathy:21365): folks-DEBUG: individual-aggregator.vala:333: Primary store IDs are 'key-file' and ''.

(empathy:21365): libnotify-WARNING **: Failed to connect to proxy

(empathy:21365): folks-WARNING **: Error preparing Backend 'telepathy': \
 The name org.freedesktop.Telepathy.AccountManager was not provided by any .service files

(sid-desktop)luca at gismo:~
=====

   If I have understood correctly, this is because *outside* the chroot
   D-Bus could not find .service files in /usr/share/dbus-1/services/.
   This is normal, given that the packages shipping these files are not
   installed *outside* the chroot.

   These problems go away if I clear DBUS_SESSION_BUS_ADDRESS before
   starting the applications above.  This is done automatically adding
   the 'environment-filter=DBUS' to the corresponding stanza in
   /etc/schroot/schroot.conf.

2) even after having cleared DBUS_SESSION_BUS_ADDRESS, however, empathy
   gave the same error about the 'telepathy' backend.  The solution
   seems to indeed clear DBUS_SESSION_BUS_ADDRESS, but only if
   /var/lib/dbus/machine-id contains a value different than the one
   *outside* the chroot.

   This is done not bind-mounting /var/lib/dbus in the chroot, something
   which is in contrast with what Steve McIntyre (Cc:ed) reported about
   one year ago for PulseAudio [5].  Please note that I have already
   reported that bind-mounting /var/lib/dbus or not makes no difference
   for me to have PulseAudio working in a chroot [4].  Is this a bug in
   empathy?

Thx, bye,
Gismo / Luca

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dbus-x11 depends on:
ii  dbus      1.4.16-1 
ii  libc6     2.13-21  
ii  libx11-6  2:1.4.4-4

dbus-x11 recommends no packages.

dbus-x11 suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20111217/f5186965/attachment-0001.pgp>


More information about the Pkg-utopia-maintainers mailing list