commit:     f4550304319b5b173d439542be6e27e3d542dcf6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  9 22:18:30 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar  9 22:18:46 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4550304

sys-libs/libseccomp: backport test fix

Bug: https://bugs.gentoo.org/950511
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/libseccomp-2.6.0-drop-bogus-test.patch   | 31 ++++++++++++++++++++++
 sys-libs/libseccomp/libseccomp-2.6.0.ebuild        |  1 +
 2 files changed, 32 insertions(+)

diff --git a/sys-libs/libseccomp/files/libseccomp-2.6.0-drop-bogus-test.patch 
b/sys-libs/libseccomp/files/libseccomp-2.6.0-drop-bogus-test.patch
new file mode 100644
index 000000000000..b2466e5e8c01
--- /dev/null
+++ b/sys-libs/libseccomp/files/libseccomp-2.6.0-drop-bogus-test.patch
@@ -0,0 +1,31 @@
+https://github.com/seccomp/libseccomp/commit/2f0f3b0e9121720108431c5d054164016f476230
+
+From 2f0f3b0e9121720108431c5d054164016f476230 Mon Sep 17 00:00:00 2001
+From: Paul Moore <[email protected]>
+Date: Sat, 25 Jan 2025 11:12:55 -0500
+Subject: [PATCH] tests: remove the fuzzer from test 62-sim-arch_transactions
+
+We can't reliably run the bpf-sim-fuzz tests on tests which manipulate
+the filters arch/ABIs unless the filter is safe to run on all arch/ABIs,
+which is more or less impossible.  Remove the bpf-sim-fuzz test section
+in test #62 to work around this, just as we do with the other similar
+tests.
+
+Signed-off-by: Paul Moore <[email protected]>
+Signed-off-by: Tom Hromatka <[email protected]>
+(cherry picked from commit 7db46d72f13c172b290818f624c2966bd0db5677)
+--- a/tests/62-sim-arch_transactions.tests
++++ b/tests/62-sim-arch_transactions.tests
+@@ -14,11 +14,6 @@ test type: bpf-sim
+ 62-sim-arch_transactions      +x86_64 open            N       N       N       
N       N       N       KILL
+ 62-sim-arch_transactions      +x86_64 close           N       N       N       
N       N       N       ALLOW
+ 
+-test type: bpf-sim-fuzz
+-
+-# Testname                    StressCount
+-62-sim-arch_transactions      5
+-
+ test type: bpf-valgrind
+ 
+ # Testname
+

diff --git a/sys-libs/libseccomp/libseccomp-2.6.0.ebuild 
b/sys-libs/libseccomp/libseccomp-2.6.0.ebuild
index 5350ce0adcce..f1413f39da92 100644
--- a/sys-libs/libseccomp/libseccomp-2.6.0.ebuild
+++ b/sys-libs/libseccomp/libseccomp-2.6.0.ebuild
@@ -47,6 +47,7 @@ BDEPEND="
 PATCHES=(
        "${FILESDIR}"/libseccomp-2.6.0-python-shared.patch
        "${FILESDIR}"/libseccomp-2.5.3-skip-valgrind.patch
+       "${FILESDIR}"/${P}-drop-bogus-test.patch
 )
 
 src_prepare() {

Reply via email to