Skip to content

Commit

Permalink
pcmsolver: fix glibc >= 2.34 compatibility
Browse files Browse the repository at this point in the history
related to PCMSolver/pcmsolver#197. This is a temporary workaround until we have a proper fix from upstream
  • Loading branch information
sheepforce committed Apr 11, 2022
1 parent f35d4e3 commit a82378a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/development/libraries/pcmsolver/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ stdenv.mkDerivation rec {
sha256= "0jrxr8z21hjy7ik999hna9rdqy221kbkl3qkb06xw7g80rc9x9yr";
};

# Glibc 2.34 changed SIGSTKSZ to a dynamic value, which breaks
# PCMsolver. Replace SIGSTKZ by the backward-compatible _SC_SIGSTKSZ.
postPatch = ''
substituteInPlace external/Catch/catch.hpp \
--replace SIGSTKSZ _SC_SIGSTKSZ
'';

nativeBuildInputs = [
cmake
gfortran
Expand Down

0 comments on commit a82378a

Please sign in to comment.