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.
master
Ludovic Courtès 2013-05-25 16:24:21 +02:00
parent 2a552f1177
commit de59af4d6d
1 changed files with 9 additions and 3 deletions

View File

@ -270,9 +270,13 @@ The tools supplied with this package are:
(base32 (base32
"064f512185iysqqcvhnhaf3bfmzrvcgs7n405qsyp99zmfyl9amd")))) "064f512185iysqqcvhnhaf3bfmzrvcgs7n405qsyp99zmfyl9amd"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(inputs `(("acl" ,acl) (inputs `(("acl" ,acl) ; TODO: add SELinux
("gmp" ,gmp) ("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 (arguments
`(#:parallel-build? #f ; help2man may be called too early `(#:parallel-build? #f ; help2man may be called too early
#:phases (alist-cons-before #:phases (alist-cons-before
@ -287,7 +291,9 @@ The tools supplied with this package are:
(substitute* (find-files "tests" "\\.sh$") (substitute* (find-files "tests" "\\.sh$")
(("#!/bin/sh") (("#!/bin/sh")
(format #f "#!~a/bin/bash" bash))))) (format #f "#!~a/bin/bash" bash)))))
%standard-phases))) ,(if (%current-target-system)
'%standard-cross-phases
'%standard-phases))))
(synopsis "Core GNU utilities (file, text, shell)") (synopsis "Core GNU utilities (file, text, shell)")
(description (description
"The GNU Core Utilities are the basic file, shell and text manipulation "The GNU Core Utilities are the basic file, shell and text manipulation