Skip to content

Commit 53c9bee

Browse files
yyyyx4dimpase
authored andcommitted
make sure patches are applied if needed
1 parent f5c1242 commit 53c9bee

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

build/pkgs/pari/package-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.15.3
1+
2.15.3.p1

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

0 commit comments

Comments
 (0)