diff options
Diffstat (limited to 'gnu/packages/bash.scm')
| -rw-r--r-- | gnu/packages/bash.scm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index 56918d79bd3..642a4059852 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm | |||
| @@ -175,6 +175,20 @@ number/base32-hash tuples, directly usable in the 'patch-series' form." | |||
| 175 | 175 | ||
| 176 | #:phases | 176 | #:phases |
| 177 | (modify-phases %standard-phases | 177 | (modify-phases %standard-phases |
| 178 | ,@(if (and (target-hurd?) (not (system-hurd?))) | ||
| 179 | `((add-after 'configure 'create-pipesize.h | ||
| 180 | ;; The Bash Makefile mentions how PIPESIZE calculation is | ||
| 181 | ;; "technically wrong" when cross-compiling, and offers no | ||
| 182 | ;; way to override it. On the 64bit Hurd, it can make | ||
| 183 | ;; bash hang. | ||
| 184 | (lambda _ | ||
| 185 | (with-directory-excursion "builtins" | ||
| 186 | (with-output-to-file "psize.aux" | ||
| 187 | (lambda _ (display "dummy to pacify make\n"))) | ||
| 188 | (with-output-to-file "pipesize.h" | ||
| 189 | (lambda _ (display "#define PIPESIZE 16384\n"))))))) | ||
| 190 | '()) | ||
| 191 | |||
| 178 | (add-after 'install 'install-sh-symlink | 192 | (add-after 'install 'install-sh-symlink |
| 179 | (lambda* (#:key outputs #:allow-other-keys) | 193 | (lambda* (#:key outputs #:allow-other-keys) |
| 180 | ;; Add a `sh' -> `bash' link. | 194 | ;; Add a `sh' -> `bash' link. |
