Bug 734

Summary: libtoolize in package libtool-nativesdk using the system tools
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Lianhao Lu <lianhao.lu>
Component: devtools / tool chainAssignee: Nitin Kamble <nitin.a.kamble>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: High CC: jessica.zhang, meta.mr.watcher, meta.watcher, sgw
Version: 1.0   
Target Milestone: 1.0 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Lianhao Lu 2011-02-17 00:40:00 UTC
When running the libtoolize from the package of libtool-nativesdk, it reported the following error:
/opt/poky/0.9+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/libtoolize: line 393: /usr/bin/sed: No such file or directory.

It turns out that the libtoolize generated by "bitbake libtool-nativesdk" is using the path of the building machine for utilities such as sed, grep. If the host machine on which the libtool-nativesdk gets installed have such utilities in a different path, it would fail.
Comment 1 Nitin Kamble 2011-02-18 08:58:53 UTC
Which distro are you running on ?
Comment 2 Nitin Kamble 2011-02-18 08:59:49 UTC
Also can you give me exact steps to reproduce it ?
Comment 3 Lianhao Lu 2011-02-20 22:04:27 UTC
To reproduce this:

1. get a meta-toolchain tarball for i586 from auto builder.
2. extract the tarball to /
3. source the environment file
4. run libtoolize or check the libtoolize script for whether it is using the absolute path for sed, grep, etc.
Comment 4 Nitin Kamble 2011-02-22 08:35:59 UTC
Fixed in this commit which has gone in master
Please help verify.

commit 489465b82be73da1d845a0cea601b41ce5ade411
Author: Nitin A Kamble <nitin.a.kamble@intel.com>
Date:   Fri Feb 18 10:13:48 2011 -0800

    libtool: avoid absolute pathnames of general utils
    
    addded a new patch:
        libtool/avoid_absolute_paths_for_general_utils.patch
    
    This fixes [BUGID #154]
    This fixes [BUGID #734]
    
    Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Comment 5 Jessica 2011-03-02 14:08:10 UTC
Verified against latest Bernard branch