Browse Source

gnu: %static-inputs: Use bash from PATH in bootstrap tar.

gnu/packages/make-bootstrap.scm (%static-inputs): Use bash from PATH.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
gn-latest-20200428
Carlos Sánchez de La Lama 5 years ago
committed by Ludovic Courtès
parent
commit
80c9164fd7
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 11
      gnu/packages/make-bootstrap.scm

11
gnu/packages/make-bootstrap.scm

@ -186,6 +186,17 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
(inputs (if (%current-target-system)
`(("bash" ,%bash-static))
'()))))
(tar (package (inherit tar)
(arguments
'(#:phases (modify-phases %standard-phases
(add-before 'build 'set-shell-file-name
(lambda _
;; Do not use "/bin/sh" to run programs; see
;; <http://lists.gnu.org/archive/html/guix-devel/2016-09/msg02272.html>.
(substitute* "src/system.c"
(("/bin/sh") "sh")
(("execv ") "execvp "))
#t)))))))
(finalize (compose static-package
package-with-relocatable-glibc)))
`(,@(map (match-lambda

Loading…
Cancel
Save