commit:     6be565260933b5357a1713e9ecdd175014dcc7c2
Author:     Brett A C Sheffield <bacs <AT> librecast <DOT> net>
AuthorDate: Sun Feb 22 06:58:02 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 22:24:29 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6be56526

dev-libs/blake3: fix test application on non-x86

Apply patch to fix linking of the test executable on non-x86 based
platforms.

Link: https://github.com/BLAKE3-team/BLAKE3/pull/539
Closes: https://bugs.gentoo.org/970424
Reported-by: Eli Schwartz <eschwartz <AT> gentoo.org>
Suggested-by: Christoph Erhardt <github <AT> sicherha.de>
Signed-off-by: Brett A C Sheffield <bacs <AT> librecast.net>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/112
Merges: https://codeberg.org/gentoo/gentoo/pulls/112
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/blake3/blake3-1.8.3.ebuild                  |  1 +
 .../blake3/files/blake3-1.8.3-fix-non-x86-test.patch | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/dev-libs/blake3/blake3-1.8.3.ebuild 
b/dev-libs/blake3/blake3-1.8.3.ebuild
index 17497c496746..500470e3512d 100644
--- a/dev-libs/blake3/blake3-1.8.3.ebuild
+++ b/dev-libs/blake3/blake3-1.8.3.ebuild
@@ -22,6 +22,7 @@ BDEPEND="test? ( ${PYTHON_DEPS} )"
 PATCHES=(
        "${FILESDIR}/${PN}-1.5.3-backport-pr405.patch"
        "${FILESDIR}/${PN}-1.8.2-x32.patch"
+       "${FILESDIR}/${PN}-1.8.3-fix-non-x86-test.patch" # 970424
 )
 
 pkg_setup() {

diff --git a/dev-libs/blake3/files/blake3-1.8.3-fix-non-x86-test.patch 
b/dev-libs/blake3/files/blake3-1.8.3-fix-non-x86-test.patch
new file mode 100644
index 000000000000..2119275e075f
--- /dev/null
+++ b/dev-libs/blake3/files/blake3-1.8.3-fix-non-x86-test.patch
@@ -0,0 +1,20 @@
+Adapted from upstream patch by Christoph Erhardt <[email protected]>
+https://github.com/BLAKE3-team/BLAKE3/pull/539
+---
+ c/blake3_dispatch.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/blake3_dispatch.c b/blake3_dispatch.c
+index 14dfbbe..de993ed 100644
+--- a/blake3_dispatch.c
++++ b/blake3_dispatch.c
+@@ -89,6 +89,9 @@ static void cpuidex(uint32_t out[4], uint32_t id, uint32_t 
sid) {
+ #endif
+ }
+ 
++#endif
++
++#if defined(IS_X86) || defined(BLAKE3_TESTING)
+ 
+ enum cpu_feature {
+   SSE2 = 1 << 0,

Reply via email to