summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2021-03-24 21:38:04 +0000
committerGitHub <noreply@github.com>2021-03-24 21:38:04 +0000
commit82e1bfa53dfc0f3a9af48e6cfe6bdc7d36c450c7 (patch)
treeff48980fafa0921e168fc8aeca7d19159a4630ac /pkgs/applications/science
parentfa9cd72c09fe2e296481c7788bd4126e5eac6d84 (diff)
parent812ffed96b4b69a1443e89b39cf3907a1ec1b5b5 (diff)
Merge pull request #117123 from collares/cypari-update
cypari2, cysignals: updates
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/math/gap/default.nix3
-rw-r--r--pkgs/applications/science/math/gap/mark-genstackfuncbags-as-noinline.patch13
-rw-r--r--pkgs/applications/science/math/sage/sage-src.nix16
3 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/gap/default.nix b/pkgs/applications/science/math/gap/default.nix
index 04a49becc973..ce93c14b334f 100644
--- a/pkgs/applications/science/math/gap/default.nix
+++ b/pkgs/applications/science/math/gap/default.nix
@@ -101,6 +101,9 @@ stdenv.mkDerivation rec {
excludes = ["tst/testinstall/stringobj.tst"];
sha256 = "1mz5b4mbw2jdd1ypp5s0dy6pp0jsvwsxr2dm4kbkls20r1r192sc";
})
+
+ # fixes aarch64 gc crashes: https://github.com/gap-system/gap/pull/3965
+ ./mark-genstackfuncbags-as-noinline.patch
];
postPatch = ''
diff --git a/pkgs/applications/science/math/gap/mark-genstackfuncbags-as-noinline.patch b/pkgs/applications/science/math/gap/mark-genstackfuncbags-as-noinline.patch
new file mode 100644
index 000000000000..3a2f7231c091
--- /dev/null
+++ b/pkgs/applications/science/math/gap/mark-genstackfuncbags-as-noinline.patch
@@ -0,0 +1,13 @@
+diff --git a/src/gasman.c b/src/gasman.c
+index 417811401..314a74190 100644
+--- a/src/gasman.c
++++ b/src/gasman.c
+@@ -1861,7 +1861,7 @@ void SparcStackFuncBags( void )
+ #endif
+
+
+-void GenStackFuncBags ( void )
++NOINLINE void GenStackFuncBags ( void )
+ {
+ Bag * top; /* top of stack */
+ Bag * p; /* loop variable */
diff --git a/pkgs/applications/science/math/sage/sage-src.nix b/pkgs/applications/science/math/sage/sage-src.nix
index 3e4ed900a925..1fb605b35998 100644
--- a/pkgs/applications/science/math/sage/sage-src.nix
+++ b/pkgs/applications/science/math/sage/sage-src.nix
@@ -87,6 +87,14 @@ stdenv.mkDerivation rec {
rev = "2959ac792ebd6107fe87c9af1541083de5ba02d6";
sha256 = "sha256-bWIpEGir9Kawak5CJegBMNcHm/CqhWmdru+emeSsvO0=";
})
+
+ # fix intermittent errors in doctest/test.py: https://trac.sagemath.org/ticket/26912
+ (fetchSageDiff {
+ base = "9.3.beta8";
+ name = "set-cysignals-crash-ndebug.patch";
+ rev = "ca5257a5d0f32efc9f8f07e126020856270b1a18";
+ sha256 = "sha256-KViw63xE3O0eUiOYzoxNrr4NL+csql9GPJLDJCf/EZs=";
+ })
];
# Patches needed because of package updates. We could just pin the versions of
@@ -153,6 +161,14 @@ stdenv.mkDerivation rec {
rev = "75c1516f0abb9e6f8c335e38e4031f6ef674ed30";
sha256 = "sha256-RukkieIZcXNrju904H2oyGKdtpdE+9vNzvyjN2IBNg0=";
})
+
+ # cypari 2.1.2 update (https://trac.sagemath.org/ticket/31029)
+ (fetchSageDiff {
+ base = "9.3.beta3";
+ name = "cypari-2.1.2-update.patch";
+ rev = "b9aadfd08e81d74ca7c229bb80eb853b592887d0";
+ sha256 = "sha256-eKaMy7kpu+YKdL8bPStgocxBCTfc2Z/10RrGy2LENFw=";
+ })
];
patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;