summary refs log tree commit diff
path: root/pkgs/shells/bash
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-01-23 16:32:57 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-01-23 16:32:57 +0100
commit0214514f8b20806236969e3ca0125eafe5836a41 (patch)
tree7e3789d133c01d5f7219cef6ef4624ffbe0196b4 /pkgs/shells/bash
parentdaa53f5200be24ee3fa86d6331647f2ab31cffac (diff)
downloadnixpkgs-0214514f8b20806236969e3ca0125eafe5836a41.tar
nixpkgs-0214514f8b20806236969e3ca0125eafe5836a41.tar.gz
nixpkgs-0214514f8b20806236969e3ca0125eafe5836a41.tar.bz2
nixpkgs-0214514f8b20806236969e3ca0125eafe5836a41.tar.lz
nixpkgs-0214514f8b20806236969e3ca0125eafe5836a41.tar.xz
nixpkgs-0214514f8b20806236969e3ca0125eafe5836a41.tar.zst
nixpkgs-0214514f8b20806236969e3ca0125eafe5836a41.zip
bash: Disable parallel building
Parallel building randomly fails because bash's Makefiles at some
point do a recursive make invocation to build a file "version.h":

  ../version.h: ../config.h ../Makefile Makefile
          -( cd ${BUILD_DIR} && ${MAKE} ${MFLAGS} version.h )

As a result, both the parent and the child can end up building
version.h at the same time.  This causes the build to fail with

  mv: cannot stat `newversion.h': No such file or directory

http://hydra.nixos.org/build/3853249
Diffstat (limited to 'pkgs/shells/bash')
-rw-r--r--pkgs/shells/bash/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/shells/bash/default.nix b/pkgs/shells/bash/default.nix
index c83cb96148b..0bad70e9eef 100644
--- a/pkgs/shells/bash/default.nix
+++ b/pkgs/shells/bash/default.nix
@@ -48,7 +48,9 @@ stdenv.mkDerivation rec {
     ++ stdenv.lib.optional (texinfo != null) texinfo
     ++ stdenv.lib.optional interactive readline;
 
-  enableParallelBuilding = true;
+  # Bash randomly fails to build because of a recursive invocation to
+  # build `version.h'.
+  enableParallelBuilding = false;
 
   postInstall = ''
     # Add an `sh' -> `bash' symlink.