Skip to contentSkip to conversation

acl_2.25: improve reproducibility

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acl_2.25: improve reproducibility

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

---
 meta/recipes-support/attr/acl_2.2.52.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-support/attr/acl_2.2.52.bb +5 -0
index 306c7b5..8f3dc45 100644
@@ -43,6 +43,11 @@ do_install_ptest() {
 	tar -c --exclude=nfs test/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
 	mkdir ${D}${PTEST_PATH}/include
 	cp ${S}/include/builddefs ${S}/include/buildmacros ${S}/include/buildrules ${D}${PTEST_PATH}/include/
+	# 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 = "acl bash coreutils perl perl-module-filehandle perl-module-getopt-std perl-module-posix shadow"
Signature · 1 line
2.7.4