git.iko.soy/typeable/nixpkgs
on master help sign in
singular: backport ntl error handling patch
commit289173366b231d26b3c04674b26373a1d88f67f7 authorTimo Kaufmann <timokau@zoho.com> dateWed 25 Jul 2018, 18:58 (8 years ago) parent840b64f
1 file changed+13
pkgs/applications/science/math/singular/default.nix+13
pkgs/applications/science/math/singular/default.nix+13
@@ -1,5 +1,6 @@
11{ stdenv, fetchurl, gmp, bison, perl, ncurses, readline, coreutils, pkgconfig
22, lib
3+, fetchpatch
34, autoreconfHook
45, file
56, flint
@@ -36,6 +37,18 @@ stdenv.mkDerivation rec {
3637 patchShebangs .
3738 '';
3839
40+ patches = [
41+ # NTL error handler was introduced in the library part, preventing users of
42+ # the library from implementing their own error handling
43+ # https://www.singular.uni-kl.de/forum/viewtopic.php?t=2769
44+ (fetchpatch {
45+ name = "move_error_handler_out_of_libsingular.patch";
46+ # rebased version of https://github.com/Singular/Sources/commit/502cf86d0bb2a96715be6764774b64a69c1ca34c.patch
47+ url = "https://git.sagemath.org/sage.git/plain/build/pkgs/singular/patches/singular-ntl-error-handler.patch?h=50b9ae2fd233c30860e1cbb3e63a26f2cc10560a";
48+ sha256 = "0vgh4m9zn1kjl0br68n04j4nmn5i1igfn28cph0chnwf7dvr9194";
49+ })
50+ ];
51+
3952 # For reference (last checked on commit 75f460d):
4053 # https://github.com/Singular/Sources/blob/spielwiese/doc/Building-Singular-from-source.md
4154 # https://github.com/Singular/Sources/blob/spielwiese/doc/external-packages-dynamic-modules.md