* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/arb/, sci-mathematics/arb/files/
@ 2017-07-28 21:56 Sebastien Fabbro
0 siblings, 0 replies; 4+ messages in thread
From: Sebastien Fabbro @ 2017-07-28 21:56 UTC (permalink / raw
To: gentoo-commits
commit: 2c3bf701dff1c57800b8e2ada20559049714aef2
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 28 21:41:41 2017 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Fri Jul 28 21:42:01 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c3bf701
sci-mathematics/arb: fixed for linking with PIE
Package-Manager: Portage-2.3.6, Repoman-2.3.3
.../arb/{arb-2.11.1.ebuild => arb-2.11.1-r1.ebuild} | 5 ++++-
sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.patch | 17 +++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/sci-mathematics/arb/arb-2.11.1.ebuild b/sci-mathematics/arb/arb-2.11.1-r1.ebuild
similarity index 92%
rename from sci-mathematics/arb/arb-2.11.1.ebuild
rename to sci-mathematics/arb/arb-2.11.1-r1.ebuild
index bea3d8d89ec..88e262a3d9f 100644
--- a/sci-mathematics/arb/arb-2.11.1.ebuild
+++ b/sci-mathematics/arb/arb-2.11.1-r1.ebuild
@@ -21,6 +21,8 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}"/${P}-pie-ftbs.patch )
+
src_configure() {
# Not an autoconf configure script.
# Note that it appears to have been cloned from the flint configure script
@@ -31,7 +33,8 @@ src_configure() {
--with-flint="${EPREFIX}/usr" \
--with-gmp="${EPREFIX}/usr" \
--with-mpfr="${EPREFIX}/usr" \
- $(use_enable static-libs static) || die
+ $(use_enable static-libs static) \
+ CFLAGS="${CPPFLAGS} ${CFLAGS}" || die
}
src_compile() {
diff --git a/sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.patch b/sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.patch
new file mode 100644
index 00000000000..b2db6b2a294
--- /dev/null
+++ b/sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.patch
@@ -0,0 +1,17 @@
+Description: Use -r instead of -Wl,-r to fix FTBFS with PIE enabled
+Author: Logan Rosen
+Forwarded: yes
+
+diff --git a/Makefile.subdirs b/Makefile.subdirs
+index 3dc757d..f0ec923 100644
+--- a/Makefile.subdirs
++++ b/Makefile.subdirs
+@@ -52,7 +52,7 @@ $(BUILD_DIR)/$(MOD_DIR)_%.o: %.c
+ $(QUIET_CC) $(CC) $(CFLAGS) $(INCS) -c $< -o $@ -MMD -MP -MF "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$@"
+
+ $(MOD_LOBJ): $(LOBJS)
+- $(QUIET_CC) $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
++ $(QUIET_CC) $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
+
+ -include $(LOBJS:.lo=.d)
+
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/arb/, sci-mathematics/arb/files/
@ 2020-03-09 13:40 Michael Orlitzky
0 siblings, 0 replies; 4+ messages in thread
From: Michael Orlitzky @ 2020-03-09 13:40 UTC (permalink / raw
To: gentoo-commits
commit: c1505827a4a75c879ee23ec1859104db57ad6ce2
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 9 13:32:42 2020 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Mon Mar 9 13:32:42 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1505827
sci-mathematics/arb: cleanup old versions and patches.
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
sci-mathematics/arb/Manifest | 2 -
sci-mathematics/arb/arb-2.11.1-r1.ebuild | 58 ----------------------
sci-mathematics/arb/arb-2.16.0.ebuild | 56 ---------------------
.../arb/files/arb-2.11.1-pie-ftbs.patch | 17 -------
4 files changed, 133 deletions(-)
diff --git a/sci-mathematics/arb/Manifest b/sci-mathematics/arb/Manifest
index ea9228bc4d6..bb3a8b16eb9 100644
--- a/sci-mathematics/arb/Manifest
+++ b/sci-mathematics/arb/Manifest
@@ -1,3 +1 @@
-DIST arb-2.11.1.tar.gz 1248835 BLAKE2B 8ba11f3a92103231c4710c0158ce0811b2a01872e1ec7b7a4a4320d27ab86688aa8733df6dd2464aa55c0a506a8a595e4c370848c78b5c3a650e647f0c6d7411 SHA512 7a014da5208b55f20c7a3cd3eb51070b09ae107b04cbbd6329925780c2ab4d7c38e1fb3619f21456fa806939818370fcae921f59eb013661b6bdd3d0971e3353
-DIST arb-2.16.0.tar.gz 1526059 BLAKE2B 14f4a9b23fa6fc46659b742cc95b4970cee74cf52bda8bc696831b0a5c1f946f41f1c2bba180ad1199c55d741366b3376aeed0efbf6ee087b26f6de788519739 SHA512 171c965aeb03cd2830df8a53990403c6da480a94d44385dadfbb2d02697f7c03e8b9a217094b0ad93f796d889a1564f4b9ae9db35ef9de90f61bb2e3220911be
DIST arb-2.17.0.tar.gz 1589083 BLAKE2B 68d5b04dca24129ceaec4e05124e35b474157cf1efbb6505121a03058e014cd4eb67b99497dbbafcf62e9e31f9d11c92f749f6e047e6b1513b6c0cc5ef8f22da SHA512 201e0cebbd1c4857d194e5531c76c6e45a478cf6965b836818919adf0fc04f0fe25e16ecd49c62a438876b67f009b872c4f3c774fe35620be0b22c5e08bdb824
diff --git a/sci-mathematics/arb/arb-2.11.1-r1.ebuild b/sci-mathematics/arb/arb-2.11.1-r1.ebuild
deleted file mode 100644
index f27adcd7712..00000000000
--- a/sci-mathematics/arb/arb-2.11.1-r1.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils ltprune toolchain-funcs
-
-DESCRIPTION="C library for arbitrary-precision interval arithmetic"
-HOMEPAGE="http://fredrikj.net/arb/"
-SRC_URI="https://github.com/fredrik-johansson/arb/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-2+"
-SLOT="0/2"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
-IUSE="static-libs"
-
-RDEPEND="
- dev-libs/gmp:0=
- dev-libs/mpfr:0=
- >=sci-mathematics/flint-2.5.0:=
-"
-DEPEND="${RDEPEND}"
-
-PATCHES=( "${FILESDIR}"/${P}-pie-ftbs.patch )
-
-src_configure() {
- # Not an autoconf configure script.
- # Note that it appears to have been cloned from the flint configure script
- # and that not all the options offered are valid.
- tc-export CC AR CXX
- ./configure \
- --prefix="${EPREFIX}/usr" \
- --with-flint="${EPREFIX}/usr" \
- --with-gmp="${EPREFIX}/usr" \
- --with-mpfr="${EPREFIX}/usr" \
- $(use_enable static-libs static) \
- CFLAGS="${CPPFLAGS} ${CFLAGS}" || die
-}
-
-src_compile() {
- emake verbose
-}
-
-src_test() {
- # Have to set the library path otherwise a previous install of libarb may be loaded.
- # This is in part a consequence of setting the soname/installnae I think.
- if [[ ${CHOST} == *-darwin* ]] ; then
- DYLD_LIBRARY_PATH="${S}" emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check
- else
- LD_LIBRARY_PATH="${S}" emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check
- fi
-}
-
-src_install() {
- emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
- use static-libs || prune_libtool_files --all
- dodoc README.md
-}
diff --git a/sci-mathematics/arb/arb-2.16.0.ebuild b/sci-mathematics/arb/arb-2.16.0.ebuild
deleted file mode 100644
index 8a9abe3d5c7..00000000000
--- a/sci-mathematics/arb/arb-2.16.0.ebuild
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils ltprune toolchain-funcs
-
-DESCRIPTION="C library for arbitrary-precision interval arithmetic"
-HOMEPAGE="http://fredrikj.net/arb/"
-SRC_URI="https://github.com/fredrik-johansson/arb/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-2+"
-SLOT="0/2"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
-IUSE="static-libs"
-
-RDEPEND="
- dev-libs/gmp:0=
- dev-libs/mpfr:0=
- >=sci-mathematics/flint-2.5.0:=
-"
-DEPEND="${RDEPEND}"
-
-src_configure() {
- # Not an autoconf configure script.
- # Note that it appears to have been cloned from the flint configure script
- # and that not all the options offered are valid.
- tc-export CC AR CXX
- ./configure \
- --prefix="${EPREFIX}/usr" \
- --with-flint="${EPREFIX}/usr" \
- --with-gmp="${EPREFIX}/usr" \
- --with-mpfr="${EPREFIX}/usr" \
- $(use_enable static-libs static) \
- CFLAGS="${CPPFLAGS} ${CFLAGS}" || die
-}
-
-src_compile() {
- emake verbose
-}
-
-src_test() {
- # Have to set the library path otherwise a previous install of libarb may be loaded.
- # This is in part a consequence of setting the soname/installnae I think.
- if [[ ${CHOST} == *-darwin* ]] ; then
- DYLD_LIBRARY_PATH="${S}" emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check
- else
- LD_LIBRARY_PATH="${S}" emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check
- fi
-}
-
-src_install() {
- emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
- use static-libs || prune_libtool_files --all
- dodoc README.md
-}
diff --git a/sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.patch b/sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.patch
deleted file mode 100644
index b2db6b2a294..00000000000
--- a/sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-Description: Use -r instead of -Wl,-r to fix FTBFS with PIE enabled
-Author: Logan Rosen
-Forwarded: yes
-
-diff --git a/Makefile.subdirs b/Makefile.subdirs
-index 3dc757d..f0ec923 100644
---- a/Makefile.subdirs
-+++ b/Makefile.subdirs
-@@ -52,7 +52,7 @@ $(BUILD_DIR)/$(MOD_DIR)_%.o: %.c
- $(QUIET_CC) $(CC) $(CFLAGS) $(INCS) -c $< -o $@ -MMD -MP -MF "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$@"
-
- $(MOD_LOBJ): $(LOBJS)
-- $(QUIET_CC) $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
-+ $(QUIET_CC) $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
-
- -include $(LOBJS:.lo=.d)
-
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/arb/, sci-mathematics/arb/files/
@ 2020-06-17 1:42 Michael Orlitzky
0 siblings, 0 replies; 4+ messages in thread
From: Michael Orlitzky @ 2020-06-17 1:42 UTC (permalink / raw
To: gentoo-commits
commit: 538c2b0961838fb7ad41b342083e52d61998d33f
Author: François Bissey <frp.bissey <AT> gmail <DOT> com>
AuthorDate: Tue Jun 16 23:25:48 2020 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Wed Jun 17 01:40:14 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=538c2b09
sci-mathematics/arb: bump to 2.18.0. Use cmake.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Closes: https://github.com/gentoo/gentoo/pull/16281
Signed-off-by: François René Pierre Bissey <frp.bissey <AT> gmail.com>
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
sci-mathematics/arb/Manifest | 1 +
sci-mathematics/arb/arb-2.18.0.ebuild | 37 ++++++++++++++++++++++
.../arb/files/arb-2.18.0-build_type.patch | 21 ++++++++++++
.../arb/files/arb-2.18.0-multilib-strict.patch | 20 ++++++++++++
4 files changed, 79 insertions(+)
diff --git a/sci-mathematics/arb/Manifest b/sci-mathematics/arb/Manifest
index bb3a8b16eb9..48e0e7b556b 100644
--- a/sci-mathematics/arb/Manifest
+++ b/sci-mathematics/arb/Manifest
@@ -1 +1,2 @@
DIST arb-2.17.0.tar.gz 1589083 BLAKE2B 68d5b04dca24129ceaec4e05124e35b474157cf1efbb6505121a03058e014cd4eb67b99497dbbafcf62e9e31f9d11c92f749f6e047e6b1513b6c0cc5ef8f22da SHA512 201e0cebbd1c4857d194e5531c76c6e45a478cf6965b836818919adf0fc04f0fe25e16ecd49c62a438876b67f009b872c4f3c774fe35620be0b22c5e08bdb824
+DIST arb-2.18.0.tar.gz 1595610 BLAKE2B be6a7e1a306f91b70383110e1ef6ead1ebd39f7d408c7a2e3031ca4b6fd788133607779d8f8edb3de1f00abe8ac5f21e07f951caecb4d56ada0517af71265d05 SHA512 3db0b2af4fe63fbc505d9b0e1940165f8bb62eec99d83569a1d959144f33b99141afd6c402d10b24407f9fce1853017a4802850f57fca181cf2f58605395fc31
diff --git a/sci-mathematics/arb/arb-2.18.0.ebuild b/sci-mathematics/arb/arb-2.18.0.ebuild
new file mode 100644
index 00000000000..691185c1d34
--- /dev/null
+++ b/sci-mathematics/arb/arb-2.18.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils
+
+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 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+
+RDEPEND="
+ dev-libs/gmp:0=
+ dev-libs/mpfr:0=
+ >=sci-mathematics/flint-2.5.0:="
+
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.18.0-multilib-strict.patch
+ "${FILESDIR}"/${PN}-2.18.0-build_type.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTING="$(usex test)"
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/sci-mathematics/arb/files/arb-2.18.0-build_type.patch b/sci-mathematics/arb/files/arb-2.18.0-build_type.patch
new file mode 100644
index 00000000000..1db7d5f2df4
--- /dev/null
+++ b/sci-mathematics/arb/files/arb-2.18.0-build_type.patch
@@ -0,0 +1,21 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ec806fe..4101c09 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -19,11 +19,11 @@ endif ()
+ set (BUILD_SHARED_LIBS yes CACHE BOOL "Build shared library or not")
+ set (BUILD_TESTING no CACHE BOOL "Build tests or not")
+
+-if (NOT (CMAKE_BUILD_TYPE STREQUAL "Debug" OR
+- CMAKE_BUILD_TYPE STREQUAL "Release"))
+- message("${CMAKE_BUILD_TYPE}")
+- message(FATAL_ERROR "CMAKE_BUILD_TYPE must be one of: Debug, Release (current value: '${CMAKE_BUILD_TYPE}')")
+-endif ()
++# if (NOT (CMAKE_BUILD_TYPE STREQUAL "Debug" OR
++# CMAKE_BUILD_TYPE STREQUAL "Release"))
++# message("${CMAKE_BUILD_TYPE}")
++# message(FATAL_ERROR "CMAKE_BUILD_TYPE must be one of: Debug, Release (current value: '${CMAKE_BUILD_TYPE}')")
++# endif ()
+
+ if ("${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")
+ set (PLATFORM "x64")
diff --git a/sci-mathematics/arb/files/arb-2.18.0-multilib-strict.patch b/sci-mathematics/arb/files/arb-2.18.0-multilib-strict.patch
new file mode 100644
index 00000000000..e45dec9f374
--- /dev/null
+++ b/sci-mathematics/arb/files/arb-2.18.0-multilib-strict.patch
@@ -0,0 +1,20 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ec806fe..d6136a8 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -136,10 +136,12 @@ if(NOT MSVC)
+ target_link_libraries(arb m)
+ endif()
+
++include(GNUInstallDirs)
++
+ install(TARGETS arb
+- RUNTIME DESTINATION bin
+- ARCHIVE DESTINATION lib
+- LIBRARY DESTINATION lib
++ RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_BINDIR}"
++ ARCHIVE DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}"
++ LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}"
+ )
+
+ foreach (FOLDER ${FOLDERS})
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/arb/, sci-mathematics/arb/files/
@ 2021-09-30 11:57 Michael Orlitzky
0 siblings, 0 replies; 4+ messages in thread
From: Michael Orlitzky @ 2021-09-30 11:57 UTC (permalink / raw
To: gentoo-commits
commit: a6fb6e441272e7fbd2ee0368cd3dec9600feb7d6
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 30 11:48:21 2021 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Thu Sep 30 11:50:40 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6fb6e44
sci-mathematics/arb: new upstream version 2.21.0.
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
sci-mathematics/arb/Manifest | 1 +
sci-mathematics/arb/arb-2.21.0.ebuild | 38 +++++++++++
.../arb/files/arb-2.21.0-gamma_fmpq-testfix.patch | 73 ++++++++++++++++++++++
.../arb/files/arb-2.21.0-qa-warning-fix.patch | 21 +++++++
4 files changed, 133 insertions(+)
diff --git a/sci-mathematics/arb/Manifest b/sci-mathematics/arb/Manifest
index 15e55246978..73bb1e3d369 100644
--- a/sci-mathematics/arb/Manifest
+++ b/sci-mathematics/arb/Manifest
@@ -1,3 +1,4 @@
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
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 00000000000..e18ea81def9
--- /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 00000000000..179ba8887f3
--- /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 00000000000..dd5440f938d
--- /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,
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-09-30 11:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-30 11:57 [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/arb/, sci-mathematics/arb/files/ Michael Orlitzky
-- strict thread matches above, loose matches on Subject: below --
2020-06-17 1:42 Michael Orlitzky
2020-03-09 13:40 Michael Orlitzky
2017-07-28 21:56 Sebastien Fabbro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox