gnu: libdaemon: Cross-build with --localstatedir=/var.

* gnu/packages/libdaemon.scm (libdaemon)[arguments]: Add
"--localstatedir=/var" when (%current-target-system) is true.
This commit is contained in:
Ludovic Courtès 2020-04-08 15:26:57 +02:00
parent a16022a7b8
commit 5ea5d0512f
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -49,7 +49,15 @@ (define-public libdaemon
(if (%current-target-system)
;; The 'setpgrp' test cannot provide an answer when cross-compiling,
;; so provide the right one for glibc.
`(#:configure-flags (list "ac_cv_func_setpgrp_void=yes"))
`(#:configure-flags (list "ac_cv_func_setpgrp_void=yes"
;; TODO: Move this globally on the next
;; rebuild cycle.
;; Set a valid localstatedir for the
;; benefit of the default
;; 'daemon_pid_file_proc', used by the
;; Hurd's console client.
"--localstatedir=/var"))
'()))
;; XXX: Stale URL, missing replacement. See <http://bugs.gnu.org/18639>.