From 622c2826d14e65d3f9d9885b1bf73f9c94f76626 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 22 Oct 2021 11:41:44 +0100 Subject: [PATCH] pth: disable parallel building Manually written makefile relies on correct dependencies specificed explicitly in the Makefile. Unfortunately they at least lack dependency on common pre-generated 'pth_p.h' file. Let's disable parallel build explicitly. --- pkgs/development/libraries/pth/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/pth/default.nix b/pkgs/development/libraries/pth/default.nix index 240c903a8a77..16235176d038 100644 --- a/pkgs/development/libraries/pth/default.nix +++ b/pkgs/development/libraries/pth/default.nix @@ -14,6 +14,13 @@ stdenv.mkDerivation rec { configureFlagsArray+=("ac_cv_check_sjlj=ssjlj") ''; + # Fails parallel build due to missing dependency on autogenrated + # 'pth_p.h' file: + # ./shtool scpp -o pth_p.h ... + # ./libtool --mode=compile --quiet gcc -c -I. -O2 -pipe pth_uctx.c + # pth_uctx.c:31:10: fatal error: pth_p.h: No such file + enableParallelBuilding = false; + meta = with lib; { description = "The GNU Portable Threads library"; homepage = "https://www.gnu.org/software/pth";