From 7825305c5ddf11fffe24fa30453c4e8468f64305 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 8 Mar 2024 13:07:48 +0000 Subject: gentoo auto-resync : 08:03:2024 - 13:07:48 --- dev-libs/simde/Manifest | 3 ++- dev-libs/simde/files/simde-0.7.6-musl.patch | 18 +++++++++++++++ dev-libs/simde/simde-0.7.6-r1.ebuild | 36 +++++++++++++++++++++++++++++ dev-libs/simde/simde-0.7.6.ebuild | 32 ------------------------- 4 files changed, 56 insertions(+), 33 deletions(-) create mode 100644 dev-libs/simde/files/simde-0.7.6-musl.patch create mode 100644 dev-libs/simde/simde-0.7.6-r1.ebuild delete mode 100644 dev-libs/simde/simde-0.7.6.ebuild (limited to 'dev-libs/simde') diff --git a/dev-libs/simde/Manifest b/dev-libs/simde/Manifest index 2f9857e477e9..e17d053fae37 100644 --- a/dev-libs/simde/Manifest +++ b/dev-libs/simde/Manifest @@ -1,3 +1,4 @@ +AUX simde-0.7.6-musl.patch 894 BLAKE2B 5f3c06f7981a329ae7fb677d2b2c20d64d429c8dd5ac8312e3e3ffed08268ed5d8e47c6517c6a0a0132709dd7a180f4fa63b8545c05da0b947755df0303be3fc SHA512 d5da14f5918a52f0ca485ac5023c420628e8b2246b3a71f1539e4751edab74d99335d558defe7cb8348a0c784cb00e54cd3f70b7bf48546794f22734dd970c9d DIST simde-0.7.6.tar.gz 6125123 BLAKE2B 96378e81a2e2a2d797289d26b3d0c1ea72288b51094e8c5fde75ecbef34a0c1d4dc029d5974281e2f9f938b190b4a648225fcb486205cc496ba57b1ec528cee4 SHA512 de17fca563c4db6766881e1c73142ad129a57febe55fa8ea1ae780226e60a84891b13d387e75574f2722d77e4013176e3c7dfaf17bccd8682b7d3d3ec8e92a54 -EBUILD simde-0.7.6.ebuild 776 BLAKE2B 9988810834a8355addbd78a8382a1678950048c8c3e3288e46f125423be823397f269b7d067ab500b09df6989421d521c73a787aa6701de8dc211afc6b8f63f1 SHA512 a1a01b5f5019feed17ad08eeb21652e2ed59d62937205db2615c0e05fb9c48079b2c0c049dfafcae1b227a356e8a3851533adeeb34d415a89305f3cd81b9cad8 +EBUILD simde-0.7.6-r1.ebuild 827 BLAKE2B 70c7e22d7857d33a195f9e668c80abfaa45b21a16515f07e1988c1b25bec3af7ed290efa36fac4407590ceaa6409269341f95a3ad3e1d72a95d583b20215dfb1 SHA512 6bb7e120bd1378bc6245912576732b3c11ff3c756154d80f504758ebe676c51c289fd0cc9118d3776c9208f7341465ba6654f81dd93f30b717801f60fa4ee4f9 MISC metadata.xml 332 BLAKE2B d617fc3761fcdd13bfb89430ff299ebfff73c7ddf292c6695256e2a9b20b20e91830ce968e10df506cafd6ec61d863ecaa9bb0aad54b48025ba5e0bcfb07b1f5 SHA512 47c6c2b56e6299057413cb698bf78cd566843507df12215d1b359fff33ee004efad2b9194f830c3ede2f88dcc1dbf8206fc833172cfc5e1db71560c709b2d5bb diff --git a/dev-libs/simde/files/simde-0.7.6-musl.patch b/dev-libs/simde/files/simde-0.7.6-musl.patch new file mode 100644 index 000000000000..c070f858ea81 --- /dev/null +++ b/dev-libs/simde/files/simde-0.7.6-musl.patch @@ -0,0 +1,18 @@ +This workaround patch should be removable when musl implements C23 +functions (technically this isn't a __GLIBC__-only quirk, but used +due to lack of anything better beside running a build test for it). + +https://bugs.gentoo.org/926488 +https://github.com/simd-everywhere/simde/issues/1001 +--- a/simde/simde-math.h ++++ b/simde/simde-math.h +@@ -1182,3 +1182,3 @@ + #if \ +- (!defined(HEDLEY_EMSCRIPTEN_VERSION) && HEDLEY_HAS_BUILTIN(__builtin_roundeven)) || \ ++ (defined (__GLIBC__) && !defined(HEDLEY_EMSCRIPTEN_VERSION) && HEDLEY_HAS_BUILTIN(__builtin_roundeven)) || \ + HEDLEY_GCC_VERSION_CHECK(10,0,0) +@@ -1202,3 +1202,3 @@ + #if \ +- (!defined(HEDLEY_EMSCRIPTEN_VERSION) && HEDLEY_HAS_BUILTIN(__builtin_roundevenf)) || \ ++ (defined(__GLIBC__) && !defined(HEDLEY_EMSCRIPTEN_VERSION) && HEDLEY_HAS_BUILTIN(__builtin_roundevenf)) || \ + HEDLEY_GCC_VERSION_CHECK(10,0,0) diff --git a/dev-libs/simde/simde-0.7.6-r1.ebuild b/dev-libs/simde/simde-0.7.6-r1.ebuild new file mode 100644 index 000000000000..2a963a57dd1e --- /dev/null +++ b/dev-libs/simde/simde-0.7.6-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +DESCRIPTION="Header-only library providing implementations of SIMD instruction sets" +HOMEPAGE="https://simd-everywhere.github.io/blog/" +SRC_URI=" + https://github.com/simd-everywhere/simde/archive/refs/tags/v${PV/_/-}.tar.gz + -> ${P}.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="test" +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}"/${PN}-0.7.6-musl.patch +) + +src_configure() { + # *FLAGS are only used for tests (nothing that is installed), and + # upstream tests with specific *FLAGS and is otherwise flaky with + # -march=native, -mno-*, and such -- unset to be spared headaches. + unset {C,CPP,CXX,LD}FLAGS + + local emesonargs=( + $(meson_use test tests) + ) + + meson_src_configure +} diff --git a/dev-libs/simde/simde-0.7.6.ebuild b/dev-libs/simde/simde-0.7.6.ebuild deleted file mode 100644 index 8d8a8be32a7a..000000000000 --- a/dev-libs/simde/simde-0.7.6.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit meson - -DESCRIPTION="Header-only library providing implementations of SIMD instruction sets" -HOMEPAGE="https://simd-everywhere.github.io/blog/" -SRC_URI=" - https://github.com/simd-everywhere/simde/archive/refs/tags/v${PV/_/-}.tar.gz - -> ${P}.tar.gz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm64" -IUSE="test" -RESTRICT="!test? ( test )" - -src_configure() { - # *FLAGS are only used for tests (nothing that is installed), and - # upstream tests with specific *FLAGS and is otherwise flaky with - # -march=native, -mno-*, and such -- unset to be spared headaches. - unset {C,CPP,CXX,LD}FLAGS - - local emesonargs=( - $(meson_use test tests) - ) - - meson_src_configure -} -- cgit v1.2.3