From ba4aca3ae48dcaf904297573fc210ff4a4d771e3 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 4 Jul 2017 22:49:15 +0200 Subject: 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 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 -- cgit 1.4.1