commit: 44d553ed0237c6542f39ebf6a5e84c373cf7e176 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Fri Mar 8 12:17:06 2024 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Fri Mar 8 12:28:17 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44d553ed
dev-libs/simde: fix building tests with musl Needs a revbump given this modifies an installed header which otherwise could lead to revdeps failing to build with musl rather than tests. On top of now building, the tests passes fine (llvm-musl). Closes: https://bugs.gentoo.org/926488 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> dev-libs/simde/files/simde-0.7.6-musl.patch | 18 ++++++++++++++++++ .../{simde-0.7.6.ebuild => simde-0.7.6-r1.ebuild} | 4 ++++ 2 files changed, 22 insertions(+) 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.ebuild b/dev-libs/simde/simde-0.7.6-r1.ebuild similarity index 93% rename from dev-libs/simde/simde-0.7.6.ebuild rename to dev-libs/simde/simde-0.7.6-r1.ebuild index 8d8a8be32a7a..2a963a57dd1e 100644 --- a/dev-libs/simde/simde-0.7.6.ebuild +++ b/dev-libs/simde/simde-0.7.6-r1.ebuild @@ -18,6 +18,10 @@ 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
