From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/sleef/, dev-libs/sleef/files/
Date: Wed, 12 Apr 2023 20:31:11 +0000 (UTC) [thread overview]
Message-ID: <1681331443.331fd2aa9bf90d6269896a8d38d6bb0984ea3638.tupone@gentoo> (raw)
commit: 331fd2aa9bf90d6269896a8d38d6bb0984ea3638
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 12 20:29:56 2023 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Apr 12 20:30:43 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=331fd2aa
dev-libs/sleef: disable failing test and support mpfr-4.2
Closes: https://bugs.gentoo.org/904232
Closes: https://bugs.gentoo.org/864961
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
dev-libs/sleef/files/sleef-3.5.1-mpfr42.patch | 30 +++++++++++++++++++++++++++
dev-libs/sleef/sleef-3.5.1-r1.ebuild | 13 +++++++++++-
2 files changed, 42 insertions(+), 1 deletion(-)
diff --git a/dev-libs/sleef/files/sleef-3.5.1-mpfr42.patch b/dev-libs/sleef/files/sleef-3.5.1-mpfr42.patch
new file mode 100644
index 000000000000..0ae5706974f2
--- /dev/null
+++ b/dev-libs/sleef/files/sleef-3.5.1-mpfr42.patch
@@ -0,0 +1,30 @@
+--- a/src/libm-tester/testerutil.h 2023-04-12 22:07:52.400469592 +0200
++++ b/src/libm-tester/testerutil.h 2023-04-12 22:08:03.404312574 +0200
+@@ -90,7 +90,5 @@
+ double countULPsp(float d, mpfr_t c);
+ double countULP2sp(float d, mpfr_t c);
+
+-void mpfr_sinpi(mpfr_t ret, mpfr_t arg, mpfr_rnd_t rnd);
+-void mpfr_cospi(mpfr_t ret, mpfr_t arg, mpfr_rnd_t rnd);
+ void mpfr_lgamma_nosign(mpfr_t ret, mpfr_t arg, mpfr_rnd_t rnd);
+ #endif
+--- a/src/libm-tester/testerutil.c 2023-04-12 22:07:55.045431845 +0200
++++ b/src/libm-tester/testerutil.c 2023-04-12 22:08:23.275029908 +0200
+@@ -289,7 +289,7 @@
+ }
+
+ //
+-
++#if 0
+ void mpfr_sinpi(mpfr_t ret, mpfr_t arg, mpfr_rnd_t rnd) {
+ mpfr_t frpi, frd;
+ mpfr_inits(frpi, frd, NULL);
+@@ -315,7 +315,7 @@
+
+ mpfr_clears(frpi, frd, NULL);
+ }
+-
++#endif
+ void mpfr_lgamma_nosign(mpfr_t ret, mpfr_t arg, mpfr_rnd_t rnd) {
+ int s;
+ mpfr_lgamma(ret, &s, arg, rnd);
diff --git a/dev-libs/sleef/sleef-3.5.1-r1.ebuild b/dev-libs/sleef/sleef-3.5.1-r1.ebuild
index 5a8a35abfeb7..f2ba71fa3929 100644
--- a/dev-libs/sleef/sleef-3.5.1-r1.ebuild
+++ b/dev-libs/sleef/sleef-3.5.1-r1.ebuild
@@ -18,11 +18,14 @@ RESTRICT="!test? ( test )"
DEPEND=""
RDEPEND="${DEPEND}"
-BDEPEND=""
+BDEPEND="
+ test? ( >=dev-libs/mpfr-4.2 )
+"
PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-riscv.patch
+ "${FILESDIR}"/${P}-mpfr42.patch
)
src_configure() {
@@ -34,3 +37,11 @@ src_configure() {
cmake_src_configure
}
+
+src_test() {
+
+ local myctestargs=(
+ -E "iut(y)?purec(fma)?_scalar"
+ )
+ cmake_src_test
+}
next reply other threads:[~2023-04-12 20:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-12 20:31 Alfredo Tupone [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-09-09 16:49 [gentoo-commits] repo/gentoo:master commit in: dev-libs/sleef/, dev-libs/sleef/files/ Alfredo Tupone
2023-04-07 18:17 Alfredo Tupone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1681331443.331fd2aa9bf90d6269896a8d38d6bb0984ea3638.tupone@gentoo \
--to=tupone@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox