Skip to contentSkip to conversation

e2tools: Delete unneeded files from ptest package

PATCH New Khem Raj 1 participant 1 message Mar 5, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 e2tools: Delete unneeded files from ptest package

These files are useless for ptests, moreover they cause build QA errors
like
package e2tools-ptest contains reference to TMPDIR
QA Issue: /usr/lib/e2tools/ptest/git/.git/hooks/update.sample contained in package e2tools-ptest requires /usr/bin/sh, but no providers found in RDEPENDS:e2tools-ptest? [file-rdeps]

---
 meta-filesystems/recipes-utils/e2tools/e2tools_git.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-filesystems/recipes-utils/e2tools/e2tools_git.bb +3 -0
index a80b6f5985..1fa5e01874 100644
@@ -65,6 +65,9 @@ do_install_ptest() {
     cp -r ../build "${D}${PTEST_PATH}"
     cp -r "${S}/build-aux" "${D}${PTEST_PATH}/build"
     cp -r "${S}" "${D}${PTEST_PATH}"
+    rm -rf ${D}${PTEST_PATH}/build/config.log ${D}${PTEST_PATH}/build/autom4te.cache \
+        ${D}${PTEST_PATH}/git/.git ${D}${PTEST_PATH}/git/autom4te.cache
+    sed -i -e 's;${RECIPE_SYSROOT};;g' ${D}${PTEST_PATH}/build/config.status
 }
 
 RDEPENDS:${PN}-ptest += "bash coreutils e2fsprogs e2tools gawk make perl"
Signature · 1 line
2.44.0