[Nix-dev] texinfo4 seems to have a /bin/sh dependency
Tyson Whitehead
twhitehead at gmail.com
Mon Apr 27 20:42:24 CEST 2015
I've configured a system using the nix-daemon with "build-use-chroot = true" and came across the following problem (using the unstable packages)
[tyson at test-centos6 .nixpkgs]$ nix-env -iA nixpkgs.texinfo4
installing ‘texinfo-4.13a’
these derivations will be built:
/nix/store/zng3jwybhn7cj2qagslx9hm41w29ab94-texinfo-4.13a.drv
building path(s) ‘/nix/store/39hrhw46j3vww48hasn8zxpq0jkw25ms-texinfo-4.13a’
unpacking sources
unpacking source archive /nix/store/9fh76lcx21pf35flmzfh35sya9a4g069-texinfo-4.13a.tar.lzma
source root is texinfo-4.13
patching sources
configuring
configure flags: --disable-dependency-tracking --prefix=/nix/store/39hrhw46j3vww48hasn8zxpq0jkw25ms-texinfo-4.13a
/nix/store/3sqnsignf07mwz12fmi9r4g4vigxg3al-stdenv/setup: ./configure: /bin/sh: bad interpreter: No such file or directory
builder for ‘/nix/store/zng3jwybhn7cj2qagslx9hm41w29ab94-texinfo-4.13a.drv’ failed with exit code 126
error: build of ‘/nix/store/zng3jwybhn7cj2qagslx9hm41w29ab94-texinfo-4.13a.drv’ failed
If I understand correctly, the issue is that configure in texinfo-4.13a.tar.lzma refers to /bin/sh and this doesn't exist in the chroot environment. Presumably this works if I disable chroot builds but then parts of my external system would be leaking into my nix builds so that seems wrong too.
What is the recommended way to proceed here? Am I missing something? Is there some stdenv flag to handle this sort of thing? Should I file a bug?
Thanks! -Tyson
More information about the nix-dev
mailing list