Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 9dfaf72

Browse files
author
Release Manager
committed
Trac #29554: fix buggy test in #29445
{{{ configure:17249: checking whether hyperellcharpoly bug is fixed *** too many arguments: ...lcharpoly(x^10+x^9+x^8+x,0*Mod(1,3)) *** ^----------- configure:17257: result: no; cannot use system pari/GP with known bug }}} also should fix the error in another ticket #29494 touching this stuff URL: https://trac.sagemath.org/29554 Reported by: dimpase Ticket author(s): Dima Pasechnik Reviewer(s): Vincent Delecroix
2 parents 732b4e1 + bf8c1d9 commit 9dfaf72

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

build/pkgs/pari/spkg-configure.m4

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
SAGE_SPKG_CONFIGURE([pari], [
2-
dnl See gp_version below on how the version is computed from MAJV.MINV.PATCHV
3-
m4_pushdef([SAGE_PARI_MINVER],["133889"])
4-
AC_REQUIRE([SAGE_SPKG_CONFIGURE_GMP])
5-
AC_REQUIRE([SAGE_SPKG_CONFIGURE_READLINE])
6-
AC_MSG_CHECKING([installing gmp/mpir or readline? ])
7-
if test x$sage_spkg_install_mpir = xyes -o x$sage_spkg_install_gmp = xyes -o x$sage_spkg_install_readline = xyes; then dnl deps test
8-
AC_MSG_RESULT([yes; install pari as well])
9-
sage_spkg_install_pari=yes
10-
else
11-
AC_MSG_RESULT([no])
2+
dnl See gp_version below on how the version is computed from MAJV.MINV.PATCHV
3+
m4_pushdef([SAGE_PARI_MINVER],["133889"])
4+
SAGE_SPKG_DEPCHECK([gmp mpir readline], [
125
AC_PATH_PROG([GP], [gp])
136
if test x$GP = x; then dnl GP test
147
AC_MSG_NOTICE([gp is not found])
@@ -74,8 +67,8 @@ SAGE_SPKG_CONFIGURE([pari], [
7467
sage_spkg_install_pari=yes
7568
fi
7669
AC_MSG_CHECKING([whether hyperellcharpoly bug is fixed])
77-
bug_check=$(echo "hyperellcharpoly([x^10 + x^9 + x^8 + x,0]*Mod(1,3))" | $GP -qf 2>> config.log)
78-
expected="%1 = x^8 + 731*x^7 + 6*x^6 - 720*x^5 + 18*x^4 - 2160*x^3 + 54*x^2 + 19737*x + 81"
70+
bug_check=`echo "hyperellcharpoly(Mod(1,3)*(x^10 + x^9 + x^8 + x))" | $GP -qf 2>> config.log`
71+
expected="x^8 + 2*x^7 + 6*x^6 + 9*x^5 + 18*x^4 + 27*x^3 + 54*x^2 + 54*x + 81"
7972
if test x"$bug_check" = x"$expected"; then
8073
AC_MSG_RESULT([yes])
8174
else
@@ -85,7 +78,7 @@ SAGE_SPKG_CONFIGURE([pari], [
8578
sage_spkg_install_pari=yes
8679
fi
8780
AC_MSG_CHECKING([whether bnfisunit bug of pari 2.11.3 is fixed])
88-
bug_check=$(echo "bnf = bnfinit(y^4-y-1); bnfisunit(bnf,-y^3+2*y^2-1)" | $GP -qf 2>> config.log)
81+
bug_check=`echo "bnf = bnfinit(y^4-y-1); bnfisunit(bnf,-y^3+2*y^2-1)" | $GP -qf 2>> config.log`
8982
expected="[[0, 2, Mod(0, 2)]]~"
9083
if test x"$bug_check" = x"$expected"; then
9184
AC_MSG_RESULT([yes])
@@ -139,8 +132,8 @@ SAGE_SPKG_CONFIGURE([pari], [
139132
AC_LANG_POP()
140133
], [sage_spkg_install_pari=yes])
141134
fi dnl end main PARI test
142-
fi dnl end deps test
143-
m4_popdef([SAGE_PARI_MINVER])
135+
])
136+
m4_popdef([SAGE_PARI_MINVER])
144137
], [], [], [
145138
if test x$sage_spkg_install_pari = xyes; then
146139
AC_SUBST(SAGE_PARI_PREFIX, ['$SAGE_LOCAL'])

0 commit comments

Comments
 (0)