[gnome-continuous-yocto/gnomeostree-3.28-rocko: 7388/8267] attr: improve reproducibility



commit 64549ce588e353f86ecce3fb66f460e730fc6200
Author: Juro Bystricky <juro bystricky intel com>
Date:   Wed Aug 23 13:14:19 2017 -0700

    attr: improve reproducibility
    
    Remove all host build references from the attr-ptest package.
    
    (From OE-Core rev: 0a181e26d09978bff850bc6b303de6053f7c53df)
    
    Signed-off-by: Juro Bystricky <juro bystricky intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/recipes-support/attr/attr.inc |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
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"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]