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)
Change History (10)
Changed 14 years ago by dbevans (David B. Evans)
Attachment: | patch-glib2-dbus-machine-id.diff added |
---|
Changed 14 years ago by dbevans (David B. Evans)
Attachment: | patch-gio_gdbusprivate.c.diff added |
---|
New patchfile for files directory
comment:2 Changed 14 years ago by dbevans (David B. Evans)
Resolution: | → fixed |
---|---|
Status: | new → closed |
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 dbus → glib2, 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: | closed → reopened |
comment:7 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from ryandesign@… to ryandesign@… |
---|---|
Status: | reopened → new |
comment:8 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Proposed patch for Portfile