Skip to content

Commit e8397c1

Browse files
author
Release Manager
committed
sagemathgh-35302: update pari to 2.15.4, drop patch ### πŸ“š Description update pari to 2.15.4, drop patch Will fix sagemath#35219 ### πŸ“ Checklist - [x] I have made sure that the title is self-explanatory and the description concisely explains the PR. URL: sagemath#35302 Reported by: Dima Pasechnik Reviewer(s): Dima Pasechnik, Lorenz Panny, Michael Orlitzky
2 parents 07a2afd + 79667bf commit e8397c1

File tree

7 files changed

+37
-19
lines changed

7 files changed

+37
-19
lines changed

β€Žbuild/pkgs/pari/checksums.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tarball=pari-VERSION.tar.gz
2-
sha1=498e3cd0b7ded8be3fa1cba1125ca5213ed39453
3-
md5=562a6e973ca3980dc6c1eb2c4f252e92
4-
cksum=4081416981
2+
sha1=ae962671b5bf86849d2021113dfb5b2f59331a10
3+
md5=4ab5c81d93f4bccb94e483b8b48fc336
4+
cksum=598072677
55
upstream_url=https://pari.math.u-bordeaux.fr/pub/pari/unix/pari-VERSION.tar.gz
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.15.2.p1
1+
2.15.4

β€Žbuild/pkgs/pari/patches/bug2441.patch

Lines changed: 0 additions & 14 deletions
This file was deleted.

β€Žbuild/pkgs/pari/spkg-configure.m4

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,25 @@ SAGE_SPKG_CONFIGURE([pari], [
6767
AC_MSG_NOTICE([Otherwise Sage will build its own pari/GP.])
6868
sage_spkg_install_pari=yes
6969
fi
70+
71+
AC_MSG_CHECKING([whether factor() bug 2469 of pari 2.15.3 is fixed])
72+
result=`echo "f=factor(2^2203-1); print(\"ok\")" | timeout 1 $GP -qf`
73+
if test x"$result" = xok; then
74+
AC_MSG_RESULT([yes])
75+
else
76+
AC_MSG_RESULT([no; cannot use system pari/GP with known bug])
77+
sage_spkg_install_pari=yes
78+
fi
79+
80+
AC_MSG_CHECKING([whether qfbclassno() bug 2466 of pari 2.15.3 is fixed])
81+
result=`echo "qfbclassno(33844)" | $GP -qf`
82+
if test x"$result" = x3; then
83+
AC_MSG_RESULT([yes])
84+
else
85+
AC_MSG_RESULT([no; cannot use system pari/GP with known bug])
86+
sage_spkg_install_pari=yes
87+
fi
88+
7089
fi dnl end GP test
7190
7291
if test x$sage_spkg_install_pari = xno; then dnl main PARI test

β€Žsrc/sage/arith/misc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2688,6 +2688,11 @@ def factor(n, proof=None, int_=False, algorithm='pari', verbose=0, **kwds):
26882688
Traceback (most recent call last):
26892689
...
26902690
TypeError: unable to factor 'xyz'
2691+
2692+
Test that :issue:`35219` is fixed::
2693+
2694+
sage: len(factor(2^2203-1,proof=false))
2695+
1
26912696
"""
26922697
try:
26932698
m = n.factor

β€Žsrc/sage/interfaces/gp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def _next_var_name(self):
615615
The vector of results is correctly resized when the stack has
616616
to be enlarged during this operation::
617617
618-
sage: g = Gp(stacksize=10^4,init_list_length=12000) # long time
618+
sage: g = Gp(stacksize=3*10^6,init_list_length=12000) # long time
619619
sage: for n in [1..13000]: # long time
620620
....: a = g(n)
621621
sage: g('length(sage)') # long time

β€Žsrc/sage/rings/number_field/order.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,14 @@ def class_number(self, proof=None):
10831083
NotImplementedError: computation of class numbers of non-maximal orders
10841084
not in quadratic fields is not implemented
10851085
1086+
TESTS:
1087+
1088+
Test for PARI bug #2466::
1089+
1090+
sage: x = polygen(ZZ)
1091+
sage: R.<t> = EquationOrder(x^2 - 8461)
1092+
sage: R.class_number()
1093+
3
10861094
"""
10871095
if not self.is_maximal():
10881096
K = self.number_field()

0 commit comments

Comments
Β (0)