GNOME Bugzilla – Bug 645187
Set DBUS_SYSTEM_BUS_ADDRESS in environment
Last modified: 2011-04-13 11:00:36 UTC
If we use the libdbus defaults, nothing will connect to the system bus.
Created attachment 183763 [details] [review] Set DBUS_SYSTEM_BUS_ADDRESS in environment
Thank you. I appreciate the patch to help make JHBuild & GNOME sandbox better. I don't understand the comment. What does 'If libdbus is built in the root' mean? Does it mean if built when .jhbuildrc prefix = '/' ?
No, simply when you build libdbus via jhbuild. libdbus will use $prefix for the default system bus address, when it shouldn't, since we won't run a system bus inside jhbuild.
The JHBuild manual [1] guides the user to perform the following. Is this still necessary with DBUS_SYSTEM_BUS_ADDRESS set per your patch? $ rm -rf /opt/gnome/var/run/dbus $ ln -s /var/run/dbus /opt/gnome/var/run/dbus $ rm -rf /opt/gnome/var/lib/dbus/machine-id $ ln -s /var/lib/dbus/machine-id /opt/gnome/var/lib/dbus/machine-id [1] http://library.gnome.org/devel/jhbuild/unstable/jhbuild-and-gnome.html.en#running-gnome
Comment on attachment 183763 [details] [review] Set DBUS_SYSTEM_BUS_ADDRESS in environment I modified the comment to improve clarity and committed: http://git.gnome.org/browse/jhbuild/commit/?id=fdb014a4c39bade4d5b8380dff2706d5c8a427a1 Colin, does the documentation need to update as per my comment 4?
Craig, I changed it so it will only set that variable if it wasn't set yet.
Yes, good catch. Thanks Frederic. I am going to close this bug and assume the steps as per my comment 4 are still required.