bpftrace: Update the runtime dependencies

* bash and python3 are only needed by the ptest package.
* xz appears to not be needed at all.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Peter Kjellerstedt
2026-03-16 19:32:51 +01:00
committed by Khem Raj
parent cdb5d4c3e7
commit e585da399f
@@ -15,9 +15,6 @@ DEPENDS += "bison-native \
"
DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'pahole-native llvm-native', '', d)}"
RDEPENDS:${PN} += "bash python3 xz"
RDEPENDS:${PN}-ptest += "bpftool"
SRC_URI = "git://github.com/iovisor/bpftrace;branch=release/0.24.x;protocol=https;tag=v${PV} \
file://run-ptest \
file://0002-CMakeLists.txt-allow-to-set-BISON_FLAGS-like-l.patch \
@@ -41,9 +38,9 @@ do_install_ptest() {
cp -rf ${B}/tests/test* ${D}${PTEST_PATH}/tests
fi
for f in testlibs/cmake_install.cmake \
testprogs/cmake_install.cmake \
testlibs/CTestTestfile.cmake \
testprogs/CTestTestfile.cmake
testprogs/cmake_install.cmake \
testlibs/CTestTestfile.cmake \
testprogs/CTestTestfile.cmake
do
sed -i -e 's|${STAGING_BINDIR_TOOLCHAIN}/||' ${D}${libdir}/bpftrace/ptest/tests/$f
sed -i -e 's|${S}/||' ${D}${libdir}/bpftrace/ptest/tests/$f
@@ -59,6 +56,8 @@ EXTRA_OECMAKE = " \
-DBISON_FLAGS='--file-prefix-map=${WORKDIR}=' \
"
RDEPENDS:${PN}-ptest += "bash bpftool python3"
COMPATIBLE_HOST = "(x86_64.*|aarch64.*|powerpc64.*|riscv64.*)-linux"
INHIBIT_PACKAGE_STRIP_FILES += "\