From 447405d1ff7db1478e7d5db5dda7eb0545d5520b Mon Sep 17 00:00:00 2001 From: Telukula Jeevan Kumar Sahu Date: Thu, 4 Jun 2026 18:09:06 +0530 Subject: [PATCH] kernel-selftest: add libcap to build and runtime dependencies 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 Signed-off-by: Khem Raj --- meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"