After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 645187 - Set DBUS_SYSTEM_BUS_ADDRESS in environment
Set DBUS_SYSTEM_BUS_ADDRESS in environment
Status: RESOLVED FIXED
Product: jhbuild
Classification: Infrastructure
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2011-03-18 20:46 UTC by Colin Walters
Modified: 2011-04-13 11:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Set DBUS_SYSTEM_BUS_ADDRESS in environment (1.04 KB, patch)
2011-03-18 20:46 UTC, Colin Walters
committed Details | Review

Description Colin Walters 2011-03-18 20:46:16 UTC
If we use the libdbus defaults, nothing will connect to the system
bus.
Comment 1 Colin Walters 2011-03-18 20:46:17 UTC
Created attachment 183763 [details] [review]
Set DBUS_SYSTEM_BUS_ADDRESS in environment
Comment 2 Craig Keogh 2011-03-20 10:40:11 UTC
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 = '/' ?
Comment 3 Colin Walters 2011-03-20 13:48:29 UTC
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.
Comment 4 Craig Keogh 2011-03-22 22:34:45 UTC
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 5 Craig Keogh 2011-03-31 10:18:59 UTC
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?
Comment 6 Frederic Peters 2011-03-31 11:12:21 UTC
Craig, I changed it so it will only set that variable if it wasn't set yet.
Comment 7 Craig Keogh 2011-04-13 11:00:36 UTC
Yes, good catch. Thanks Frederic.

I am going to close this bug and assume the steps as per my comment 4 are still required.