Skip to content

Commit

Permalink
make sure patches are applied if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyyx4 authored and dimpase committed Oct 10, 2023
1 parent f5c1242 commit 53c9bee
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/pkgs/pari/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.15.3
2.15.3.p1
19 changes: 19 additions & 0 deletions build/pkgs/pari/spkg-configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,25 @@ SAGE_SPKG_CONFIGURE([pari], [
AC_MSG_NOTICE([Otherwise Sage will build its own pari/GP.])
sage_spkg_install_pari=yes
fi
AC_MSG_CHECKING([whether factor() bug 2469 of pari 2.15.3 is fixed])
result=`echo "f=factor(2^2203-1); print(\"ok\")" | timeout 1 $GP -qf`
if test x"$result" = xok; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no; cannot use system pari/GP with known bug])
sage_spkg_install_pari=yes
fi
AC_MSG_CHECKING([whether qfbclassno() bug 2466 of pari 2.15.3 is fixed])
result=`echo "qfbclassno(33844)" | $GP -qf`
if test x"$result" = x3; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no; cannot use system pari/GP with known bug])
sage_spkg_install_pari=yes
fi
fi dnl end GP test
if test x$sage_spkg_install_pari = xno; then dnl main PARI test
Expand Down

0 comments on commit 53c9bee

Please sign in to comment.