gnu: dbus: Create $out/etc/dbus-1/{system,session}.d to placate 'dbus-launch'.

* gnu/packages/glib.scm (dbus)[arguments]: Add 'post-install' phase.
This commit is contained in:
Ludovic Courtès 2014-10-05 22:18:09 +02:00
parent 22e47b640e
commit 8fa9ff20a8
1 changed files with 11 additions and 1 deletions

View File

@ -73,7 +73,17 @@
;; config.
;; "--sysconfdir=/etc"
"--with-session-socket-dir=/tmp")))
"--with-session-socket-dir=/tmp")
#:phases (alist-cons-after
'install 'post-install
(lambda* (#:key outputs #:allow-other-keys)
;; 'dbus-launch' bails out if the 'session.d' directory
;; below is missing, so create it along with its companion.
(let ((out (assoc-ref outputs "out")))
(mkdir (string-append out "/etc/dbus-1/session.d"))
(mkdir (string-append out "/etc/dbus-1/system.d"))
#t))
%standard-phases)))
(inputs
`(("expat" ,expat)
("pkg-config" ,pkg-config)