]> code.ossystems Code Review - openembedded-core.git/commitdiff
ltp: fix reproducibilty issues
authorJeremy Puhlman <jpuhlman@mvista.com>
Wed, 11 Mar 2020 22:25:43 +0000 (15:25 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Mar 2020 22:49:23 +0000 (22:49 +0000)
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@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/ltp/ltp_20200120.bb

index 5be9489a7569ad9e507a72d407d25f0de6370073..3e6cbc63f3ad78f2a27a915f0d4eb37c54fedd51 100644 (file)
@@ -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} = "\