diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2013-05-25 16:26:16 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2013-05-25 16:26:16 +0200 |
| commit | c8c6bba5a7001adef4f79a83c00cc24b697e8ed4 (patch) | |
| tree | 0d87f205999b5edc6cc11242657e9986b3f28a5f /gnu | |
| parent | de59af4d6d1f6143c063878b451f9fe163eed982 (diff) | |
gnu: sed: Allow cross-compilation.
* gnu/packages/base.scm (sed): Keep the default phases
when (%current-target-system) is true.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/base.scm | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index b1bc5ca2d1b..4452108abf3 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm | |||
| @@ -101,16 +101,18 @@ lines.") | |||
| 101 | (build-system gnu-build-system) | 101 | (build-system gnu-build-system) |
| 102 | (synopsis "Stream editor") | 102 | (synopsis "Stream editor") |
| 103 | (arguments | 103 | (arguments |
| 104 | `(#:phases (alist-cons-before | 104 | (if (%current-target-system) |
| 105 | 'patch-source-shebangs 'patch-test-suite | 105 | '() |
| 106 | (lambda* (#:key inputs #:allow-other-keys) | 106 | `(#:phases (alist-cons-before |
| 107 | (let ((bash (assoc-ref inputs "bash"))) | 107 | 'patch-source-shebangs 'patch-test-suite |
| 108 | (patch-makefile-SHELL "testsuite/Makefile.tests") | 108 | (lambda* (#:key inputs #:allow-other-keys) |
| 109 | (substitute* '("testsuite/bsd.sh" | 109 | (let ((bash (assoc-ref inputs "bash"))) |
| 110 | "testsuite/bug-regex9.c") | 110 | (patch-makefile-SHELL "testsuite/Makefile.tests") |
| 111 | (("/bin/sh") | 111 | (substitute* '("testsuite/bsd.sh" |
| 112 | (string-append bash "/bin/bash"))))) | 112 | "testsuite/bug-regex9.c") |
| 113 | %standard-phases))) | 113 | (("/bin/sh") |
| 114 | (string-append bash "/bin/bash"))))) | ||
| 115 | %standard-phases)))) | ||
| 114 | (description | 116 | (description |
| 115 | "Sed (stream editor) isn't really a true text editor or text processor. | 117 | "Sed (stream editor) isn't really a true text editor or text processor. |
| 116 | Instead, it is used to filter text, i.e., it takes text input and performs | 118 | Instead, it is used to filter text, i.e., it takes text input and performs |
