[oe-commits] [openembedded-core] 20/25: libtool: remove /absolute/path/to/host references

git at git.openembedded.org git at git.openembedded.org
Fri Aug 18 11:38:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 04db02138e363898e040e33557f1296e8a43c3fd
Author: Ooi Cinly <cinly.ooi at intel.com>
AuthorDate: Wed Aug 16 09:17:50 2017 +0800

    libtool: remove /absolute/path/to/host references
    
    Removed all instances of -fdebug-prefix-map in LTCFLAGS
    declaration because they contain references to host system
    and are not needed.
    
    /absolute/path/to/host/dd was replaced with 'dd' in
    lt_truncate_bin declaration.
    
    Please take note that the location of regex is important
    for DEBUG_PREFIX_MAP. Removal of DEBUG_PREFIX_MAP has to be
    done before other regex command modify its option value.
    
    Both are modified because they affect binary reproducibility.
    
    [YOCTO #11656]
    
    Signed-off-by: Ooi Cinly <cinly.ooi at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/libtool/libtool_2.4.6.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/libtool/libtool_2.4.6.bb b/meta/recipes-devtools/libtool/libtool_2.4.6.bb
index 06abb05..b02620b 100644
--- a/meta/recipes-devtools/libtool/libtool_2.4.6.bb
+++ b/meta/recipes-devtools/libtool/libtool_2.4.6.bb
@@ -15,6 +15,7 @@ ACLOCALEXTRAPATH_class-target = ""
 
 do_install_append () {
         sed -e 's at --sysroot=${STAGING_DIR_HOST}@@g' \
+            -e "s@${DEBUG_PREFIX_MAP}@@g" \
             -e 's@${STAGING_DIR_HOST}@@g' \
             -e 's@${STAGING_DIR_NATIVE}@@g' \
             -e 's@^\(sys_lib_search_path_spec="\).*@\1${libdir} ${base_libdir}"@' \
@@ -22,5 +23,6 @@ do_install_append () {
             -e 's@^\(compiler_lib_search_path="\).*@\1${libdir} ${base_libdir}"@' \
             -e 's@^\(predep_objects="\).*@\1"@' \
             -e 's@^\(postdep_objects="\).*@\1"@' \
+            -e "s@${HOSTTOOLS_DIR}/@@g" \
             -i ${D}${bindir}/libtool
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list