[OE-core] [PATCH] attr: improve reproducibility

Juro Bystricky juro.bystricky at intel.com
Wed Aug 23 20:14:19 UTC 2017


Remove all host build references from the attr-ptest package.

Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
---
 meta/recipes-support/attr/attr.inc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc
index e8b5d05..24ef5ad 100644
--- a/meta/recipes-support/attr/attr.inc
+++ b/meta/recipes-support/attr/attr.inc
@@ -32,6 +32,12 @@ do_install_ptest() {
 	  do cp ${S}/include/$i ${D}${PTEST_PATH}/include/; \
 	done
 	sed -e 's|; @echo|; echo|' -i ${D}${PTEST_PATH}/test/Makefile
+    
+	# Remove any build host references
+	sed -e "s:--sysroot=${STAGING_DIR_TARGET}::g" \
+	    -e 's:${HOSTTOOLS_DIR}/::g' \
+	    -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
+	    -i ${D}${PTEST_PATH}/include/builddefs
 }
 
 RDEPENDS_${PN}-ptest = "attr coreutils perl-module-filehandle perl-module-getopt-std perl-module-posix"
-- 
2.7.4




More information about the Openembedded-core mailing list