NetBSD Problem Report #49591

From www@NetBSD.org  Tue Jan 20 18:48:53 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 65F07A57FE
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 20 Jan 2015 18:48:53 +0000 (UTC)
Message-Id: <20150120184852.58E0BA654D@mollari.NetBSD.org>
Date: Tue, 20 Jan 2015 18:48:52 +0000 (UTC)
From: youri.mout@gmail.com
Reply-To: youri.mout@gmail.com
To: gnats-bugs@NetBSD.org
Subject: sysutils/dbus does not install a launchd script (with fix)
X-Send-Pr-Version: www-1.0

>Number:         49591
>Category:       pkg
>Synopsis:       sysutils/dbus does not install a launchd script (with fix)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 20 18:50:00 +0000 2015
>Closed-Date:    Tue Jan 20 23:45:57 +0000 2015
>Last-Modified:  Wed Jan 21 13:50:00 +0000 2015
>Originator:     Youri Mouton
>Release:        current
>Organization:
>Environment:
Darwin mac.local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64

>Description:
sysutils/dbus does not install a launchd script.
>How-To-Repeat:

>Fix:
Add a PLIST.Darwin:

@comment $NetBSD$
Library/LaunchAgents/org.freedesktop.dbus-session.plist


and this patch for the Makefile:

diff --git a/sysutils/dbus/Makefile b/sysutils/dbus/Makefile
index f51ded8..7a3ac9e 100644
--- a/sysutils/dbus/Makefile
+++ b/sysutils/dbus/Makefile
@@ -35,7 +35,8 @@ CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}
 CONFIGURE_ARGS_GROUPS=	enable disable with without

 .if ${OPSYS} == "Darwin"
-CONFIGURE_ARGS+= --with-session-socket-dir=/tmp
+CONFIGURE_ARGS+=	--with-launchd-agent-dir=${PREFIX}/Library/LaunchAgents
+CONFIGURE_ARGS+=	--with-session-socket-dir=/tmp
 .endif

 CONFIGURE_ARGS.Linux=	abstract-sockets selinux

---------------------------------------------
With the above, I am able to start dbus like this:

$ launchctl load -w /usr/pkg/Library/LaunchAgents/org.freedesktop.dbus-session.plist
$ launchctl start org.freedesktop.dbus-session

Tested to work with xfce. 

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Tue, 20 Jan 2015 23:45:57 +0000
State-Changed-Why:
Committed.
Also bumped PKGREVISION since this changes the binary package
on Darwin.

Thanks!


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49591 CVS commit: pkgsrc/sysutils/dbus
Date: Tue, 20 Jan 2015 23:45:35 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Tue Jan 20 23:45:35 UTC 2015

 Modified Files:
 	pkgsrc/sysutils/dbus: Makefile
 Added Files:
 	pkgsrc/sysutils/dbus: PLIST.Darwin

 Log Message:
 Install launchd script on Darwin.
 From Youri Mouton in PR 49591.

 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -u -r1.77 -r1.78 pkgsrc/sysutils/dbus/Makefile
 cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/dbus/PLIST.Darwin

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Masatake Daimon" <pho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49591 CVS commit: pkgsrc/sysutils/dbus
Date: Wed, 21 Jan 2015 05:39:00 +0000

 Module Name:	pkgsrc
 Committed By:	pho
 Date:		Wed Jan 21 05:39:00 UTC 2015

 Modified Files:
 	pkgsrc/sysutils/dbus: Makefile
 Added Files:
 	pkgsrc/sysutils/dbus: MESSAGE.launchd

 Log Message:
 PR 49591: Add MESSAGE.launchd to let Darwin users know about the launchd agent configuration file.


 To generate a diff of this commit:
 cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/dbus/MESSAGE.launchd
 cvs rdiff -u -r1.78 -r1.79 pkgsrc/sysutils/dbus/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "OBATA Akio" <obata@lins.jp>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/49591 (sysutils/dbus does not install a launchd script (with
 fix))
Date: Wed, 21 Jan 2015 14:51:15 +0900

 It is better to add framework for launchd support, same as SMF.

From: PHO <pho@cielonegro.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/49591 (sysutils/dbus does not install a launchd script
 (with fix))
Date: Wed, 21 Jan 2015 21:32:25 +0900 (JST)

 > It is better to add framework for launchd support, same as SMF.

 Yes, that's definitely a nice thing to have. But for this particular
 package, launchd integration is strictly optional. When it's disabled,
 dbus just works in the same manner as on other OSes without any manual
 steps. So I'm going to make it a package option and disable it by
 default for now.

From: "Masatake Daimon" <pho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49591 CVS commit: pkgsrc/sysutils/dbus
Date: Wed, 21 Jan 2015 13:45:18 +0000

 Module Name:	pkgsrc
 Committed By:	pho
 Date:		Wed Jan 21 13:45:18 UTC 2015

 Modified Files:
 	pkgsrc/sysutils/dbus: Makefile PLIST options.mk
 Removed Files:
 	pkgsrc/sysutils/dbus: PLIST.Darwin

 Log Message:
 PR 49591: Make launchd integration a package option, disabled by default for now.

 launchd integration currently requires manual steps as described in MESSAGE.launchd. We may want to make it default once we have a framework for automatic launchd support.


 To generate a diff of this commit:
 cvs rdiff -u -r1.79 -r1.80 pkgsrc/sysutils/dbus/Makefile
 cvs rdiff -u -r1.17 -r1.18 pkgsrc/sysutils/dbus/PLIST
 cvs rdiff -u -r1.1 -r0 pkgsrc/sysutils/dbus/PLIST.Darwin
 cvs rdiff -u -r1.7 -r1.8 pkgsrc/sysutils/dbus/options.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.