Opened 14 years ago

Closed 14 years ago

#26924 closed defect (fixed)

glib2, glib2-devel: new GDBus API can't connect to dbus

Reported by: dbevans (David B. Evans) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: haspatch Cc:
Port: glib2, glib2-devel

Description

When attempting to connect to dbus using the glib2 GDBus API errors similar to the following are generated:

Error connecting: Cannot spawn a message bus without a machine-id: Unable to load /var/lib/dbus/machine-id: Failed to open file '/var/lib/dbus/machine-id': No such file or directory

The problem is that function _g_dbus_get_machine_id() in file gio/gdbusprivate.c hard codes the path to the DBus machine-id file as

/var/lib/dbus/machine-id

while the location of this file installed by dbus in MacPorts is

${prefix}/var/lib/dbus/machine-id

The attached patch fixes the problem and allows the dbus machine-id to be retrieved.

Attachments (2)

patch-glib2-dbus-machine-id.diff (1.3 KB) - added by dbevans (David B. Evans) 14 years ago.
Proposed patch for Portfile
patch-gio_gdbusprivate.c.diff (648 bytes) - added by dbevans (David B. Evans) 14 years ago.
New patchfile for files directory

Download all attachments as: .zip

Change History (10)

Changed 14 years ago by dbevans (David B. Evans)

Proposed patch for Portfile

Changed 14 years ago by dbevans (David B. Evans)

New patchfile for files directory

comment:1 Changed 14 years ago by dbevans (David B. Evans)

Committed in r72697, maintainer timeout.

comment:2 Changed 14 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Sorry, I totally missed this ticket. Thanks for taking care of it.

comment:4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added; patch_attached removed

comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Port: glib2-devel added
Summary: glib2: new GDBus API can't connect to dbusglib2, glib2-devel: new GDBus API can't connect to dbus

Merged to glib2-devel in r72698.

comment:6 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: closedreopened

comment:7 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from ryandesign@… to ryandesign@…
Status: reopenednew

comment:8 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.