[Nix-dev] texinfo4 seems to have a /bin/sh dependency

William Kennington william at wkennington.com
Mon Apr 27 20:53:54 CEST 2015


On NixOS, nix is configured to not only provide the chroot but also /bin/sh
compatability. This is fixed in nix 1.9 so I recommend just using the
unstable version of nix as it should just work.
On Apr 27, 2015 11:42 AM, "Tyson Whitehead" <twhitehead at gmail.com> wrote:

> 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
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150427/04ba8ea0/attachment-0001.html 


More information about the nix-dev mailing list