Skip to contentSkip to conversation

attr: improve reproducibility

PATCH New Juro Bystricky 1 participant 1 message Aug 23, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 attr: improve reproducibility

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

---
 meta/recipes-support/attr/attr.inc | 6 ++++++
 1 file changed, 6 insertions(+)
meta/recipes-support/attr/attr.inc +6 -0
index e8b5d05..24ef5ad 100644
@@ -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"
Signature · 1 line
2.7.4