gnu: ntp: Fix cross-compilation inputs.
* gnu/packages/ntp.scm (ntp)[inputs]: Use `target-linux?' instead of the manual string comparison as it would not add the libcap input correctly when cross-compiling as the platform ends in `-linux-gnu' unlike the system string which ends in `-linux'. Signed-off-by: Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com> Signed-off-by: Ludovic Courtès <ludo@gnu.org>master
parent
eb25c2b3e2
commit
6bbef3d9a2
|
@ -139,8 +139,7 @@ time-stamping or reference clock, sub-microsecond accuracy is possible.")
|
||||||
libevent
|
libevent
|
||||||
;; Build with POSIX capabilities support on GNU/Linux. This allows
|
;; Build with POSIX capabilities support on GNU/Linux. This allows
|
||||||
;; 'ntpd' to run as non-root (when invoked with '-u'.)
|
;; 'ntpd' to run as non-root (when invoked with '-u'.)
|
||||||
(if (string-suffix? "-linux"
|
(if (target-linux?)
|
||||||
(or (%current-target-system) (%current-system)))
|
|
||||||
(list libcap)
|
(list libcap)
|
||||||
'())))
|
'())))
|
||||||
(arguments
|
(arguments
|
||||||
|
|
Reference in New Issue