[Nix-dev] /bin in chroot builds

Sander van der Burg - EWI S.vanderBurg at tudelft.nl
Wed Apr 21 12:33:13 CEST 2010


On {Free,Open,Net,...}BSD similar problems arise, since /bin/sh is not bash either. I fixed this by manually symlinking /bin/sh to bash on BSD, but ideally we should do this differently.

-----Original Message-----
From: nix-dev-bounces at cs.uu.nl on behalf of Anders F Björklund
Sent: Wed 4/21/2010 12:19 PM
To: Lluís Batlle i Rossell
Cc: Nix Dev
Subject: Re: [Nix-dev] /bin in chroot builds
 
Lluís Batlle i Rossell:

> I noticed the nixos nix.conf includes /bin in the build chroot.
>
> I saw that perl, when using the system() command, it runs /bin/sh  
> "on unix", the
> manual says.
>
> In ubuntu, /bin/sh happens to point to /bin/dash, and so that is  
> not able to
> parse a thing like "source $stdenv/setup".

I had to add /lib and /lib64 to the chroot too, before /bin/sh ran...

--anders

_______________________________________________
nix-dev mailing list
nix-dev at cs.uu.nl
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20100421/9b502344/attachment.html 


More information about the nix-dev mailing list