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: [email protected] 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
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to