bpftrace: Remove absolute buildtime paths in cmake files
PATCH 1/1 bpftrace: Remove absolute buildtime paths in cmake files
Fixes
WARNING: bpftrace-0.23.0+git-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/testlibs/CTestTestfile.cmake in package bpftrace-ptest contains reference to TMPDIR [buildpaths]
WARNING: bpftrace-0.23.0+git-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/testlibs/CTestTestfile.cmake in package bpftrace-ptest contains reference to TMPDIR [buildpaths]
WARNING: bpftrace-0.23.0+git-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/testlibs/cmake_install.cmake in package bpftrace-ptest contains reference to TMPDIR [buildpaths]
WARNING: bpftrace-0.23.0+git-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/testlibs/cmake_install.cmake in package bpftrace-ptest contains reference to TMPDIR [buildpaths]
WARNING: bpftrace-0.23.0+git-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/testprogs/CTestTestfile.cmake in package bpftrace-ptest contains reference to TMPDIR [buildpaths]
WARNING: bpftrace-0.23.0+git-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/testprogs/CTestTestfile.cmake in package bpftrace-ptest contains reference to TMPDIR [buildpaths]
WARNING: bpftrace-0.23.0+git-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/testprogs/cmake_install.cmake in package bpftrace-ptest contains reference to TMPDIR [buildpaths]
WARNING: bpftrace-0.23.0+git-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/testprogs/cmake_install.cmake in package bpftrace-ptest contains reference to TMPDIR [buildpaths]
--- .../recipes-devtools/bpftrace/bpftrace_0.23.0.bb | 9 +++++++++ 1 file changed, 9 insertions(+)
meta-oe/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.23.0.bb +9 -0
@@ -41,6 +41,15 @@ do_install_ptest() { cp -rf ${B}/tests/runtime ${D}${PTEST_PATH}/tests 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 + 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 + sed -i -e 's|${B}/||' ${D}${libdir}/bpftrace/ptest/tests/$f + done } EXTRA_OECMAKE = " \