From: csanchezdll@gmail.com (Carlos Sánchez de La Lama)
To: guix-devel@gnu.org
Subject: [PATCH] gnu: %static-inputs: Use bash from PATH in bootstrap tar.
Date: Tue, 18 Oct 2016 17:55:55 +0200 [thread overview]
Message-ID: <7ttwc9fy7o.fsf@gmail.com> (raw)
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
next reply other threads:[~2016-10-18 15:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-18 15:55 Carlos Sánchez de La Lama [this message]
2016-10-19 15:34 ` [PATCH] gnu: %static-inputs: Use bash from PATH in bootstrap tar 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7ttwc9fy7o.fsf@gmail.com \
--to=csanchezdll@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).