From: Juro Bystricky Date: Wed, 23 Aug 2017 20:14:19 +0000 (-0700) Subject: attr: improve reproducibility X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~20238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a181e26d09978bff850bc6b303de6053f7c53df;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git attr: improve reproducibility Remove all host build references from the attr-ptest package. Signed-off-by: Juro Bystricky Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc index e8b5d054b30..24ef5adfd3e 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"