git.iko.soy/typeable/nixpkgs
on master help sign in
bash: Set bash_cv_getcwd_malloc=yes when cross compiling

Because if you don't, the configure script assumes that your getcwd() function is broken. Which then makes bash use it's own getcwd() implementation, which doesn't work if the path to the current directory contains bind mounts in its paths. This shows up as: shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor ... and fails the aarch64 glibc build with sandboxes enabled. Sigh.

commitdff0ba38a243603534c99f2cf1af81c793cad98e authorTuomas Tynkkynen <tuomas@tuxera.com> dateTue 14 Mar 2017, 00:30 (10 years ago) parent40c1406
1 file changed+1−1
pkgs/shells/bash/4.4.nix+1−1
pkgs/shells/bash/4.4.nix+1−1
@@ -63,7 +63,7 @@ stdenv.mkDerivation rec {
6363
6464 crossAttrs = {
6565 configureFlags = baseConfigureFlags +
66− " bash_cv_job_control_missing=nomissing bash_cv_sys_named_pipes=nomissing" +
66+ " bash_cv_job_control_missing=nomissing bash_cv_sys_named_pipes=nomissing bash_cv_getcwd_malloc=yes" +
6767 optionalString stdenv.isCygwin ''
6868 --without-libintl-prefix --without-libiconv-prefix
6969 --with-installed-readline