[MacPorts] #26924: glib2: new GDBus API can't connect to dbus

MacPorts noreply at macports.org
Wed Oct 20 20:51:00 PDT 2010


#26924: glib2: new GDBus API can't connect to dbus
---------------------------------+------------------------------------------
 Reporter:  devans@…             |       Owner:  ryandesign@…          
     Type:  defect               |      Status:  new                   
 Priority:  Normal               |   Milestone:                        
Component:  ports                |     Version:  1.9.1                 
 Keywords:  patch_attached       |        Port:  glib2                 
---------------------------------+------------------------------------------
 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/26924>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list