diff options
author | Mauricio Collares <mauricio@collares.org> | 2021-03-06 23:12:34 -0300 |
---|---|---|
committer | Mauricio Collares <mauricio@collares.org> | 2021-03-09 21:28:45 -0300 |
commit | a2967199a432a0a79921a8a66894388811e26fd2 (patch) | |
tree | 903b7e892c06059d7aa6a844f4d97348fb60d8f0 | |
parent | edc78bb31f4bc0597500e07eeb6c0b4de8850989 (diff) |
cysignals: import patch to fix intermittent sage test
-rw-r--r-- | pkgs/development/python-modules/cysignals/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cysignals/default.nix b/pkgs/development/python-modules/cysignals/default.nix index 736afab4257c9..201a8c42d689e 100644 --- a/pkgs/development/python-modules/cysignals/default.nix +++ b/pkgs/development/python-modules/cysignals/default.nix @@ -1,4 +1,5 @@ { lib +, fetchpatch , fetchPypi , buildPythonPackage , cython @@ -16,6 +17,16 @@ buildPythonPackage rec { sha256 = "1ckxzch3wk5cg80mppky5jib5z4fzslny3001r5zg4ar1ixbc1w1"; }; + patches = [ + # fixes intermittent crashes in Sage tests (including in interfaces/singular.py) + # will be included in cysignals 1.10.3: https://github.com/sagemath/cysignals/pull/127 + (fetchpatch { + name = "fix-verify_exc_value.patch"; + url = "https://github.com/sagemath/cysignals/commit/49a7eee4bba3ab8f340cf56c371fa4f5ed702dcc.patch"; + sha256 = "sha256-Pfc5tL9VDSP6ftDoHoIb+MDi5rjYqr0PRfIajFuuYVs="; + }) + ]; + # explicit check: # build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE" hardeningDisable = [ |