[MacPorts] #16833: dbus autolaunch fails because of '/' characters in $DISPLAY
MacPorts
noreply at macports.org
Thu Jan 8 15:30:40 PST 2009
#16833: dbus autolaunch fails because of '/' characters in $DISPLAY
------------------------------+---------------------------------------------
Reporter: mp@… | Owner: macsforever2000@…
Type: defect | Status: closed
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Resolution: fixed | Keywords:
Port: dbus |
------------------------------+---------------------------------------------
Comment(by mta@…):
> This may still be related to dbus. I activated dbus 1.2.4_2 and
reverted the gnucash launch script back to the vanilla version. If I run
'gnucash' from the command line I get the error dialog from gnucash about
not being able to find default values. If I try 'dbus-launch gnucash'
*or* 'dbus-launch --sh-syntax' I get the following error...
>
> Failed to start message bus: In D-Bus address, character '+' should have
been escaped
> EOF in dbus-launch reading address from bus daemon
This message occurs if you build dbus as yourself instead of using sudo
(you must use sudo to install it, but not necessarily to build it
depending on how you've built macports itself). The config file for dbus
gets the value for DBUS_TEST_SOCKET_DIR from TMPDIR if it is defined. On
Leopard TMPDIR has a value like
/var/folders/XO/XOAhu-l42RWX5U+kNPkZqU+++TI/-Tmp-/
This doesn't work because dbus doesn't like the "+" characters in it.
Besides it really should be using a global temp directory for its sockets
rather than your private one. This is not a problem if you use sudo to
build dbus since sudo doesn't pass TMPDIR to the command it executes.
I've fixed this and attached a Portfile with a patch to use /tmp for its
sockets. This patch also adds a +verbose variant that enables more
debugging output (under control of the DBUS_VERBOSE environment variable).
--
Ticket URL: <http://trac.macports.org/ticket/16833#comment:13>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list