]> code.ossystems Code Review - openembedded-core.git/commitdiff
acl_2.25: improve reproducibility
authorJuro Bystricky <juro.bystricky@intel.com>
Wed, 23 Aug 2017 20:16:18 +0000 (13:16 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Aug 2017 08:37:02 +0000 (09:37 +0100)
Remove all host build references from the acl-ptest package.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/attr/acl_2.2.52.bb

index 306c7b5cdae91d37f87db7c26697f25801b0ee4c..8f3dc45cf79c5ed9c60e325d0b70a7dee62d3b0a 100644 (file)
@@ -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"