[Nix-dev] Re: Chrooted build failure with trunk
Eelco Dolstra
e.dolstra at tudelft.nl
Wed Aug 27 19:27:49 CEST 2008
Hi,
Eelco Dolstra wrote:
>>> pwd: error retrieving current directory: getcwd: cannot access parent directories: Success
>>> pwd: error retrieving current directory: getcwd: cannot access parent directories: Bad address
>>> chdir: error retrieving current directory: getcwd: cannot access parent directories: Success
...
> It appears that normal bash (linked against Glibc) works properly because it
> uses the getcwd() system call instead of trying to figure out the cwd itself.
I've committed a workaround: Nix now sets the PWD environment variable to the
temporary build directory. That seems to make dietlibc happy :-)
--
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
More information about the nix-dev
mailing list