[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Boostrap tar cannot exec xz
From: |
Ludovic Courtès |
Subject: |
Re: Boostrap tar cannot exec xz |
Date: |
Fri, 30 Sep 2016 22:08:17 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hi!
address@hidden (Carlos Sánchez de La Lama) skribis:
> still trying too bootstrap linux-powerpc.
This is exciting, BTW!
> I find the boostrap binary "tar" fails to execute xz (which is un turn
> required to build make on continue the bootstrap process), because it
> can not find bash.
>
> The problem was introduced in your commit
>
> 74d637397b44a90d2dbc2ac100b38591dd4f81eb
>
> which upgraded tar to 1.29. That commit also added the substitution of
> "/bin/sh" to "<bash-store-path>/bin/sh" in src/system.c when compiling
> tar, which is fine in general, but gets broken when %static-binaries
> does a remove-store-reference for all the static binaries.
>
> Is that substitution really needed?
That substitution is needed, because otherwise ‘tar’ fails to spawn
external programs when in a build environment (the chroot lacks
/bin/sh), which causes its own test suite to fail.
I understand that this is not OK for the binaries produced by
make-bootstrap.scm. However, /bin/sh is not OK either, AFAICS.
In ‘raw-build’ in bootstrap.scm, we run:
xz -dc thing.tar.xz | tar xv
to work around this problem. Isn’t it enough?
Thanks,
Ludo’.