Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure glibc uses bash for system() #236

Closed
viric opened this issue Dec 28, 2012 · 4 comments
Closed

Ensure glibc uses bash for system() #236

viric opened this issue Dec 28, 2012 · 4 comments

Comments

@viric
Copy link
Member

viric commented Dec 28, 2012

This is a known for long impurity of nixpkgs glibc; it calls /bin/sh.

With ludo, we came up with the suggestion that glibc could be patched to refer to a statically-linked bash 'sh', for any /bin/sh reference. That shouldn't introduce any dependency to early bootstrap-tools or so, and fix some portability problems.

Some people write 'make' recipes using bash, too, and maybe this change would fix 'make' recipes as well. An example of such trouble happens with 'attr-2.4.46', which fails to build if /bin/sh is dash.

@viric
Copy link
Member Author

viric commented Dec 28, 2012

As a note, the attr problem doesn't get solved by the solution proposed by Raskin at #233 , as I've tested.

@viric
Copy link
Member Author

viric commented Dec 29, 2012

Eelco today implemented NixOS/nix#24 , so with this, chroot builds can be made to include /bin/sh pointing to bash for builds, without touching the system /bin.

@viric
Copy link
Member Author

viric commented Jan 6, 2013

Ludo opened a nix-dev thread about this: http://www.mail-archive.com/[email protected]/msg08851.html

@shlevy
Copy link
Member

shlevy commented Apr 4, 2014

IIRC @edolstra is currently not in favor of any patching to system other than possibly making it use PATH instead of directly calling /bin/sh, so closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants