From 6bbef3d9a269c38a6af941fb8f7c7b1d82834776 Mon Sep 17 00:00:00 2001 From: Jean-Pierre De Jesus DIAZ Date: Mon, 7 Aug 2023 14:17:49 +0200 Subject: gnu: ntp: Fix cross-compilation inputs. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 Signed-off-by: Ludovic Courtès --- gnu/packages/ntp.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gnu/packages/ntp.scm') diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm index 1a72efbc79..4ab8ab6631 100644 --- a/gnu/packages/ntp.scm +++ b/gnu/packages/ntp.scm @@ -139,8 +139,7 @@ time-stamping or reference clock, sub-microsecond accuracy is possible.") libevent ;; Build with POSIX capabilities support on GNU/Linux. This allows ;; 'ntpd' to run as non-root (when invoked with '-u'.) - (if (string-suffix? "-linux" - (or (%current-target-system) (%current-system))) + (if (target-linux?) (list libcap) '()))) (arguments -- cgit v1.2.3