Date: Sunday, March 8, 2020 @ 07:29:06 Author: bisson Revision: 591462
fix FS#65736 Added: pari/trunk/c7a1d35f.patch Modified: pari/trunk/PKGBUILD ----------------+ PKGBUILD | 13 ++++++++++--- c7a1d35f.patch | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-03-08 07:09:12 UTC (rev 591461) +++ PKGBUILD 2020-03-08 07:29:06 UTC (rev 591462) @@ -2,7 +2,7 @@ pkgname=pari pkgver=2.11.3 -pkgrel=1 +pkgrel=2 pkgdesc='Computer algebra system designed for fast computations in number theory' url='https://pari.math.u-bordeaux.fr/' license=('GPL') @@ -11,13 +11,20 @@ makedepends=('perl' 'texlive-core') optdepends=('perl: gphelp, tex2mail') validpgpkeys=('42028EA404A2E9D80AC453148F0E7C2B4522E387') -source=("https://pari.math.u-bordeaux.fr/pub/pari/unix/${pkgname}-${pkgver}.tar.gz"{,.asc}) +source=("https://pari.math.u-bordeaux.fr/pub/pari/unix/${pkgname}-${pkgver}.tar.gz"{,.asc} + 'c7a1d35f.patch') sha256sums=('c7100a467eaf908942bb403cbd38036a26d7222e6ee6d39b50ab667d052ca6c9' - 'SKIP') + 'SKIP' + 'a1cbb79f04d686f6c5e2e61e3240bd28aeab786690502981d5da2da5a2fbcb05') conflicts=('pari-sage') replaces=("pari-sage<=1:${pkgver}") +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -p1 -i ../c7a1d35f.patch +} + build() { cd "${srcdir}/${pkgname}-${pkgver}" ./Configure \ Added: c7a1d35f.patch =================================================================== --- c7a1d35f.patch (rev 0) +++ c7a1d35f.patch 2020-03-08 07:29:06 UTC (rev 591462) @@ -0,0 +1,38 @@ +diff -Naur old/src/basemath/buch2.c new/src/basemath/buch2.c +--- old/src/basemath/buch2.c 2020-03-07 21:03:06.784293669 -1000 ++++ new/src/basemath/buch2.c 2020-03-07 21:03:14.577801531 -1000 +@@ -2143,7 +2143,8 @@ + for (i = 1; i < RU; i++) + if (gexpo(gel(emb,i)) > -1) break; + p1 = imag_i( row_i(logunit,i, 1,RU-1) ); +- p1 = RgV_dotproduct(p1, ex); if (!R1) p1 = gmul2n(p1, -1); ++ p1 = RgV_dotproduct(p1, ex); ++ if (i > R1) p1 = gmul2n(p1, -1); + p1 = gsub(garg(gel(emb,i),prec), p1); + /* p1 = arg(the missing root of 1) */ + +diff -Naur old/src/test/32/nf new/src/test/32/nf +--- old/src/test/32/nf 2020-03-07 21:03:06.770947894 -1000 ++++ new/src/test/32/nf 2020-03-07 21:03:14.577801531 -1000 +@@ -494,6 +494,7 @@ + [1, 1/2*x - 1/2] + Mod(0, x) + Mod(-6/5, x) ++[0, 2, Mod(0, 2)]~ + *** at top-level: nfinit([y^3+2,[1,x]]) + *** ^--------------------- + *** nfinit: incorrect type in nfbasic_init (t_VEC). +diff -Naur old/src/test/in/nf new/src/test/in/nf +--- old/src/test/in/nf 2020-03-07 21:03:06.780957225 -1000 ++++ new/src/test/in/nf 2020-03-07 21:03:14.577801531 -1000 +@@ -150,6 +150,10 @@ + nfinit(x, 3)[2] + nfinit(1/2*x + 3/5, 3)[2] + ++\\ #2164 ++bnf = bnfinit(y^4-y-1); ++bnfisunit(bnf,-y^3+2*y^2-1) ++ + \\ ERRORS: keep at end of file + + nfinit([y^3+2,[1,x]])
