Opened 14 years ago

Closed 14 years ago

#27555 closed defect (worksforme)

DBUS reports Failed to start message bus: launch_msg("CheckIn") IPC failure: Operation not permitted when dbus-daemon --session is run on MacOSX 10.6.5

Reported by: SagadonGafringo@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: nerdling (Jeremy Lavergne), sharky@…, maidaro@…, mkae (Marko Käning), alek.silverstone@…
Port: dbus kdesdk4

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I'm trying to install kdesdk4 and launch the tools. The port install worked. I followed all instructions to finalize the setup. The kde applications start, but sit in the dock and have to be forced to quit. I can run Gimp using X11 but it complains about not finding the dbus.

I launch with:

export DBUS_LAUNCHD_SESSION_BUS_SOCKET=/opt/local/var/run/dbus/system_bus_socket
dbus-launch

Output:

Failed to start message bus: launch_msg("CheckIn") IPC failure: Operation not permitted

EOF in dbus-launch reading address from bus daemon

This seems to be related or similar to issue #21595

Attachments (5)

0001-make-session-bus-listen-tag-configurable.patch (675 bytes) - added by monty19@… 14 years ago.
New 0001-make-session-bus-listen-tag-configurable.patch
0002-add-launchd-implementation.patch (11.8 KB) - added by monty19@… 14 years ago.
New 0002-add-launchd-implementation.patch
0004-enable-launchd.patch (14.3 KB) - added by monty19@… 14 years ago.
New 0004-enable-launchd.patch
0005-dont-dup-closed-stdin.patch (542 bytes) - added by monty19@… 14 years ago.
New 0005-dont-dup-closed-stdin.patch
0006-bus_system-conf-in.patch (527 bytes) - added by monty19@… 14 years ago.
New 0006-bus_system-conf-in.patch

Download all attachments as: .zip

Change History (19)

comment:1 Changed 14 years ago by SagadonGafringo@…

Sorry - I launch with:

export DBUS_LAUNCHD_SESSION_BUS_SOCKET=/opt/local/var/run/dbus/system_bus_socket
dbus-launch

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

Description: modified (diff)

comment:3 Changed 14 years ago by SagadonGafringo@…

Upgrading to dbus 1.4.0 made it go away

comment:4 Changed 14 years ago by jmroot (Joshua Root)

Cc: snc@… sharky@… added
Keywords: dbus ipc failure removed
Owner: changed from macports-tickets@… to mcalhoun@…
Port: dbus kdesdk4 added

Please remember to fill in the Port field and cc the maintainers.

comment:5 Changed 14 years ago by maidaro@…

Cc: maidaro@… added

Cc Me!

Changed 14 years ago by monty19@…

New 0001-make-session-bus-listen-tag-configurable.patch

Changed 14 years ago by monty19@…

New 0002-add-launchd-implementation.patch

Changed 14 years ago by monty19@…

Attachment: 0004-enable-launchd.patch added

New 0004-enable-launchd.patch

Changed 14 years ago by monty19@…

New 0005-dont-dup-closed-stdin.patch

Changed 14 years ago by monty19@…

New 0006-bus_system-conf-in.patch

comment:6 Changed 14 years ago by monty19@…

Attached are the updated patch files that I used to get 1.4.0 to compile. 0003 did not need to be updated because it makes changes to a new file created by one of the previous patches. Portfile needs to be updated as well to use version 1.4.0 and matching md5sum etc. But then you can launch gnome and it works pretty well.

comment:7 Changed 14 years ago by SagadonGafringo@…

Monty19 is awesome. That is all.

comment:8 Changed 14 years ago by mkae (Marko Käning)

Cc: mk@… added

Cc Me!

comment:9 Changed 14 years ago by nerdling (Jeremy Lavergne)

Anyone care to verify these patches?

comment:10 Changed 14 years ago by alek.silverstone@…

Cc: alek.silverstone@… added

Cc Me!

comment:11 Changed 14 years ago by mkae (Marko Käning)

I gave it a shot:

  • changed my local dbus Portfile to version 1.4.0
  • corrected the checksum entries
  • used trac-get to pull the above five patchfiles into my local dbus' files directory
  • installed the whole thing no problem

So far all went through without trouble.

BUT, now no KDE4 application starts anymore, although I logged out and in again to make sure that dbus is properly reloaded.

kded4 and kmymoney4 simply stall without any reaction:

[ MP-devel ] :~ marko$ ps aux | grep dbus
marko    51274   0.9  0.0  2435116    532 s002  S+   11:37PM   0:00.00 grep dbus
marko    51146   0.0  0.0  2435472    692   ??  S    11:34PM   0:00.00 /opt/macports-test/bin/dbus-daemon --nofork --session
[ MP-devel ] :~ marko$ /opt/macports-test/Applications/KDE4/kded4.app/Contents/MacOS/kded4
^C
[ MP-devel ] :~ marko$ /opt/macports-test/Applications/KDE4/kmymoney.app/Contents/MacOS/kmymoney
^C

What am I doing wrong here?

comment:12 Changed 14 years ago by mkae (Marko Käning)

Is this issue still an issue with #25178?

comment:13 Changed 14 years ago by sharky@…

This ticket should be closed, dbus-daemon cannot be invoked manually on OS X, it MUST be launched via launchd otherwise you will get a permissions error.

comment:14 Changed 14 years ago by nerdling (Jeremy Lavergne)

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