Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
sagemath


Commits:
e17eeb79 by Antonio Rojas at 2026-09-24T18:14:02+02:00
upgpkg: 10.9-7: Adapt to networkx 3.7

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + networkx-3.7.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = sagemath
        pkgdesc = Open Source Mathematics Software, free alternative to Magma, 
Maple, Mathematica, and Matlab
        pkgver = 10.9
-       pkgrel = 6
+       pkgrel = 7
        url = http://www.sagemath.org
        arch = x86_64
        license = GPL-2.0-or-later
@@ -136,9 +136,13 @@ pkgbase = sagemath
        source = latte-count.patch
        source = maxima-5.48.patch
        source = planarity-5.patch
+       source = networkx-3.7.patch
+       source = https://github.com/sagemath/sage/commit/0cbfbfca.patch
        sha256sums = 
62fed909146a7cec5809c954a06a0932b8fe3e6bbde2a2dab305083cd98d0a91
        sha256sums = 
c3aa0243de70fe9c58772c83e748510b7af6950f98d01b3a819e6f8d1232c797
        sha256sums = 
a2d0663fe563bd131d47687086e36b1cbd9af158993226f69fecba8344cedb8a
        sha256sums = 
755e7042704f5c18b49dc9330a1d2a999ef187c331aa96d0367ed093fb2676c6
+       sha256sums = 
26f2918e3b775c89d235abab080012186e1d0070ae327f882cf7a95242b7ccf2
+       sha256sums = 
a6cb39bc0896b342918452dea630f7a499143aa3496a53e204cb9db50d50c581
 
 pkgname = sagemath


=====================================
PKGBUILD
=====================================
@@ -7,7 +7,7 @@
 
 pkgname=sagemath
 pkgver=10.9
-pkgrel=6
+pkgrel=7
 pkgdesc='Open Source Mathematics Software, free alternative to Magma, Maple, 
Mathematica, and Matlab'
 arch=(x86_64)
 url='http://www.sagemath.org'
@@ -142,11 +142,15 @@ checkdepends=(python-pytest)
 source=(git+https://github.com/sagemath/sage#tag=$pkgver
         latte-count.patch
         maxima-5.48.patch
-        planarity-5.patch)
+        planarity-5.patch
+        networkx-3.7.patch
+        https://github.com/sagemath/sage/commit/0cbfbfca.patch)
 sha256sums=('62fed909146a7cec5809c954a06a0932b8fe3e6bbde2a2dab305083cd98d0a91'
             'c3aa0243de70fe9c58772c83e748510b7af6950f98d01b3a819e6f8d1232c797'
             'a2d0663fe563bd131d47687086e36b1cbd9af158993226f69fecba8344cedb8a'
-            '755e7042704f5c18b49dc9330a1d2a999ef187c331aa96d0367ed093fb2676c6')
+            '755e7042704f5c18b49dc9330a1d2a999ef187c331aa96d0367ed093fb2676c6'
+            '26f2918e3b775c89d235abab080012186e1d0070ae327f882cf7a95242b7ccf2'
+            'a6cb39bc0896b342918452dea630f7a499143aa3496a53e204cb9db50d50c581')
 
 prepare(){
   cd sage
@@ -157,6 +161,10 @@ prepare(){
   patch -p1 -i ../maxima-5.48.patch
 # fix build with planarity 5
   patch -p1 -i ../planarity-5.patch
+# Networkx 3.7 fixes
+  patch -p1 -i ../networkx-3.7.patch
+# Fix build with Cython 3.3
+  patch -p1 -i ../0cbfbfca.patch
 }
 
 build() {


=====================================
networkx-3.7.patch
=====================================
@@ -0,0 +1,14 @@
+diff --git a/src/sage/graphs/generators/trees.pyx 
b/src/sage/graphs/generators/trees.pyx
+index 2447e4d8595..5a8f2530213 100644
+--- a/src/sage/graphs/generators/trees.pyx
++++ b/src/sage/graphs/generators/trees.pyx
+@@ -480,7 +480,7 @@ def RandomLobster(n, p, q, seed=None, immutable=False):
+     if seed is None:
+         seed = int(current_randstate().long_seed() % sys.maxsize)
+     import networkx
+-    return Graph(networkx.random_lobster(n, p, q, seed=seed),
++    return Graph(networkx.random_lobster_graph(n, p, q, seed=seed),
+                  immutable=immutable)
+ 
+ 
+



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/sagemath/-/commit/e17eeb79cb8ac21c1d899e87933086a871836bdc

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/sagemath/-/commit/e17eeb79cb8ac21c1d899e87933086a871836bdc
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to