summaryrefslogtreecommitdiff
path: root/dev-libs/sleef
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-12 23:42:09 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-12 23:42:09 +0100
commit7bb99171a372e6cff495daf7dbef2e03d216be29 (patch)
tree656d783c21019354fbccc867f079b62aa6ab6b53 /dev-libs/sleef
parent5b36c18aaba339882ed70281371a1059d9e7943f (diff)
gentoo auto-resync : 12:04:2023 - 23:42:09
Diffstat (limited to 'dev-libs/sleef')
-rw-r--r--dev-libs/sleef/Manifest3
-rw-r--r--dev-libs/sleef/files/sleef-3.5.1-mpfr42.patch30
-rw-r--r--dev-libs/sleef/sleef-3.5.1-r1.ebuild13
3 files changed, 44 insertions, 2 deletions
diff --git a/dev-libs/sleef/Manifest b/dev-libs/sleef/Manifest
index 3625790b3981..c1108ca8edb1 100644
--- a/dev-libs/sleef/Manifest
+++ b/dev-libs/sleef/Manifest
@@ -1,5 +1,6 @@
AUX sleef-3.5.1-gentoo.patch 1261 BLAKE2B cef8f55c1e24e0366636965a7838caf2f1f204dd6bf76b3521bf4e8f2819af461394a743417999245a3cdcd204069914b03285234f073bdbd45852dc6d2b62ba SHA512 2dc7a8f1dd4e061df24ddc0061ca9e6b1fb06d6660a95c9a9bf33b90c419cc36fb2ab7c1c9aeb40cb019f459a7552aa3aae8e9189d7d0c5caf21fbc4390c49eb
+AUX sleef-3.5.1-mpfr42.patch 903 BLAKE2B 1726946ab5ea9b7e1c3756694d6cbbf0fd182aa0c49423c037b840f11f050f780914981a0af198d4f82531c73cbabd20655be1da5a4aab6c184d9c43e96ac337 SHA512 7ac5ee743a0a622ca7b8b37d0c2b8a5a22fe9eb3f6ca14240f457de26c6bec6326d127dbbebfe8cb3dd20702968db2f0193cabcb3f23b08e225a8085da08f510
AUX sleef-3.5.1-riscv.patch 529 BLAKE2B ca2669ccae99ca413eb00082efea611186f9d620b6e6918f967597b0c54b3e9439c4f3687105babda5cf6072e739991548ccaab2b51960e7043f00e791c78728 SHA512 066c7ac1d53b517c5ba16216fde80320e3adf6297eb90d747f8d91cc115a021682f75c69f1d8fe1034b4f35ef9a723000c2848721020890e0ed74bfea944a8cc
DIST sleef-3.5.1.tar.gz 1210108 BLAKE2B e10e23cb830252dd2ed34e24bfd79b5e812640572afedad899cccd462019c7a4e41c7b3b9f0ff5a77549fc45dbc51ae0ebeeada4c38f011cdac0262d2982ade8 SHA512 e8e4e5028db52998c6b82bd462622c08d670e4e85273327f1c3bdbd900827dd7793b217c2876ca1229b6f672493bb96f40140e14366390cccea0e6780689e128
-EBUILD sleef-3.5.1-r1.ebuild 675 BLAKE2B 070b7c2bd5f95785d2c6599ce4d76da17e9b8fdeb738a2917dae3eba9e91db97ae2c8f335beaa4f25d778038a284648810ba86d55976ba6bc187641041954d58 SHA512 a8bbc812ab16124eabb2934ddfdde88ecfd61b6e6d98b1f8490ca340b8be370eef0f3dedf56f57d90d15eb8efebce37446fcd55652176489cf39d6a06f9d20e2
+EBUILD sleef-3.5.1-r1.ebuild 830 BLAKE2B 200727933f7de6e5e82f5ee04e1fdd1bec7e771f2a3119d5446e5ad3adb6c905c49f21841a8f9ff4f54e0a4c3ad56f3e1a5b4bfe02fb294c6febea17bf658479 SHA512 49b3a6e5260c783856048a0280bf92a76c906e644a13cd358687cbeb1c857a3a3d51f33aec897f98cd359221a1ecc48c94b568f58a384a92ac5b8c385eadf2b9
MISC metadata.xml 327 BLAKE2B 983705672ddaa295e873a6fe7a7e7caf7c4d3fdd7c587fa2bff53e457e580ad1958108931e50df7f27303aa75937a702f3cae3d830b3f34760b95f06ca15458a SHA512 8cc8e6126c425e73d9431937f2bedc7dbb68f294359beaf4923e4105284465a7cb4c678693afdf3a16469f9d1a846d7543b550bbd5d100f369a0f93b6bd90c7a
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
+}