diff mbox series

[meta-oe,master/wrynose,1/2] kernel-selftest: add libcap to build and runtime dependencies

Message ID 20260604123907.3597697-1-j-sahu@ti.com
State New
Headers show
Series [meta-oe,master/wrynose,1/2] kernel-selftest: add libcap to build and runtime dependencies | expand

Commit Message

Telukula Jeevan Kumar Sahu June 4, 2026, 12:39 p.m. UTC
libcap is needed unconditionally for capability-aware tests such as
breakpoints, cgroup, clone3, futex, ptrace, and seccomp.  Add it to
DEPENDS so it is always available at build time and to RDEPENDS so the
installed tests can call cap_get_proc() and friends at runtime.

bash and libgcc are also added to RDEPENDS: bash is required by several
test shell scripts, and libgcc provides libgcc_s.so needed by tests
that use GCC-emitted unwinding stubs.

Signed-off-by: Telukula Jeevan Kumar Sahu <j-sahu@ti.com>
---
 meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
index 5c001696d0..ab544859d8 100644
--- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
+++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
@@ -4,7 +4,7 @@  LICENSE = "GPL-2.0-only"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
 
-DEPENDS = "rsync-native llvm-native"
+DEPENDS = "rsync-native llvm-native libcap"
 
 S = "${UNPACKDIR}"
 
@@ -161,7 +161,7 @@  PACKAGE_ARCH = "${MACHINE_ARCH}"
 INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
 FILES:${PN} += "/usr/kernel-selftest"
 
-RDEPENDS:${PN} += "python3 perl perl-module-io-handle"
+RDEPENDS:${PN} += "python3 perl perl-module-io-handle bash libcap libgcc"
 
 INSANE_SKIP:${PN} += "libdir"