Bug 9046 - Wrong $PATH for devtool
Summary: Wrong $PATH for devtool
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.1 M3
Assignee: Paul Eggleton
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-02-04 08:21 UTC by Yi Zhao
Modified: 2016-03-18 07:48 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2016-02-04 08:21:41 UTC
git rev: master/3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c

Steps:
1. Install ppc7400 sdk_ext in poky_sdk_ppc7400 directory and set the environment. Check the path for devtool and ${CC}: 

$ which devtool
/buildarea/poky_sdk_ppc7400/sysroots/x86_64-pokysdk-linux//usr/bin/devtool

$ which ${CC}
/buildarea/poky_sdk_ppc7400/tmp/sysroots/x86_64-linux/usr/bin/powerpc-poky-linux/powerpc-poky-linux-gcc

2. In same session, install i586 sdk_ext in poky_sdk_i586 directory and set the environment. Check the path for devtool and ${CC} again:

$ which devtool
/buildarea/poky_sdk_ppc7400/sysroots/x86_64-pokysdk-linux//usr/bin/devtool

$ which ${CC}
/buildarea/poky_sdk_i586/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/i586-poky-linux-gcc

The path for devtool still point to poky_sdk_ppc7400, not poky_sdk_i586.
Comment 1 Richard Purdie 2016-02-04 16:02:15 UTC
I suspect we need a clean shell when switching between extensible SDK variants. We should however show a warning when a user tries to do this.
Comment 3 Yi Zhao 2016-03-18 07:48:18 UTC
Verified with 2.1 M3 RC1
git rev: master/8debfea81e69d038bd2d56314b272cb74f5582ed