diff options
author | Ludovic Courtès <ludo@gnu.org> | 2013-05-25 16:24:21 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2013-05-25 16:24:21 +0200 |
commit | de59af4d6d1f6143c063878b451f9fe163eed982 (patch) | |
tree | 69ae44c0766fa523046629a4510a30914ee10834 /gnu/packages/base.scm | |
parent | 2a552f1177fc79a66ba5ae53467556dfa3386b68 (diff) | |
download | gnu-guix-de59af4d6d1f6143c063878b451f9fe163eed982.tar gnu-guix-de59af4d6d1f6143c063878b451f9fe163eed982.tar.gz |
gnu: coreutils: Allow cross-compilation.
* gnu/packages/base.scm (coreutils): Remove Perl input
when (%current-target-system) is true. Use %standard-cross-phases as
the base when (%current-target-system) is true.
Diffstat (limited to 'gnu/packages/base.scm')
-rw-r--r-- | gnu/packages/base.scm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 2ed9de0d5d..b1bc5ca2d1 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -270,9 +270,13 @@ The tools supplied with this package are: (base32 "064f512185iysqqcvhnhaf3bfmzrvcgs7n405qsyp99zmfyl9amd")))) (build-system gnu-build-system) - (inputs `(("acl" ,acl) + (inputs `(("acl" ,acl) ; TODO: add SELinux ("gmp" ,gmp) - ("perl" ,perl))) ; TODO: add SELinux + + ;; Perl is needed to run tests; remove it from cross builds. + ,@(if (%current-target-system) + '() + `(("perl" ,perl))))) (arguments `(#:parallel-build? #f ; help2man may be called too early #:phases (alist-cons-before @@ -287,7 +291,9 @@ The tools supplied with this package are: (substitute* (find-files "tests" "\\.sh$") (("#!/bin/sh") (format #f "#!~a/bin/bash" bash))))) - %standard-phases))) + ,(if (%current-target-system) + '%standard-cross-phases + '%standard-phases)))) (synopsis "Core GNU utilities (file, text, shell)") (description "The GNU Core Utilities are the basic file, shell and text manipulation |