From 4302363de81670f7bb86c09e955b447c8ba9c91e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sat, 12 Nov 2022 15:42:01 -0300 Subject: [PATCH] pari: update to 2.15.1. --- ...cd3f497f30f757c8eecadc9b45b33754a540.patch | 54 ------------------- srcpkgs/pari/template | 4 +- 2 files changed, 2 insertions(+), 56 deletions(-) delete mode 100644 srcpkgs/pari/patches/9c4bcd3f497f30f757c8eecadc9b45b33754a540.patch diff --git a/srcpkgs/pari/patches/9c4bcd3f497f30f757c8eecadc9b45b33754a540.patch b/srcpkgs/pari/patches/9c4bcd3f497f30f757c8eecadc9b45b33754a540.patch deleted file mode 100644 index 2cea7402b6e42..0000000000000 --- a/srcpkgs/pari/patches/9c4bcd3f497f30f757c8eecadc9b45b33754a540.patch +++ /dev/null @@ -1,54 +0,0 @@ -See: https://pari.math.u-bordeaux.fr/cgi-bin/bugreport.cgi?bug=2419 --- - -commit 9c4bcd3f497f30f757c8eecadc9b45b33754a540 -Author: Karim Belabas -Date: Tue Oct 4 10:30:43 2022 +0200 - - 6- conversion to float of t_QUAD with t_FRAC components [#2419] - -diff --git a/src/basemath/gen2.c b/src/basemath/gen2.c -index 3ef74a7023..d810270b99 100644 ---- a/src/basemath/gen2.c -+++ b/src/basemath/gen2.c -@@ -2429,8 +2429,8 @@ quadtofp(GEN x, long prec) - else - { /* if (b) x ~ (u + z) / 2 and quadnorm(x) ~ (u^2 - z^2) / 4 - * else x ~ u + z and quadnorm(x) ~ u^2 - z^2 */ -- long s = signe(u); -- if (s == -signe(v)) /* conjugate expression avoids cancellation */ -+ long s = gsigne(u); -+ if (s == -gsigne(v)) /* conjugate expression avoids cancellation */ - { - z = gdiv(quadnorm(x), gsub(u, z)); - if (b) shiftr_inplace(z, 1); -diff --git a/src/test/32/quad b/src/test/32/quad -index 2b43d87a4a..1f1042d143 100644 ---- a/src/test/32/quad -+++ b/src/test/32/quad -@@ -43,6 +43,7 @@ w - -4294967297 - 4294967297 - -4294967297 -+2.2847006554165615148712535010323047844 - *** at top-level: floor(w8) - *** ^--------- - *** floor: incorrect type in gfloor (t_QUAD). -@@ -55,4 +56,4 @@ w - *** at top-level: floor(Mod(0,3)*quadgen(5)) - *** ^-------------------------- - *** floor: incorrect type in gfloor (t_QUAD). --Total time spent: 2 -+Total time spent: 1 -diff --git a/src/test/in/quad b/src/test/in/quad -index c8cd5a586f..82cd5e992d 100644 ---- a/src/test/in/quad -+++ b/src/test/in/quad -@@ -47,6 +47,7 @@ ceil(2*w) - ceil(-2*w) - round(2*w) - round(-2*w) -+quadgen(5) + 2/3 + 0.\\ #2419 - - \\ Errors keep at end of file - floor(w8) diff --git a/srcpkgs/pari/template b/srcpkgs/pari/template index 811826a1ee148..cf5ba95014446 100644 --- a/srcpkgs/pari/template +++ b/srcpkgs/pari/template @@ -1,6 +1,6 @@ # Template file for 'pari' pkgname=pari -version=2.15.0 +version=2.15.1 revision=1 build_style=configure build_helper=qemu @@ -19,7 +19,7 @@ license="GPL-2.0-or-later" homepage="https://pari.math.u-bordeaux.fr" changelog="https://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi?p=pari.git;a=blob_plain;f=CHANGES;hb=refs/heads/pari-${version%.*}" distfiles="https://pari.math.u-bordeaux.fr/pub/pari/unix/${pkgname}-${version}.tar.gz" -checksum=e474851e0d16d4e4f9a0d9612c746a2ae7c9a1ec185d04c440b1c74a85755685 +checksum=45419db77c6685bee67e42e0ecb78e19ef562be7aafc637c8a41970f2e909e3d build_options="x11 pthreads" build_options_default="x11 pthreads"