unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: %static-inputs: Use bash from PATH in bootstrap tar.
@ 2016-10-18 15:55 Carlos Sánchez de La Lama
  2016-10-19 15:34 ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: Carlos Sánchez de La Lama @ 2016-10-18 15:55 UTC (permalink / raw)
  To: guix-devel

See
<http://lists.gnu.org/archive/html/guix-devel/2016-09/msg02272.html>.

gnu/packages/make-bootstrap.scm (%static-inputs): Use bash from PATH.
---
 gnu/packages/make-bootstrap.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index def9c23..180ca72 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -186,6 +186,16 @@ 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.
+				 (substitute* "src/system.c"
+				   (("/bin/sh") "sh")
+				   (("execv ") "execvp "))
+				 #t)))))))
         (finalize (compose static-package
                            package-with-relocatable-glibc)))
     `(,@(map (match-lambda
-- 
2.9.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-10-25  7:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 15:55 [PATCH] gnu: %static-inputs: Use bash from PATH in bootstrap tar Carlos Sánchez de La Lama
2016-10-19 15:34 ` Ludovic Courtès
2016-10-19 17:13   ` Efraim Flashner
2016-10-19 19:48     ` Ludovic Courtès
2016-10-19 20:00       ` Efraim Flashner
2016-10-24  6:59   ` Carlos Sánchez de La Lama
2016-10-24 21:08     ` Ludovic Courtès
2016-10-25  7:33       ` Carlos Sánchez de La Lama

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).