gnu: sed: Allow cross-compilation.

* gnu/packages/base.scm (sed): Keep the default phases
  when (%current-target-system) is true.
master
Ludovic Courtès 2013-05-25 16:26:16 +02:00
parent de59af4d6d
commit c8c6bba5a7
1 changed files with 12 additions and 10 deletions

View File

@ -101,6 +101,8 @@ lines.")
(build-system gnu-build-system) (build-system gnu-build-system)
(synopsis "Stream editor") (synopsis "Stream editor")
(arguments (arguments
(if (%current-target-system)
'()
`(#:phases (alist-cons-before `(#:phases (alist-cons-before
'patch-source-shebangs 'patch-test-suite 'patch-source-shebangs 'patch-test-suite
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
@ -110,7 +112,7 @@ lines.")
"testsuite/bug-regex9.c") "testsuite/bug-regex9.c")
(("/bin/sh") (("/bin/sh")
(string-append bash "/bin/bash"))))) (string-append bash "/bin/bash")))))
%standard-phases))) %standard-phases))))
(description (description
"Sed (stream editor) isn't really a true text editor or text processor. "Sed (stream editor) isn't really a true text editor or text processor.
Instead, it is used to filter text, i.e., it takes text input and performs Instead, it is used to filter text, i.e., it takes text input and performs