guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: util-linux: Fix cross-compilation.


From: Ludovic Courtès
Subject: 02/03: gnu: util-linux: Fix cross-compilation.
Date: Tue, 4 Jul 2017 17:45:19 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit ba4aca3ae48dcaf904297573fc210ff4a4d771e3
Author: Ludovic Courtès <address@hidden>
Date:   Tue Jul 4 22:49:15 2017 +0200

    gnu: util-linux: Fix cross-compilation.
    
    * gnu/packages/linux.scm (util-linux)[inputs]: Add NET-BASE
    when (%current-target-system) is true.  Fixes cross-compilation.
---
 gnu/packages/linux.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index d1bdb6d..27b6fb3 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -554,7 +554,12 @@ providing the system administrator with some help in 
common tasks.")
                                    (find-files "lib" "\\.a$")))
                        #t))))))
     (inputs `(("zlib" ,zlib)
-              ("ncurses" ,ncurses)))
+              ("ncurses" ,ncurses)
+
+              ;; XXX: This is so that the 'pre-check' phase can find it.
+              ,@(if (%current-target-system)
+                    `(("net-base" ,net-base))
+                    '())))
     (native-inputs
      `(("perl" ,perl)
        ("net-base" ,net-base)))                   ;for tests



reply via email to

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