summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-07-04 22:49:15 +0200
committerLudovic Courtès <ludo@gnu.org>2017-07-04 23:45:12 +0200
commitba4aca3ae48dcaf904297573fc210ff4a4d771e3 (patch)
tree9581a0c20933ac8b3d5b1e130c7086f1475a3625
parent6d9a859038b33c1bde35df915f101b58774bce06 (diff)
downloadguix-ba4aca3ae48dcaf904297573fc210ff4a4d771e3.tar.gz
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.
-rw-r--r--gnu/packages/linux.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index d1bdb6d66a..27b6fb3a62 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