[arch-commits] Commit in sagemath/trunk (PKGBUILD sagemath-doc-sphinx4.3.patch)

Antonio Rojas arojas at gemini.archlinux.org
Sun Jan 30 17:48:56 UTC 2022


    Date: Sunday, January 30, 2022 @ 17:48:54
  Author: arojas
Revision: 1120606

Fix doc build with Sphinx 4.3

Added:
  sagemath/trunk/sagemath-doc-sphinx4.3.patch
Modified:
  sagemath/trunk/PKGBUILD

------------------------------+
 PKGBUILD                     |   10 +++++++---
 sagemath-doc-sphinx4.3.patch |   12 ++++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-30 17:48:46 UTC (rev 1120605)
+++ PKGBUILD	2022-01-30 17:48:54 UTC (rev 1120606)
@@ -7,7 +7,7 @@
 
 pkgname=sagemath
 pkgver=9.5
-pkgrel=1
+pkgrel=2
 pkgdesc='Open Source Mathematics Software, free alternative to Magma, Maple, Mathematica, and Matlab'
 arch=(x86_64)
 url='http://www.sagemath.org'
@@ -55,7 +55,8 @@
         test-optional.patch
         sagemath-lrcalc2.patch
         sagemath-linbox-1.7.patch
-        sagemath-bliss-0.77.patch)
+        sagemath-bliss-0.77.patch
+        sagemath-doc-sphinx4.3.patch)
 sha256sums=('8d70a3b26080802c5b2e33dda4c23795d494d8216a0c2ecfcd608ebab0e64ff6'
             'eee5fa15d8c7be7e009166dbde3ea24bb10d7793dc12880516f278f86b1a6694'
             '2bf9e2b44c20c5bec9d90782f59a87374a3c726241179191e9589179e1550a03'
@@ -62,7 +63,8 @@
             '9d042070df3dfd53a1248659677798da888f733548eda91a6d5169c7aa1907e1'
             'c8a1fb98f454dfd52101373e478e396d83a7d55c2c658b1d246a86603cbb15e8'
             'eacea27b214d32cb886a75695153dfc36b5bad2fd2517e8e4eee18e74220e9e3'
-            '49ede468b8e1e7b8d7a390aab9ff1a6e899a0c5e487632cbf76902d80c637505')
+            '49ede468b8e1e7b8d7a390aab9ff1a6e899a0c5e487632cbf76902d80c637505'
+            '4e311733bc4c1d7ab4e898356838f101eff26738e7d24fb50c1879fa13a75c6e')
 
 prepare(){
   cd sage-$pkgver
@@ -74,6 +76,8 @@
   patch -p1 -i ../sagemath-linbox-1.7.patch
 # Fix build with bliss 0.77 https://trac.sagemath.org/ticket/33010
   patch -p1 -i ../sagemath-bliss-0.77.patch
+# Fix sagemath-doc build with Sphinx 4.3 https://trac.sagemath.org/ticket/32968
+  patch -p1 -i ../sagemath-doc-sphinx4.3.patch
 
 # Arch-specific patches
 # assume all optional packages are installed

Added: sagemath-doc-sphinx4.3.patch
===================================================================
--- sagemath-doc-sphinx4.3.patch	                        (rev 0)
+++ sagemath-doc-sphinx4.3.patch	2022-01-30 17:48:54 UTC (rev 1120606)
@@ -0,0 +1,12 @@
+diff --git a/src/sage/docs/conf.py b/src/sage/docs/conf.py
+index c788623..dd92d4c 100644
+--- a/src/sage/docs/conf.py
++++ b/src/sage/docs/conf.py
+@@ -911,6 +911,7 @@ def setup(app):
+     if app.srcdir.startswith(SAGE_DOC_SRC):
+         app.add_config_value('intersphinx_mapping', {}, False)
+         app.add_config_value('intersphinx_cache_limit', 5, False)
++        app.add_config_value('intersphinx_disabled_reftypes', [], False)
+         app.connect('config-inited', set_intersphinx_mappings)
+         app.connect('builder-inited', intersphinx.load_mappings)
+         # We do *not* fully initialize intersphinx since we call it by hand



More information about the arch-commits mailing list