[arch-commits] Commit in cypari2/trunk (PKGBUILD maxprime-pari-2.13.patch)

Antonio Rojas arojas at archlinux.org
Sun Oct 25 08:10:34 UTC 2020


    Date: Sunday, October 25, 2020 @ 08:10:34
  Author: arojas
Revision: 732164

Fix hangs with PARI 2.13

Added:
  cypari2/trunk/maxprime-pari-2.13.patch
Modified:
  cypari2/trunk/PKGBUILD

--------------------------+
 PKGBUILD                 |    9 ++++++---
 maxprime-pari-2.13.patch |   13 +++++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-25 05:00:21 UTC (rev 732163)
+++ PKGBUILD	2020-10-25 08:10:34 UTC (rev 732164)
@@ -3,7 +3,7 @@
 pkgbase=cypari2
 pkgname=python-cypari2
 pkgver=2.1.1
-pkgrel=5
+pkgrel=6
 pkgdesc="Cython bindings for PARI"
 arch=(x86_64)
 url="https://www.sagemath.org"
@@ -11,12 +11,15 @@
 depends=(python-cysignals)
 makedepends=(cython)
 source=($pkgname-$pkgver.tar.gz::"https://github.com/defeo/cypari2/archive/$pkgver.tar.gz"
-        cypari2-pari-2.13.patch::"https://github.com/sagemath/cypari2/commit/1a4be244.patch")
+        cypari2-pari-2.13.patch::"https://github.com/sagemath/cypari2/commit/1a4be244.patch"
+        maxprime-pari-2.13.patch)
 sha256sums=('8b707cba6f5ed249105348d3e29ce55c12c7ed5556ff6e0ae03f7aa792321e10'
-            'ec9aa1e50480900883cbbb9b334a412717cfc3f624f5bc66459265de3848416e')
+            'ec9aa1e50480900883cbbb9b334a412717cfc3f624f5bc66459265de3848416e'
+            'a9a3454c042dbb1788553d18e353b8212ac854f6854af52d6eb4d47b715d7630')
 
 prepare() {
   patch -d $pkgbase-$pkgver -p1 -i ../cypari2-pari-2.13.patch # Port to PARI 2.13 API changes
+  patch -d $pkgbase-$pkgver -p1 -i ../maxprime-pari-2.13.patch # Explicitly set maxprime for PARI 2.13
 }
 
 build() {

Added: maxprime-pari-2.13.patch
===================================================================
--- maxprime-pari-2.13.patch	                        (rev 0)
+++ maxprime-pari-2.13.patch	2020-10-25 08:10:34 UTC (rev 732164)
@@ -0,0 +1,13 @@
+diff --git a/cypari2/pari_instance.pyx b/cypari2/pari_instance.pyx
+index a0dfb07..9f2bdb4 100644
+--- a/cypari2/pari_instance.pyx
++++ b/cypari2/pari_instance.pyx
+@@ -491,7 +491,7 @@ cdef class Pari(Pari_auto):
+ 
+         # Take 1MB as minimal stack. Use maxprime=0, which PARI will
+         # internally increase to some small value like 65537.
+-        pari_init_opts(1000000, 0, INIT_DFTm)
++        pari_init_opts(1000000, 500000, INIT_DFTm)
+         after_resize()
+ 
+         # Disable PARI's stack overflow checking which is incompatible



More information about the arch-commits mailing list