New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #27555 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 years ago

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: mcalhoun@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: snc@…, sharky@…, maidaro@…, mk@…, alek.silverstone@…
Port: dbus kdesdk4

Description (last modified by ryandesign@…) (diff)

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

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

Change History

comment:1 Changed 2 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 2 years ago by ryandesign@…

  • Description modified (diff)

comment:3 Changed 2 years ago by SagadonGafringo@…

Upgrading to dbus 1.4.0 made it go away

comment:4 Changed 2 years ago by jmr@…

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

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

comment:5 Changed 2 years ago by maidaro@…

  • Cc maidaro@… added

Cc Me!

Changed 2 years ago by monty19@…

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

Changed 2 years ago by monty19@…

New 0002-add-launchd-implementation.patch

Changed 2 years ago by monty19@…

New 0004-enable-launchd.patch

Changed 2 years ago by monty19@…

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

Changed 2 years ago by monty19@…

New 0006-bus_system-conf-in.patch

comment:6 Changed 2 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 2 years ago by SagadonGafringo@…

Monty19 is awesome. That is all.

comment:8 Changed 2 years ago by mk@…

  • Cc mk@… added

Cc Me!

comment:9 Changed 2 years ago by snc@…

Anyone care to verify these patches?

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

  • Cc alek.silverstone@… added

Cc Me!

comment:11 Changed 2 years ago by mk@…

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 2 years ago by mk@…

Is this issue still an issue with #25178?

comment:13 Changed 2 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 2 years ago by snc@…

  • Status changed from new to closed
  • Resolution set to worksforme
Note: See TracTickets for help on using tickets.