guix-commits
[Top][All Lists]
Advanced

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

02/08: gnu: tlsdate: Fix compilation on aarch64-linux-gnu.


From: Ludovic Courtès
Subject: 02/08: gnu: tlsdate: Fix compilation on aarch64-linux-gnu.
Date: Tue, 10 Apr 2018 19:03:54 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 0927b5bed6ca3e64e7f2eb5cf4c5daf2b99d3310
Author: Ludovic Courtès <address@hidden>
Date:   Tue Apr 10 22:27:22 2018 +0200

    gnu: tlsdate: Fix compilation on aarch64-linux-gnu.
    
    * gnu/packages/ntp.scm (tlsdate)[arguments]: Add #:configure-flags.
---
 gnu/packages/ntp.scm | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm
index 28aabab..e9ae9fa 100644
--- a/gnu/packages/ntp.scm
+++ b/gnu/packages/ntp.scm
@@ -2,7 +2,7 @@
 ;;; Copyright © 2014 John Darrington <address@hidden>
 ;;; Copyright © 2014, 2015 Mark H Weaver <address@hidden>
 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <address@hidden>
-;;; Copyright © 2015 Ludovic Courtès <address@hidden>
+;;; Copyright © 2015, 2018 Ludovic Courtès <address@hidden>
 ;;; Copyright © 2016, 2017, 2018 Efraim Flashner <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -145,7 +145,18 @@ minimalist than ntpd.")
               (file-name (string-append name "-" version "-checkout"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:phases (modify-phases %standard-phases
+     `(;; Disable seccomp when it's not supported--e.g., on aarch64.  See
+       ;; 'src/seccomp.c' for the list of supported systems.
+       #:configure-flags ,(if (any (lambda (system)
+                                     (string-contains (or
+                                                       (%current-target-system)
+                                                       (%current-system))
+                                                      system))
+                                   '("x86_64" "i686" "arm"))
+                              ''()
+                              ''("--disable-seccomp-filter"))
+
+       #:phases (modify-phases %standard-phases
                   (add-after 'unpack 'autogen
                     (lambda _
                       ;; The ancestor of 'SOURCE_DATE_EPOCH'; it contains the



reply via email to

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