civodul pushed a commit to branch master
in repository guix.

commit ba4aca3ae48dcaf904297573fc210ff4a4d771e3
Author: Ludovic Courtès <l...@gnu.org>
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