Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/arb/, sci-mathematics/arb/files/
Date: Thu, 30 Sep 2021 11:57:41
Message-Id: 1633002640.a6fb6e441272e7fbd2ee0368cd3dec9600feb7d6.mjo@gentoo
1 commit: a6fb6e441272e7fbd2ee0368cd3dec9600feb7d6
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 30 11:48:21 2021 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 30 11:50:40 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6fb6e44
7
8 sci-mathematics/arb: new upstream version 2.21.0.
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
12
13 sci-mathematics/arb/Manifest | 1 +
14 sci-mathematics/arb/arb-2.21.0.ebuild | 38 +++++++++++
15 .../arb/files/arb-2.21.0-gamma_fmpq-testfix.patch | 73 ++++++++++++++++++++++
16 .../arb/files/arb-2.21.0-qa-warning-fix.patch | 21 +++++++
17 4 files changed, 133 insertions(+)
18
19 diff --git a/sci-mathematics/arb/Manifest b/sci-mathematics/arb/Manifest
20 index 15e55246978..73bb1e3d369 100644
21 --- a/sci-mathematics/arb/Manifest
22 +++ b/sci-mathematics/arb/Manifest
23 @@ -1,3 +1,4 @@
24 DIST arb-2.17.0.tar.gz 1589083 BLAKE2B 68d5b04dca24129ceaec4e05124e35b474157cf1efbb6505121a03058e014cd4eb67b99497dbbafcf62e9e31f9d11c92f749f6e047e6b1513b6c0cc5ef8f22da SHA512 201e0cebbd1c4857d194e5531c76c6e45a478cf6965b836818919adf0fc04f0fe25e16ecd49c62a438876b67f009b872c4f3c774fe35620be0b22c5e08bdb824
25 DIST arb-2.18.1.tar.gz 1595831 BLAKE2B 010ae7a17a9cc1c11ded5806ff761115f3e78c48a5d8fc058eae0715b1e00e40345d4e6445a84c71c37627879648f445663dcc3bbcebdeaac8439a993ade38ee SHA512 07afb45829119bc695926dab4221051b221c2cc3952e42c9928efc74570b05fc01c97ea86b1b67c16d7a19a55b4e32dce97e08c9b72f36b33dd62bfccd19bb05
26 DIST arb-2.19.0.tar.gz 1606463 BLAKE2B 85d832113ae42737a460198cbf485f825a9435963a888c0d0ab87b7ed7277d158480b573fd8ace42484dd4767bf4f1a372f637cfff01f18c105fd2b62d0d019e SHA512 199d1a26edd01e3b30f7aef69a9ae29456e3db384037744a1e073007ddb93a248873dfe83f3e48f9de58a9d17ebd7dc9a22a058f4adf766599d01d7eb17db204
27 +DIST arb-2.21.0.tar.gz 1842021 BLAKE2B 1ab3c4d18eb1918eaee9ea9aff68d82fc33a136ff5612e5173bf0cc29e5753f2c002256d68ae7983b5677d5082ab6849c68755e7544cee24144ca4e84e4d8411 SHA512 e441f8325d3095f1d568ebf9018520aedb25b6a066678e870942efcc8ac005dbf10cdffe42bc4fdbce3ba3ac397241c1d92fb54556e444243bd56dd3d5d72664
28
29 diff --git a/sci-mathematics/arb/arb-2.21.0.ebuild b/sci-mathematics/arb/arb-2.21.0.ebuild
30 new file mode 100644
31 index 00000000000..e18ea81def9
32 --- /dev/null
33 +++ b/sci-mathematics/arb/arb-2.21.0.ebuild
34 @@ -0,0 +1,38 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +CMAKE_BUILD_TYPE=Release
41 +inherit cmake
42 +
43 +DESCRIPTION="C library for arbitrary-precision interval arithmetic"
44 +HOMEPAGE="https://fredrikj.net/arb/"
45 +SRC_URI="https://github.com/fredrik-johansson/arb/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 +IUSE="test"
47 +
48 +RESTRICT="!test? ( test )"
49 +
50 +LICENSE="GPL-2+"
51 +SLOT="0/2"
52 +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
53 +
54 +RDEPEND="
55 + dev-libs/gmp:0=
56 + dev-libs/mpfr:0=
57 + sci-mathematics/flint:="
58 +
59 +DEPEND="${RDEPEND}"
60 +
61 +PATCHES=(
62 + "${FILESDIR}/${P}-gamma_fmpq-testfix.patch"
63 + "${FILESDIR}/${P}-qa-warning-fix.patch"
64 +)
65 +
66 +src_configure() {
67 + local mycmakeargs=(
68 + -DBUILD_TESTING="$(usex test)"
69 + )
70 +
71 + cmake_src_configure
72 +}
73
74 diff --git a/sci-mathematics/arb/files/arb-2.21.0-gamma_fmpq-testfix.patch b/sci-mathematics/arb/files/arb-2.21.0-gamma_fmpq-testfix.patch
75 new file mode 100644
76 index 00000000000..179ba8887f3
77 --- /dev/null
78 +++ b/sci-mathematics/arb/files/arb-2.21.0-gamma_fmpq-testfix.patch
79 @@ -0,0 +1,73 @@
80 +From 450435a84a40acc1871cd84f1caf2ea47c11a18c Mon Sep 17 00:00:00 2001
81 +From: fredrik <fredrik.johansson@×××××.com>
82 +Date: Tue, 28 Sep 2021 12:07:45 +0200
83 +Subject: [PATCH] fix (hopefully) spurious test failures for gamma_fmpq
84 +
85 +---
86 + arb_hypgeom/gamma_fmpq.c | 16 ++++++++--------
87 + 1 file changed, 8 insertions(+), 8 deletions(-)
88 +
89 +diff --git a/arb_hypgeom/gamma_fmpq.c b/arb_hypgeom/gamma_fmpq.c
90 +index 996a87e5..ee750d0d 100644
91 +--- a/arb_hypgeom/gamma_fmpq.c
92 ++++ b/arb_hypgeom/gamma_fmpq.c
93 +@@ -529,22 +529,22 @@ arb_hypgeom_gamma_fmpq_outward(arb_t y, const fmpq_t x, slong prec)
94 +
95 + if (q == 1 || q == 2 || q == 3 || q == 4 || q == 6)
96 + {
97 +- arb_hypgeom_gamma_small_frac(t, p, q, prec);
98 ++ arb_hypgeom_gamma_small_frac(t, p, q, prec + 4 * (m != 0));
99 + }
100 + else
101 + {
102 +- arb_hypgeom_gamma_fmpq_hyp(t, a, prec);
103 ++ arb_hypgeom_gamma_fmpq_hyp(t, a, prec + 4 * (m != 0));
104 + }
105 +
106 + /* argument reduction */
107 + if (m >= 0)
108 + {
109 +- arb_rising_fmpq_ui(u, a, m, prec);
110 ++ arb_rising_fmpq_ui(u, a, m, prec + 4);
111 + arb_mul(y, t, u, prec);
112 + }
113 + else
114 + {
115 +- arb_rising_fmpq_ui(u, x, -m, prec);
116 ++ arb_rising_fmpq_ui(u, x, -m, prec + 4);
117 + arb_div(y, t, u, prec);
118 + }
119 +
120 +@@ -602,7 +602,7 @@ arb_hypgeom_gamma_fmpq_taylor(arb_t y, const fmpq_t x, slong prec)
121 + }
122 +
123 + arb_set_fmpq(t, a, prec + 4);
124 +- success = arb_hypgeom_gamma_taylor(t, t, 0, prec);
125 ++ success = arb_hypgeom_gamma_taylor(t, t, 0, prec + 4);
126 +
127 + if (success)
128 + {
129 +@@ -611,12 +611,12 @@ arb_hypgeom_gamma_fmpq_taylor(arb_t y, const fmpq_t x, slong prec)
130 +
131 + if (m >= 0)
132 + {
133 +- arb_rising_fmpq_ui(u, a, m, prec);
134 ++ arb_rising_fmpq_ui(u, a, m, prec + 4);
135 + arb_mul(y, t, u, prec);
136 + }
137 + else
138 + {
139 +- arb_rising_fmpq_ui(u, x, -m, prec);
140 ++ arb_rising_fmpq_ui(u, x, -m, prec + 4);
141 + arb_div(y, t, u, prec);
142 + }
143 +
144 +@@ -684,7 +684,7 @@ arb_hypgeom_gamma_fmpq(arb_t y, const fmpq_t x, slong prec)
145 + wp = (slong) fmpz_bits(fmpq_numref(x)) - (slong) fmpz_bits(fmpq_denref(x));
146 + wp = FLINT_MAX(wp, 0);
147 + wp = FLINT_MIN(wp, 4 * prec);
148 +- wp += prec;
149 ++ wp += prec + 4;
150 +
151 + arb_set_fmpq(y, x, wp);
152 +
153
154 diff --git a/sci-mathematics/arb/files/arb-2.21.0-qa-warning-fix.patch b/sci-mathematics/arb/files/arb-2.21.0-qa-warning-fix.patch
155 new file mode 100644
156 index 00000000000..dd5440f938d
157 --- /dev/null
158 +++ b/sci-mathematics/arb/files/arb-2.21.0-qa-warning-fix.patch
159 @@ -0,0 +1,21 @@
160 +From d271652d3124c9e65a97df310a141c607a0b5ee5 Mon Sep 17 00:00:00 2001
161 +From: fredrik <fredrik.johansson@×××××.com>
162 +Date: Wed, 29 Sep 2021 19:55:34 +0200
163 +Subject: [PATCH] add missing include
164 +
165 +---
166 + acb_poly/lgamma_series.c | 1 +
167 + 1 file changed, 1 insertion(+)
168 +
169 +diff --git a/acb_poly/lgamma_series.c b/acb_poly/lgamma_series.c
170 +index 504b0cb4..d50ffb9f 100644
171 +--- a/acb_poly/lgamma_series.c
172 ++++ b/acb_poly/lgamma_series.c
173 +@@ -10,6 +10,7 @@
174 + */
175 +
176 + #include "acb_poly.h"
177 ++#include "acb_hypgeom.h"
178 +
179 + void
180 + _acb_log_rising_correct_branch(acb_t t,