Merge pull request #168249 from sheepforce/pcmsolver

PCMSolver Glibc Compatibility
This commit is contained in:
markuskowa 2022-04-11 11:31:32 +02:00 committed by GitHub
commit c2a8099158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, perl, gfortran, python2
{ lib, stdenv, fetchFromGitHub, cmake, perl, gfortran, python3
, boost, eigen, zlib
} :
@ -13,11 +13,18 @@ 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
perl
python2
python3
];
buildInputs = [