<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9046</bug_id>
          
          <creation_ts>2016-02-04 08:21:41 +0000</creation_ts>
          <short_desc>Wrong $PATH for devtool</short_desc>
          <delta_ts>2016-03-18 07:48:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>ke.zou</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yi.zhao</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>58525</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-02-04 08:21:41 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58583</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-02-04 16:02:15 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59655</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-03-03 00:38:06 +0000</bug_when>
    <thetext>Fixed merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=695cc45804771676af4c0b519b2f0b657533ebdc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60134</commentid>
    <comment_count>3</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-03-18 07:48:18 +0000</bug_when>
    <thetext>Verified with 2.1 M3 RC1
git rev: master/8debfea81e69d038bd2d56314b272cb74f5582ed</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>