diff options
Diffstat (limited to 'sci-mathematics/arb')
-rw-r--r-- | sci-mathematics/arb/Manifest | 4 | ||||
-rw-r--r-- | sci-mathematics/arb/arb-2.21.0.ebuild | 38 | ||||
-rw-r--r-- | sci-mathematics/arb/files/arb-2.21.0-gamma_fmpq-testfix.patch | 73 | ||||
-rw-r--r-- | sci-mathematics/arb/files/arb-2.21.0-qa-warning-fix.patch | 21 |
4 files changed, 136 insertions, 0 deletions
diff --git a/sci-mathematics/arb/Manifest b/sci-mathematics/arb/Manifest index cf4e80addae0..1288847de815 100644 --- a/sci-mathematics/arb/Manifest +++ b/sci-mathematics/arb/Manifest @@ -1,9 +1,13 @@ AUX arb-2.18.0-build_type.patch 866 BLAKE2B c127152e03d8dd532558a7dc95e4dd2cc1079073d8c30095feea6fa11a65ced564b94dbe3f2c3295fe47a010982a95b2e4408101ad078017d296f9c796f33ddd SHA512 b38728b103b55b19da1f92f9db8bfae74f275d54f83f3409e18503f199467e48fb74bdfb3716c28c01201dd19e8d78d20036671f99cdb63738f33416dc8eb7a2 AUX arb-2.18.0-multilib-strict.patch 590 BLAKE2B 7f438139ff5f0a19db074ea3bfab064da968424520bc81af242b58675657a7cacce0921076cb5525e00e2d6c33f2b75ed898ffdba7ce730855b09f2b7f8863a1 SHA512 ec9de9a642dd4cb859460132ed597474df4eb2b3f28cdf3ebcb5109fedc2866eda91b0d301149d94f71dd67c105a1dda3d0aed94dcfe34c9ff9fc4083ee6817c +AUX arb-2.21.0-gamma_fmpq-testfix.patch 2291 BLAKE2B 019af88d2e8c56cd9fcab960fd8fca6f0fdb74e69e72866edcd437700761768c78bd0cfa925ed9bac1c33e4e7c958bfca7939b7cef7c1b7186537dd0573e5414 SHA512 fe40677a95996f54121379e5bef0921e13923be80c68a7821177b371d71d4847e4ed903f3bc0c266c6c6de7fae9ede7cbaa59d5927b4bdb3cc7e58d588aaad68 +AUX arb-2.21.0-qa-warning-fix.patch 541 BLAKE2B 22d701fc07e2c3b8ad3fa0603204d7d35a9c9182b6ba9ced2d786866f8a15a4dd07c97a2702d723de98f5e264a5ca107ad24dc99095e46485fb75696114c6909 SHA512 5addd977a49fa5e9ec9847b07a3043d78ce7d7df5d6947ae895dd345424fa1941335e7a3691cee1497036e33b47fe1858e42b07277629956fe0299c4034b2d79 DIST arb-2.17.0.tar.gz 1589083 BLAKE2B 68d5b04dca24129ceaec4e05124e35b474157cf1efbb6505121a03058e014cd4eb67b99497dbbafcf62e9e31f9d11c92f749f6e047e6b1513b6c0cc5ef8f22da SHA512 201e0cebbd1c4857d194e5531c76c6e45a478cf6965b836818919adf0fc04f0fe25e16ecd49c62a438876b67f009b872c4f3c774fe35620be0b22c5e08bdb824 DIST arb-2.18.1.tar.gz 1595831 BLAKE2B 010ae7a17a9cc1c11ded5806ff761115f3e78c48a5d8fc058eae0715b1e00e40345d4e6445a84c71c37627879648f445663dcc3bbcebdeaac8439a993ade38ee SHA512 07afb45829119bc695926dab4221051b221c2cc3952e42c9928efc74570b05fc01c97ea86b1b67c16d7a19a55b4e32dce97e08c9b72f36b33dd62bfccd19bb05 DIST arb-2.19.0.tar.gz 1606463 BLAKE2B 85d832113ae42737a460198cbf485f825a9435963a888c0d0ab87b7ed7277d158480b573fd8ace42484dd4767bf4f1a372f637cfff01f18c105fd2b62d0d019e SHA512 199d1a26edd01e3b30f7aef69a9ae29456e3db384037744a1e073007ddb93a248873dfe83f3e48f9de58a9d17ebd7dc9a22a058f4adf766599d01d7eb17db204 +DIST arb-2.21.0.tar.gz 1842021 BLAKE2B 1ab3c4d18eb1918eaee9ea9aff68d82fc33a136ff5612e5173bf0cc29e5753f2c002256d68ae7983b5677d5082ab6849c68755e7544cee24144ca4e84e4d8411 SHA512 e441f8325d3095f1d568ebf9018520aedb25b6a066678e870942efcc8ac005dbf10cdffe42bc4fdbce3ba3ac397241c1d92fb54556e444243bd56dd3d5d72664 EBUILD arb-2.17.0.ebuild 2025 BLAKE2B aad028595287b91057475d8ea72305c8f720558917009660ef09502e5e22c371192eb6c0e52f281d6fdf9944cbf2038b9d39b1ca7ad9f5a5337b5e796f49bd92 SHA512 5160ed2793dd71af6005ec4ca75bc404c880c149519b85b3f19c51da2321ffbe99b0c6bc7e41dab1de6f624abd16bb3fcc55479dd8ae6cf4af20bca3a3954ed6 EBUILD arb-2.18.1.ebuild 778 BLAKE2B a8b078451c6ae4907242d87c08a39814bf1c4e77648ed20ccecdc0a93810e3553b03e01aea9a194de9d8c853f871ce016717c95a5cc3dcc53604d1fb77a5067c SHA512 edd48a1e3724defd85700a5c6ec6b98ea9c12cae5f060c540be4610c7e7c8cf266d76ce7522bb482f868e8bede4430d2fd88996d985b6ea294ee79cb4713b938 EBUILD arb-2.19.0.ebuild 751 BLAKE2B 84cdad6036faaf1a78268921ce0398addc31c6ac4e70681af10794f1c14c50545998870d31c28d8d59f0479ea7b9de395b8e9668daab66e0f2b2f894476d4978 SHA512 c484d59ebfb19fd9a9e05f69c9b7a246bc2e2d6802bb3c938afd3fefc82d984c7545c9b4314b61e949dc05ede11d222e377a66e50eb3123e385d643e983db125 +EBUILD arb-2.21.0.ebuild 787 BLAKE2B aa52e2c080e4a5b6816af28443c8f9386b12c36113df4dc88e21cf7dee6795ba6bf060358fbebb289f74ee4efa6f71e3f81e5db767803e1a03edc09af027f1ec SHA512 b9c7c98053b7769a86be7346b2210c71544d6f8757e580cf47f7e07e21e3ef8d277e4177156b972c5fbe92eb8a6ab691341bc2eae4579e419eb9a87f5eff4e69 MISC metadata.xml 1108 BLAKE2B a2e3c1cf3f6c710c9b3e6fbf629101c3dccc9ae60c80da0d08853669019d7a2a03bb276dbe078cb6cb5ce6060ef7139a3658481d61a6d5e6d25f0cc1593be344 SHA512 2865a818ec7ffb77afc1c849fc960c2c39ec3bf6586b5f67e5c5037c6b6836fff0390224f27b1251a613d07107cf164ca11e05ec2f6988b629bd7e3a476e4854 diff --git a/sci-mathematics/arb/arb-2.21.0.ebuild b/sci-mathematics/arb/arb-2.21.0.ebuild new file mode 100644 index 000000000000..e18ea81def99 --- /dev/null +++ b/sci-mathematics/arb/arb-2.21.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_BUILD_TYPE=Release +inherit cmake + +DESCRIPTION="C library for arbitrary-precision interval arithmetic" +HOMEPAGE="https://fredrikj.net/arb/" +SRC_URI="https://github.com/fredrik-johansson/arb/archive/${PV}.tar.gz -> ${P}.tar.gz" +IUSE="test" + +RESTRICT="!test? ( test )" + +LICENSE="GPL-2+" +SLOT="0/2" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" + +RDEPEND=" + dev-libs/gmp:0= + dev-libs/mpfr:0= + sci-mathematics/flint:=" + +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-gamma_fmpq-testfix.patch" + "${FILESDIR}/${P}-qa-warning-fix.patch" +) + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING="$(usex test)" + ) + + cmake_src_configure +} 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 new file mode 100644 index 000000000000..179ba8887f32 --- /dev/null +++ b/sci-mathematics/arb/files/arb-2.21.0-gamma_fmpq-testfix.patch @@ -0,0 +1,73 @@ +From 450435a84a40acc1871cd84f1caf2ea47c11a18c Mon Sep 17 00:00:00 2001 +From: fredrik <fredrik.johansson@gmail.com> +Date: Tue, 28 Sep 2021 12:07:45 +0200 +Subject: [PATCH] fix (hopefully) spurious test failures for gamma_fmpq + +--- + arb_hypgeom/gamma_fmpq.c | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/arb_hypgeom/gamma_fmpq.c b/arb_hypgeom/gamma_fmpq.c +index 996a87e5..ee750d0d 100644 +--- a/arb_hypgeom/gamma_fmpq.c ++++ b/arb_hypgeom/gamma_fmpq.c +@@ -529,22 +529,22 @@ arb_hypgeom_gamma_fmpq_outward(arb_t y, const fmpq_t x, slong prec) + + if (q == 1 || q == 2 || q == 3 || q == 4 || q == 6) + { +- arb_hypgeom_gamma_small_frac(t, p, q, prec); ++ arb_hypgeom_gamma_small_frac(t, p, q, prec + 4 * (m != 0)); + } + else + { +- arb_hypgeom_gamma_fmpq_hyp(t, a, prec); ++ arb_hypgeom_gamma_fmpq_hyp(t, a, prec + 4 * (m != 0)); + } + + /* argument reduction */ + if (m >= 0) + { +- arb_rising_fmpq_ui(u, a, m, prec); ++ arb_rising_fmpq_ui(u, a, m, prec + 4); + arb_mul(y, t, u, prec); + } + else + { +- arb_rising_fmpq_ui(u, x, -m, prec); ++ arb_rising_fmpq_ui(u, x, -m, prec + 4); + arb_div(y, t, u, prec); + } + +@@ -602,7 +602,7 @@ arb_hypgeom_gamma_fmpq_taylor(arb_t y, const fmpq_t x, slong prec) + } + + arb_set_fmpq(t, a, prec + 4); +- success = arb_hypgeom_gamma_taylor(t, t, 0, prec); ++ success = arb_hypgeom_gamma_taylor(t, t, 0, prec + 4); + + if (success) + { +@@ -611,12 +611,12 @@ arb_hypgeom_gamma_fmpq_taylor(arb_t y, const fmpq_t x, slong prec) + + if (m >= 0) + { +- arb_rising_fmpq_ui(u, a, m, prec); ++ arb_rising_fmpq_ui(u, a, m, prec + 4); + arb_mul(y, t, u, prec); + } + else + { +- arb_rising_fmpq_ui(u, x, -m, prec); ++ arb_rising_fmpq_ui(u, x, -m, prec + 4); + arb_div(y, t, u, prec); + } + +@@ -684,7 +684,7 @@ arb_hypgeom_gamma_fmpq(arb_t y, const fmpq_t x, slong prec) + wp = (slong) fmpz_bits(fmpq_numref(x)) - (slong) fmpz_bits(fmpq_denref(x)); + wp = FLINT_MAX(wp, 0); + wp = FLINT_MIN(wp, 4 * prec); +- wp += prec; ++ wp += prec + 4; + + arb_set_fmpq(y, x, wp); + 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 new file mode 100644 index 000000000000..dd5440f938de --- /dev/null +++ b/sci-mathematics/arb/files/arb-2.21.0-qa-warning-fix.patch @@ -0,0 +1,21 @@ +From d271652d3124c9e65a97df310a141c607a0b5ee5 Mon Sep 17 00:00:00 2001 +From: fredrik <fredrik.johansson@gmail.com> +Date: Wed, 29 Sep 2021 19:55:34 +0200 +Subject: [PATCH] add missing include + +--- + acb_poly/lgamma_series.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/acb_poly/lgamma_series.c b/acb_poly/lgamma_series.c +index 504b0cb4..d50ffb9f 100644 +--- a/acb_poly/lgamma_series.c ++++ b/acb_poly/lgamma_series.c +@@ -10,6 +10,7 @@ + */ + + #include "acb_poly.h" ++#include "acb_hypgeom.h" + + void + _acb_log_rising_correct_branch(acb_t t, |