[OE-core] [PATCH 3/6] ltp: fix reproducibilty issues
Jeremy A. Puhlman
jpuhlman at mvista.com
Wed Mar 11 22:25:43 UTC 2020
From: Jeremy Puhlman <jpuhlman at mvista.com>
Man pages are copied in to the target filesystem from the configured
build, which leaks paths in to the work directory
Signed-off-by: Jeremy A. Puhlman <jpuhlman at mvista.com>
---
meta/recipes-extended/ltp/ltp_20200120.bb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-extended/ltp/ltp_20200120.bb b/meta/recipes-extended/ltp/ltp_20200120.bb
index 5be9489a75..3e6cbc63f3 100644
--- a/meta/recipes-extended/ltp/ltp_20200120.bb
+++ b/meta/recipes-extended/ltp/ltp_20200120.bb
@@ -68,6 +68,12 @@ do_install(){
# Copy POSIX test suite into ${D}/opt/ltp/testcases by manual
cp -r testcases/open_posix_testsuite ${D}/opt/ltp/testcases
+
+ # Makefile were configured in the build system
+ find ${D}${prefix} -name Makefile | xargs -n 1 sed -i \
+ -e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \
+ -e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \
+ -e 's@[^ ]*--sysroot=[^ "]*@@g'
}
RDEPENDS_${PN} = "\
--
2.13.3
More information about the Openembedded-core
mailing list