public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
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: Mon,  9 Sep 2024 16:49:42 +0000 (UTC)	[thread overview]
Message-ID: <1725900562.a8754edb45dc26c67e8fc99eea3a0b9463668730.tupone@gentoo> (raw)

commit:     a8754edb45dc26c67e8fc99eea3a0b9463668730
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  9 16:48:25 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Sep  9 16:49:22 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8754edb

dev-libs/sleef: musl porting

Closes: https://bugs.gentoo.org/939347
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-libs/sleef/files/sleef-3.6.1-musl.patch | 11 +++++++++++
 dev-libs/sleef/sleef-3.6.1-r1.ebuild        |  2 ++
 2 files changed, 13 insertions(+)

diff --git a/dev-libs/sleef/files/sleef-3.6.1-musl.patch b/dev-libs/sleef/files/sleef-3.6.1-musl.patch
new file mode 100644
index 000000000000..9fc5ca865b89
--- /dev/null
+++ b/dev-libs/sleef/files/sleef-3.6.1-musl.patch
@@ -0,0 +1,11 @@
+--- a/src/libm-tester/tester2simdsp.c	2024-09-09 18:40:10.340986358 +0200
++++ b/src/libm-tester/tester2simdsp.c	2024-09-09 18:40:43.240620974 +0200
+@@ -892,7 +892,7 @@
+       double u0 = countULPsp(t = vget(xacoshf(vd), e), frx);
+       
+       if ((fabs(d) < sqrt(FLT_MAX) && u0 > 1.0001) ||
+-	  (d >=  sqrt(FLT_MAX) && !(u0 <= 1.0001 || (isinff(t) && t > 0))) ||
++	  (d >=  sqrt(FLT_MAX) && !(u0 <= 1.0001 || (isinf(t) && t > 0))) ||
+ 	  (d <= -sqrt(FLT_MAX) && !isnan(t))) {
+ 	printf(ISANAME " acoshf arg=%.20g ulp=%.20g\n", d, u0);
+ 	fflush(stdout); ecnt++;

diff --git a/dev-libs/sleef/sleef-3.6.1-r1.ebuild b/dev-libs/sleef/sleef-3.6.1-r1.ebuild
index 11911f2e2f68..528aaaa29e8b 100644
--- a/dev-libs/sleef/sleef-3.6.1-r1.ebuild
+++ b/dev-libs/sleef/sleef-3.6.1-r1.ebuild
@@ -20,6 +20,8 @@ BDEPEND="
 	test? ( >=dev-libs/mpfr-4.2 )
 "
 
+PATCHES=( "${FILESDIR}"/${P}-musl.patch )
+
 src_configure() {
 	local mycmakeargs=(
 		-DSLEEF_DISABLE_FFTW=ON


             reply	other threads:[~2024-09-09 16:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-09 16:49 Alfredo Tupone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-04-12 20:31 [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=1725900562.a8754edb45dc26c67e8fc99eea3a0b9463668730.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