guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/16: gnu: ntp: Fix cross-compilation inputs.


From: guix-commits
Subject: 01/16: gnu: ntp: Fix cross-compilation inputs.
Date: Sat, 12 Aug 2023 17:21:32 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 6bbef3d9a269c38a6af941fb8f7c7b1d82834776
Author: Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com>
AuthorDate: Mon Aug 7 14:17:49 2023 +0200

    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>
---
 gnu/packages/ntp.scm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]