all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#65125] [PATCH] gnu: ntp: Fix cross-compilation inputs.
@ 2023-08-07 12:17 Jean-Pierre De Jesus DIAZ via Guix-patches via
  2023-08-12 20:30 ` bug#65125: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Pierre De Jesus DIAZ via Guix-patches via @ 2023-08-07 12:17 UTC (permalink / raw)
  To: 65125; +Cc: Jean-Pierre De Jesus DIAZ

* 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>
---
 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 @@ (define-public ntp
            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
-- 
2.34.1





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#65125: [PATCH] gnu: ntp: Fix cross-compilation inputs.
  2023-08-07 12:17 [bug#65125] [PATCH] gnu: ntp: Fix cross-compilation inputs Jean-Pierre De Jesus DIAZ via Guix-patches via
@ 2023-08-12 20:30 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2023-08-12 20:30 UTC (permalink / raw)
  To: Jean-Pierre De Jesus DIAZ; +Cc: 65125-done

Hi,

Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com> skribis:

> * 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'.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-12 20:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-07 12:17 [bug#65125] [PATCH] gnu: ntp: Fix cross-compilation inputs Jean-Pierre De Jesus DIAZ via Guix-patches via
2023-08-12 20:30 ` bug#65125: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.