git.iko.soy/typeable/nixpkgs
on master help sign in
sage: don't pin pari
commitfa34f6d41c42d9e199e61aff55ddb0c5056be7fc authorTimo Kaufmann <timokau@zoho.com> dateFri 27 Jul 2018, 00:10 (8 years ago) parente82c26a
2 files changed+14−13
pkgs/applications/science/math/sage/default.nix+1−9 pkgs/applications/science/math/sage/sage-src.nix+13−4
pkgs/applications/science/math/sage/default.nix+1−9
@@ -156,15 +156,7 @@ let
156156 # https://trac.sagemath.org/ticket/22191
157157 ecl = nixpkgs.ecl_16_1_2;
158158
159− # sage currently uses an unreleased version of pari
160− # https://trac.sagemath.org/ticket/25567
161− pari = (nixpkgs.pari.override { withThread = false; }).overrideAttrs (attrs: rec {
162− version = "2.10-1280-g88fb5b3"; # on update remove pari-stackwarn patch from `sage-src.nix`
163− src = fetchurl {
164− url = "mirror://sageupstream/pari/pari-${version}.tar.gz";
165− sha256 = "19gbsm8jqq3hraanbmsvzkbh88iwlqbckzbnga3y76r7k42akn7m";
166− };
167− });
159+ pari = nixpkgs.pari.override { withThread = false; };
168160in
169161 python.pkgs.sage-wrapper // {
170162 doc = python.pkgs.sagedoc;
pkgs/applications/science/math/sage/sage-src.nix+13−4
@@ -53,10 +53,6 @@ stdenv.mkDerivation rec {
5353 sha256 = "1k3afq3qlzmgqwx6rzs5wv153vv9dsf5rk8pi61g57l3r3npbjmc";
5454 })
5555
56− # Pari upstream has since accepted a patch, so this patch won't be necessary once sage updates pari.
57− # https://trac.sagemath.org/ticket/25312
58− ./patches/pari-stackwarn.patch
59−
6056 # https://trac.sagemath.org/ticket/25345
6157 # (upstream patch doesn't apply on 8.2 source)
6258 ./patches/dochtml-optional.patch
@@ -87,6 +83,7 @@ stdenv.mkDerivation rec {
8783
8884 # New glpk version has new warnings, filter those out until upstream sage has found a solution
8985 # https://trac.sagemath.org/ticket/24824
86+ ./patches/pari-stackwarn.patch # not actually necessary since tha pari upgrade, but necessary for the glpk patch to apply
9087 (fetchpatch {
9188 url = "https://salsa.debian.org/science-team/sagemath/raw/58bbba93a807ca2933ca317501d093a1bb4b84db/debian/patches/dt-version-glpk-4.65-ignore-warnings.patch";
9289 sha256 = "0b9293v73wb4x13wv5zwyjgclc01zn16msccfzzi6znswklgvddp";
@@ -102,6 +99,18 @@ stdenv.mkDerivation rec {
10299
103100 # https://trac.sagemath.org/ticket/24735
104101 ./patches/singular-4.1.1p2.patch
102+
103+ # https://trac.sagemath.org/ticket/25567 and dependency #25635
104+ (fetchpatch {
105+ name = "pari-upgrade-dependency.patch";
106+ url = "https://git.sagemath.org/sage.git/patch/?id=6995e7cae1b3476ad0145f8dfc897cf91f0c3c4d";
107+ sha256 = "1dvhabl1c9pwd9xkjvbjjg15mvb14b24p1f3cby1mlqk34d4lrs6";
108+ })
109+ (fetchpatch {
110+ name = "pari-2.11.0.patch";
111+ url = "https://git.sagemath.org/sage.git/patch/?id=7af4748cab37d651eaa88be501db88f4a5ffc584";
112+ sha256 = "13f740ly3c19gcmhjngiycvmc3mcfj61y00i6jv0wmfgpm2z3ank";
113+ })
105114 ];
106115
107116 patches = nixPatches ++ packageUpgradePatches ++ [