Skip to content

Commit b413874

Browse files
authored
sage: 10.4 -> 10.5.rc0 (#357335)
2 parents 1c63bc8 + c11dc6f commit b413874

File tree

3 files changed

+12
-54
lines changed

3 files changed

+12
-54
lines changed

pkgs/by-name/ga/gap/package.nix

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{ stdenv
22
, lib
3-
, fetchpatch
43
, fetchurl
54
, makeWrapper
65
, readline
@@ -67,20 +66,13 @@ in
6766
stdenv.mkDerivation rec {
6867
pname = "gap";
6968
# https://www.gap-system.org/Releases/
70-
version = "4.12.2";
69+
version = "4.13.1";
7170

7271
src = fetchurl {
7372
url = "https://github.com/gap-system/gap/releases/download/v${version}/gap-${version}.tar.gz";
74-
sha256 = "sha256-ZyMIdF63iiIklO6N1nhu3VvDMUVvzGRWrAZL2yjVh6g=";
73+
sha256 = "sha256-l5Tb26b7mY4KLQqoziH8iEitPT+cyZk7C44gvn4dvro=";
7574
};
7675

77-
patches = [
78-
(fetchpatch {
79-
url = "https://github.com/gap-system/gap/commit/c786e229413a44b7462196716b99ae9bb0071f4c.patch";
80-
hash = "sha256-g3jrEMSavHAUKlHoPqWmOw49hWHU+29SA788Klnr0Uw=";
81-
})
82-
];
83-
8476
# remove all non-essential packages (which take up a lot of space)
8577
preConfigure = lib.optionalString (!keepAll) (removeNonWhitelistedPkgs packagesToKeep) + ''
8678
patchShebangs .

pkgs/by-name/sa/sage/patches/sphinx-docbuild-subprocesses.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/src/sage_docbuild/builders.py b/src/sage_docbuild/builders.py
2-
index 871cc4705a2..4b718136b91 100644
2+
index ab39d93c280..e6501c083d5 100644
33
--- a/src/sage_docbuild/builders.py
44
+++ b/src/sage_docbuild/builders.py
55
@@ -106,31 +106,6 @@ def builder_helper(type):
@@ -48,13 +48,13 @@ index 871cc4705a2..4b718136b91 100644
4848
if build_options.ABORT_ON_ERROR:
4949
raise
5050
diff --git a/src/sage_docbuild/sphinxbuild.py b/src/sage_docbuild/sphinxbuild.py
51-
index 5621fe9e456..b1b91ce7b2c 100644
51+
index 62b2d3cb112..aa7dc07741b 100644
5252
--- a/src/sage_docbuild/sphinxbuild.py
5353
+++ b/src/sage_docbuild/sphinxbuild.py
54-
@@ -323,3 +323,8 @@ def runsphinx():
55-
sys.stderr = saved_stderr
56-
sys.stdout.flush()
57-
sys.stderr.flush()
54+
@@ -331,3 +331,8 @@ def runsphinx():
55+
56+
if not sys.warnoptions:
57+
warnings.filters = original_filters[:]
5858
+
5959
+if __name__ == '__main__':
6060
+ import sys

pkgs/by-name/sa/sage/sage-src.nix

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@
1111
# all get the same sources with the same patches applied.
1212

1313
stdenv.mkDerivation rec {
14-
version = "10.4";
14+
version = "10.5.rc0";
1515
pname = "sage-src";
1616

1717
src = fetchFromGitHub {
1818
owner = "sagemath";
1919
repo = "sage";
2020
rev = version;
21-
hash = "sha256-BDO00ZSm5lnjEuA56VsY/FZyAhoG1hkFxdIlTtBZVBA=";
21+
hash = "sha256-qjgEgyPOpT/g7D8YNhkqO1EHGNftZnuR5ucLNZBa9Sg=";
2222
};
2323

2424
# contains essential files (e.g., setup.cfg) generated by the bootstrap script.
2525
# TODO: investigate https://github.com/sagemath/sage/pull/35950
2626
configure-src = fetchurl {
2727
# the hash below is the tagged commit's _parent_. it can also be found by looking for
2828
# the "configure" asset at https://github.com/sagemath/sage/releases/tag/${version}
29-
url = "mirror://sageupstream/configure/configure-3c279ec5712e0fa35c5733e03e010970727d7189.tar.gz";
30-
hash = "sha256-3bRlgIUSIq9tDzvI+ZfEd5LMy1qHXdItEwu1say4cx4=";
29+
url = "mirror://sageupstream/configure/configure-d9c38a7c581e6ed54fbe420122b8bba488b16074.tar.gz";
30+
hash = "sha256-y1EpsuYK9wloptjeiTew+TZaIUZ2K/NKCbSteojFa4s=";
3131
};
3232

3333
# Patches needed because of particularities of nix or the way this is packaged.
@@ -54,20 +54,6 @@ stdenv.mkDerivation rec {
5454
# fix those bugs themselves. This is for critical bugfixes, where "critical"
5555
# == "causes (transient) doctest failures / somebody complained".
5656
bugfixPatches = [
57-
# https://github.com/sagemath/sage/pull/38628, landed in 10.5.beta4
58-
(fetchpatch {
59-
name = "pari-stack-cysignals-exception.patch";
60-
url = "https://github.com/sagemath/sage/commit/4a9c985b769b1209902c970ade1892f18ab48c10.diff";
61-
hash = "sha256-S6NdonB7needJlQdx52Huk34Q8/vG3nyGicA5JpsdWc=";
62-
})
63-
64-
# https://github.com/sagemath/sage/pull/38851, landed in 10.5.beta8
65-
(fetchpatch {
66-
name = "glpk-aarch64-hang-workaround.patch";
67-
url = "https://github.com/sagemath/sage/commit/ce4a78dcb4178f85273619cea076c97345977ee1.diff";
68-
hash = "sha256-TibTx5llkXjkEZB/MDy4hfGwKBmwtitEpWP6K/ykke0=";
69-
})
70-
7157
# compile libs/gap/element.pyx with -O1
7258
# a more conservative version of https://github.com/sagemath/sage/pull/37951
7359
./patches/gap-element-crash.patch
@@ -80,26 +66,6 @@ stdenv.mkDerivation rec {
8066
# should come from or be proposed to upstream. This list will probably never
8167
# be empty since dependencies update all the time.
8268
packageUpgradePatches = [
83-
# https://github.com/sagemath/sage/pull/38500, landed in 10.5.beta3
84-
(fetchpatch {
85-
name = "cython-3.0.11-upgrade.patch";
86-
url = "https://patch-diff.githubusercontent.com/raw/sagemath/sage/pull/38500.diff";
87-
hash = "sha256-ePfH3Gy1T0UfpoVd3EZowCfy88CbE+yE2MV2itWthsA=";
88-
})
89-
90-
# https://github.com/sagemath/sage/pull/36641, landed in 10.5.beta3
91-
(fetchpatch {
92-
name = "sympy-1.13.2-update.patch";
93-
url = "https://github.com/sagemath/sage/commit/100189fa62f9a40e7aa0d856615366ea99b87aff.diff";
94-
sha256 = "sha256-uWr3I15WByQYGVxbJFqG4zUJ7c7+4rjkcgwkAT85O7w=";
95-
})
96-
97-
# https://github.com/sagemath/sage/pull/38250, landed in 10.5.beta0
98-
(fetchpatch {
99-
name = "numpy-2.0-compat.patch";
100-
url = "https://github.com/sagemath/sage/commit/0962e0bcb159d342e7c7d83557a71e7b670fff47.diff";
101-
sha256 = "sha256-4SBhgPgT9VsBxcBH8+T5uYtWzYP5tZi9+iKOG55hWgI=";
102-
})
10369
];
10470

10571
patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;

0 commit comments

Comments
 (0)