Bug 9046

Summary: Wrong $PATH for devtool
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Yi Zhao <yi.zhao>
Component: devtools / tool chainAssignee: Paul Eggleton <bluelightning>
Status: VERIFIED FIXED QA Contact: Yi Zhao <yi.zhao>
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, ke.zou, meta.mr.watcher, meta.watcher, richard.purdie, yi.zhao
Version: 2.1   
Target Milestone: 2.1 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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