commit:     a23739e54624539b996087df1251003b030abc26
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 20 06:42:22 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 20 06:43:02 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a23739e5

dev-libs/botan: fix test build on some arches

On some arches, test_simd builds something 'non-trivial' and needs
`isa_flags` to be passed down to it, which was missing from the ninja
template.

Closes: https://bugs.gentoo.org/969037
Closes: https://bugs.gentoo.org/969038
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/botan/botan-3.10.0.ebuild                |  6 +++++-
 dev-libs/botan/botan-3.9.0.ebuild                 |  6 +++++-
 dev-libs/botan/files/botan-3.9.0-tests-simd.patch | 15 +++++++++++++++
 3 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/dev-libs/botan/botan-3.10.0.ebuild 
b/dev-libs/botan/botan-3.10.0.ebuild
index a54d28b28388..8049121b2e7b 100644
--- a/dev-libs/botan/botan-3.10.0.ebuild
+++ b/dev-libs/botan/botan-3.10.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -52,6 +52,10 @@ BDEPEND="
 # Please see upstream's guidance:
 # 
https://botan.randombit.net/handbook/packaging.html#minimize-distribution-patches
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-3.9.0-tests-simd.patch
+)
+
 python_check_deps() {
        use doc || return 0
        python_has_version "dev-python/sphinx[${PYTHON_USEDEP}]" &&

diff --git a/dev-libs/botan/botan-3.9.0.ebuild 
b/dev-libs/botan/botan-3.9.0.ebuild
index b3a33d4003bc..e986ae0394c9 100644
--- a/dev-libs/botan/botan-3.9.0.ebuild
+++ b/dev-libs/botan/botan-3.9.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -52,6 +52,10 @@ BDEPEND="
 # Please see upstream's guidance:
 # 
https://botan.randombit.net/handbook/packaging.html#minimize-distribution-patches
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-3.9.0-tests-simd.patch
+)
+
 python_check_deps() {
        use doc || return 0
        python_has_version "dev-python/sphinx[${PYTHON_USEDEP}]" &&

diff --git a/dev-libs/botan/files/botan-3.9.0-tests-simd.patch 
b/dev-libs/botan/files/botan-3.9.0-tests-simd.patch
new file mode 100644
index 000000000000..bc0459e6396b
--- /dev/null
+++ b/dev-libs/botan/files/botan-3.9.0-tests-simd.patch
@@ -0,0 +1,15 @@
+Make sure to pass any flags for SIMD to test_simd.cpp if using the ninja
+generator.
+
+https://bugs.gentoo.org/969037
+https://bugs.gentoo.org/969038
+--- a/src/build-data/ninja.in
++++ b/src/build-data/ninja.in
+@@ -221,6 +221,7 @@ build %{obj}: compile_exe %{src}
+ 
+ %{for test_build_info}
+ build %{obj}: compile_exe %{src}
++  isa_flags = %{isa_flags}
+ %{endfor}
+ 
+ %{for fuzzer_build_info}

Reply via email to