From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 226B615ACFB for ; Wed, 12 Apr 2023 20:31:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E58BFE0823; Wed, 12 Apr 2023 20:31:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BACFFE0823 for ; Wed, 12 Apr 2023 20:31:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BC753340DA1 for ; Wed, 12 Apr 2023 20:31:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DF12B909 for ; Wed, 12 Apr 2023 20:31:11 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1681331443.331fd2aa9bf90d6269896a8d38d6bb0984ea3638.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/sleef/, dev-libs/sleef/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/sleef/files/sleef-3.5.1-mpfr42.patch dev-libs/sleef/sleef-3.5.1-r1.ebuild X-VCS-Directories: dev-libs/sleef/files/ dev-libs/sleef/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 331fd2aa9bf90d6269896a8d38d6bb0984ea3638 X-VCS-Branch: master Date: Wed, 12 Apr 2023 20:31:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e35b7d48-13cf-4f11-8f5e-ba4f128925f1 X-Archives-Hash: 39706475a3a879719bc82642c6f9ea56 commit: 331fd2aa9bf90d6269896a8d38d6bb0984ea3638 Author: Alfredo Tupone gentoo org> AuthorDate: Wed Apr 12 20:29:56 2023 +0000 Commit: Alfredo Tupone gentoo 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 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 +}