Merge pull request #152359 from risicle/ris-lapack-CVE-2021-4048-r21.05

[21.05] lapack: add patch for CVE-2021-4048
This commit is contained in:
Robert Scott
2021-12-28 11:32:20 +00:00
committed by GitHub

View File

@@ -1,6 +1,7 @@
{
lib, stdenv,
fetchFromGitHub,
fetchpatch,
gfortran,
cmake,
shared ? true
@@ -21,6 +22,14 @@ stdenv.mkDerivation rec {
sha256 = "0sxnc97z67i7phdmcnq8f8lmxgw10wdwvr8ami0w3pb179cgrbpb";
};
patches = [
(fetchpatch {
name = "CVE-2021-4048.patch";
url = "https://github.com/Reference-LAPACK/lapack/commit/0631b6beaed60ba118b0b027c0f8d35397bf5df0.patch";
sha256 = "1bqjw3f6ak9iz97y7ckn0rrfcgrzbn9prgfasl489qpxgzp2kjh8";
})
];
nativeBuildInputs = [ gfortran cmake ];
# Configure stage fails on aarch64-darwin otherwise, due to either clang 11 or gfortran 10.