From: Efraim Flashner <efraim@flashner.co.il>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 2/6] gnu: %bootstrap-coreutils&co: Patch egrep/fgrep to work regardless of $PATH.
Date: Tue, 14 Feb 2017 21:46:17 +0200 [thread overview]
Message-ID: <20170214194617.GC1369@macbook42.flashner.co.il> (raw)
In-Reply-To: <87wpctxj81.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 2248 bytes --]
On Tue, Feb 14, 2017 at 09:35:58AM +0100, Ludovic Courtès wrote:
> Efraim Flashner <efraim@flashner.co.il> skribis:
>
> > This is the bootstrap version of 1063d325ea76aa2b00dfcd3d436b16e412103df1
> >
> > * gnu/packages/bootstrap.scm (%bootstrap-coreutils&co)[source]: Patch
> > the absolute location of 'grep' when called from 'egrep' or 'fgrep'.
> > ---
> > gnu/packages/bootstrap.scm | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm
> > index 3be6e1246..1dd853260 100644
> > --- a/gnu/packages/bootstrap.scm
> > +++ b/gnu/packages/bootstrap.scm
> > @@ -325,6 +325,10 @@ $out/bin/guile --version~%"
> > (chmod "bin" #o755)
> > (patch-shebang "bin/egrep" path)
> > (patch-shebang "bin/fgrep" path)
> > + ;; Patch 'egrep' and 'fgrep' to execute 'grep' via its
> > + ;; absolute file name instead of searching for it in $PATH.
> > + (substitute* '("bin/egrep" "bin/fgrep")
> > + (("grep") (string-append (getcwd) "/bin/grep")))
>
> Am I right that this is not needed if we produce bootstrap binaries with
> patch #1 applied? (That is, where ‘egrep’ and ‘fgrep’ look for ‘grep’
> in $PATH.)
>
> OTOH it cannot hurt, so it’s best to apply it.
>
> Have you check whether it works on the other arches, which use an old
> grep where ‘egrep’ and ‘fgrep’ are not scripts? (‘substitute*’ might
> throw an exception if it’s passed a binary file, though I think that’s
> not the case here.)
>
> If it doesn’t break the other arches, OK for ‘core-updates’, thanks!
>
> Ludo’.
before grep-2.25 egrep and fgrep are binary files. The one time I tried
it on x86_64 it failed spectacularly. In the end it definately needs
some sort of test to make sure its aarch64 (or another newly added
target)
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-02-14 19:46 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-09 18:45 [PATCH 0/6] WIP aarch64 support Efraim Flashner
2017-02-09 18:45 ` [PATCH 1/6] gnu: %static-inputs: Use 'grep' without custom phase Efraim Flashner
2017-02-14 8:30 ` Ludovic Courtès
2017-02-14 19:53 ` Efraim Flashner
2017-02-09 18:45 ` [PATCH 2/6] gnu: %bootstrap-coreutils&co: Patch egrep/fgrep to work regardless of $PATH Efraim Flashner
2017-02-14 8:35 ` Ludovic Courtès
2017-02-14 19:46 ` Efraim Flashner [this message]
2017-02-09 18:45 ` [PATCH 3/6] daemon: On aarch64, use increments of 16 on the stack Efraim Flashner
2017-02-14 8:47 ` Ludovic Courtès
2017-02-14 20:11 ` Efraim Flashner
2017-08-05 6:21 ` Mark H Weaver
2017-08-05 18:24 ` Efraim Flashner
2017-08-05 21:32 ` Mark H Weaver
2017-08-05 21:41 ` Mark H Weaver
2017-08-06 14:53 ` Efraim Flashner
2017-08-09 20:22 ` Mark H Weaver
2017-08-05 21:12 ` Ludovic Courtès
2017-02-09 18:45 ` [PATCH 4/6] gnu: Add bootstrap-binaries for 'aarch64-linux' Efraim Flashner
2017-02-14 8:51 ` Ludovic Courtès
2017-02-14 20:05 ` Efraim Flashner
2017-02-09 18:45 ` [PATCH 5/6] gnu: gcc: Force Aarch64 to use /lib Efraim Flashner
2017-02-11 16:03 ` Danny Milosavljevic
2017-02-14 8:51 ` Ludovic Courtès
2017-02-14 19:51 ` Efraim Flashner
2017-02-22 19:42 ` Efraim Flashner
2017-02-25 19:04 ` Efraim Flashner
2017-03-06 9:24 ` Ludovic Courtès
2017-02-09 18:45 ` [PATCH 6/6] hydra: Add "aarch64-linux-gnu" as a cross-compilation target Efraim Flashner
2017-02-14 8:52 ` Ludovic Courtès
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170214194617.GC1369@macbook42.flashner.co.il \
--to=efraim@flashner.co.il \
--cc=guix-devel@gnu.org \
--cc=ludo@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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.