[Nix-dev] /bin in chroot builds
Ludovic Courtès
ludo at gnu.org
Sun Nov 6 22:04:31 CET 2011
Hi Michael,
Michael Raskin <7c6f434c at mail.ru> skribis:
> 1) ./configure has /bin/sh as interpreter
There’s way more than this. Any trivial script (notably build scripts)
that requires a vaguely POSIX shell will have that. Take a random
package and grep for /bin/sh.
> 2) glibc uses /bin/sh for system()
>
> The second problem needs a patch for glibc, and it can break subtly;
And it would increase the footprint of stdenv, because there’d be an
additional Bash kept around.
All in all, I wouldn’t worry about /bin/sh, because I have the
impression that the risks largely outweigh the benefits.
Thanks,
Ludo’.
More information about the nix-dev
mailing list