diff options
author | Juro Bystricky <juro.bystricky@intel.com> | 2017-09-25 16:33:44 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-10-06 12:22:45 +0100 |
commit | c2b53ec8d15b97da73353623c0cfe287f74992bf (patch) | |
tree | b237c77573a41cc2a5eb45f0a6e422adf04e6ad7 /meta/recipes-core | |
parent | 4165ec0057c6bbb24de681572034262351d9b34f (diff) | |
download | openembedded-core-c2b53ec8d15b97da73353623c0cfe287f74992bf.tar.gz openembedded-core-c2b53ec8d15b97da73353623c0cfe287f74992bf.tar.bz2 openembedded-core-c2b53ec8d15b97da73353623c0cfe287f74992bf.zip |
libxml2-ptest: improve reproducibility
Remove various build host references from libxml-ptest package.
[YOCTO #11997]
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/libxml/libxml2_2.9.4.bb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-core/libxml/libxml2_2.9.4.bb b/meta/recipes-core/libxml/libxml2_2.9.4.bb index 107539b50d..15d5e36290 100644 --- a/meta/recipes-core/libxml/libxml2_2.9.4.bb +++ b/meta/recipes-core/libxml/libxml2_2.9.4.bb @@ -89,6 +89,17 @@ do_install_ptest () { grep -lrZ '#!/usr/bin/python' ${D}${PTEST_PATH}/python | xargs -0 sed -i -e 's|/usr/bin/python|${USRBINPATH}/${PYTHON_PN}|' fi + #Remove build host references from various Makefiles + find "${D}${PTEST_PATH}" -name Makefile -type f -exec \ + sed -i \ + -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ + -e 's|${DEBUG_PREFIX_MAP}||g' \ + -e 's:${HOSTTOOLS_DIR}/::g' \ + -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ + -e 's:${RECIPE_SYSROOT}::g' \ + -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ + -e '/^RELDATE/d' \ + {} + } do_install_append_class-native () { |