@@ -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 += "\
* 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> --- .../recipes-devtools/bpftrace/bpftrace_0.24.1.bb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)