From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 302EF15800F for ; Thu, 26 Jan 2023 16:30:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4361EE0729; Thu, 26 Jan 2023 16:30:33 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DECB7E0729 for ; Thu, 26 Jan 2023 16:30:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CDA643407AF for ; Thu, 26 Jan 2023 16:30:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E8AB162F for ; Thu, 26 Jan 2023 16:30:29 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1674750504.772b64c72de3ecc8e94d893d50494bca07016974.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/pari/files/, sci-mathematics/pari/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/pari/files/pari-2.15.2-ellsea-r1.patch sci-mathematics/pari/files/pari-2.15.2-ellsea.patch sci-mathematics/pari/pari-2.15.2-r1.ebuild sci-mathematics/pari/pari-2.15.2-r2.ebuild X-VCS-Directories: sci-mathematics/pari/files/ sci-mathematics/pari/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 772b64c72de3ecc8e94d893d50494bca07016974 X-VCS-Branch: master Date: Thu, 26 Jan 2023 16:30:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: eaa1702b-22a4-463d-95e3-56444f6b212e X-Archives-Hash: dfc5e0d1bd7c5aaf1bab1d79a2378d38 commit: 772b64c72de3ecc8e94d893d50494bca07016974 Author: Michael Orlitzky gentoo org> AuthorDate: Thu Jan 26 13:35:51 2023 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Thu Jan 26 16:28:24 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=772b64c7 sci-mathematics/pari: patch update for upstream bug 2441. Closes: https://bugs.gentoo.org/892035 Signed-off-by: Michael Orlitzky gentoo.org> .../pari/files/pari-2.15.2-ellsea-r1.patch | 34 ++++++++++++++++++++++ .../pari/files/pari-2.15.2-ellsea.patch | 22 -------------- ...pari-2.15.2-r1.ebuild => pari-2.15.2-r2.ebuild} | 2 +- 3 files changed, 35 insertions(+), 23 deletions(-) diff --git a/sci-mathematics/pari/files/pari-2.15.2-ellsea-r1.patch b/sci-mathematics/pari/files/pari-2.15.2-ellsea-r1.patch new file mode 100644 index 000000000000..b8af421c0e56 --- /dev/null +++ b/sci-mathematics/pari/files/pari-2.15.2-ellsea-r1.patch @@ -0,0 +1,34 @@ +A fix for upstream bug 2441 and gentoo bug 892035, with the changes to +CHANGES and the test suite stripped out (they don't apply cleanly). + +From 6f556664bea5dae9d7101533be65f10b9d6332e2 Mon Sep 17 00:00:00 2001 +From: Bill Allombert +Date: Fri, 20 Jan 2023 11:13:46 +0100 +Subject: [PATCH 1/1] ellcard(ellinit([1,1]*ffgen([41,16])))-> impossible + inverse [#2441] + +find_isogenous_from_Atkin: check that the kernel divides the division polynomial +--- + CHANGES | 1 + + src/basemath/ellsea.c | 3 ++- + src/test/32/ellff | 3 ++- + src/test/in/ellff | 3 +++ + 4 files changed, 8 insertions(+), 2 deletions(-) + +diff --git a/src/basemath/ellsea.c b/src/basemath/ellsea.c +index a6871fa6a7..05f148eadd 100644 +--- a/src/basemath/ellsea.c ++++ b/src/basemath/ellsea.c +@@ -852,7 +852,8 @@ find_isogenous_from_Atkin(GEN a4, GEN a6, ulong ell, struct meqn *MEQN, GEN g, G + GEN a4t, a6t, h; + a4a6t(&a4t, &a6t, ell, E4t, E6t, T, p); + h = find_kernel(a4, a6, ell, a4t, a6t, pp1, T, p, pp, e); +- if (h) return gerepilecopy(ltop, mkvec3(a4t, a6t, h)); ++ if (h && signe(Fq_elldivpolmod(a4, a6, ell, h, T, pp))==0) ++ return gerepilecopy(ltop, mkvec3(a4t, a6t, h)); + } + } + pari_err_BUG("find_isogenous_from_Atkin, kernel not found"); +-- +2.30.2 + diff --git a/sci-mathematics/pari/files/pari-2.15.2-ellsea.patch b/sci-mathematics/pari/files/pari-2.15.2-ellsea.patch deleted file mode 100644 index a5c19504ea87..000000000000 --- a/sci-mathematics/pari/files/pari-2.15.2-ellsea.patch +++ /dev/null @@ -1,22 +0,0 @@ -# upstream bug https://pari.math.u-bordeaux.fr/cgi-bin/bugreport.cgi?bug=2441 -# will be fixed in 2.15.3 -diff --git a/src/basemath/ellsea.c b/src/basemath/ellsea.c -index a6871fa6a7..f1e725ea55 100644 ---- a/src/basemath/ellsea.c -+++ b/src/basemath/ellsea.c -@@ -1303,6 +1303,7 @@ find_trace_Elkies_power(GEN a4, GEN a6, ulong ell, long *pt_k, struct meqn *MEQN - lambda = tr ? find_eigen_value_oneroot(a4, a6, ell, tr, kpoly, T, p): - find_eigen_value_power(a4, a6, ell, 1, 1, kpoly, T, p); - if (DEBUGLEVEL>1) err_printf(" [%ld ms]", timer_delay(ti)); -+ if (lambda==ell) return NULL; - if (smallfact && smallfact%(long)ell!=0) - { - ulong pell = pellk%ell; -@@ -1317,6 +1318,7 @@ find_trace_Elkies_power(GEN a4, GEN a6, ulong ell, long *pt_k, struct meqn *MEQN - if (!tmp) { k = cnt-1; break; } - if (DEBUGLEVEL) err_printf(", %Ps", powuu(ell, cnt)); - lambda = find_eigen_value_power(a4, a6, ell, cnt, lambda, gel(tmp,3), T, p); -+ if (lambda == upowuu(ell, cnt)) { k = cnt-1; break; } - Eba4 = Eca4; - Eba6 = Eca6; - Eca4 = gel(tmp,1); diff --git a/sci-mathematics/pari/pari-2.15.2-r1.ebuild b/sci-mathematics/pari/pari-2.15.2-r2.ebuild similarity index 98% rename from sci-mathematics/pari/pari-2.15.2-r1.ebuild rename to sci-mathematics/pari/pari-2.15.2-r2.ebuild index 8a767ad7f37d..c25f507e52f3 100644 --- a/sci-mathematics/pari/pari-2.15.2-r1.ebuild +++ b/sci-mathematics/pari/pari-2.15.2-r2.ebuild @@ -35,7 +35,7 @@ PATCHES=( "${FILESDIR}/${PN}"-2.9.4-ppc.patch "${FILESDIR}/${PN}"-2.11.2-no-automagic.patch "${FILESDIR}/${PN}"-2.9.4-fltk-detection.patch - "${FILESDIR}/${PN}"-2.15.2-ellsea.patch + "${FILESDIR}/${PN}"-2.15.2-ellsea-r1.patch "${FILESDIR}/${PN}"-2.15.2-install-doctex.patch )