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@gentoo.org>
This commit is contained in:
Alfredo Tupone
2023-04-12 22:30:43 +02:00
parent 66abbedd41
commit 331fd2aa9b
2 changed files with 42 additions and 1 deletions
@@ -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);
+12 -1
View File
@@ -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
}