From 8b8d65790e3c55f11310824296096e2ca84fa1ec Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 8 Sep 2026 23:00:12 +0100 Subject: [PATCH] sys-apps/bubblewrap: fix tests I'm not sure why I only see this on some of my machines. Closes: https://bugs.gentoo.org/982101 Signed-off-by: Sam James --- sys-apps/bubblewrap/bubblewrap-0.12.0.ebuild | 1 + .../files/bubblewrap-0.12.0-tests-run.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 sys-apps/bubblewrap/files/bubblewrap-0.12.0-tests-run.patch diff --git a/sys-apps/bubblewrap/bubblewrap-0.12.0.ebuild b/sys-apps/bubblewrap/bubblewrap-0.12.0.ebuild index d93fa95dad1b9..f0210d60b5f88 100644 --- a/sys-apps/bubblewrap/bubblewrap-0.12.0.ebuild +++ b/sys-apps/bubblewrap/bubblewrap-0.12.0.ebuild @@ -37,6 +37,7 @@ RDEPEND+=" selinux? ( sec-policy/selinux-bubblewrap )" PATCHES=( "${FILESDIR}"/${PN}-0.11.2-no-werror.patch "${FILESDIR}"/${PN}-0.12.0-musl.patch + "${FILESDIR}"/${PN}-0.12.0-tests-run.patch ) python_check_deps() { diff --git a/sys-apps/bubblewrap/files/bubblewrap-0.12.0-tests-run.patch b/sys-apps/bubblewrap/files/bubblewrap-0.12.0-tests-run.patch new file mode 100644 index 0000000000000..e0b260d7c71a7 --- /dev/null +++ b/sys-apps/bubblewrap/files/bubblewrap-0.12.0-tests-run.patch @@ -0,0 +1,12 @@ +https://bugs.gentoo.org/982101 +--- a/tests/test-sandbox.py ++++ b/tests/test-sandbox.py +@@ -309,7 +309,7 @@ class TestSandbox(unittest.TestCase): + @in_sandbox() + def test_ro_bind_root_is_recursive(self): + """The base --ro-bind / / should apply read-only to sub-mounts.""" +- skip_prefixes = ('/dev', '/proc', '/sys', '/tmp') ++ skip_prefixes = ('/dev', '/proc', '/sys', '/tmp', '/run') + for mountpoint in list_mounts(): + if any(mountpoint == p or mountpoint.startswith(p + '/') + for p in skip_prefixes):