<?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>7032</bug_id>
          
          <creation_ts>2014-12-05 14:31:18 +0000</creation_ts>
          <short_desc>Installing SDK to a path which has the default path as a substring leads to broken relocation</short_desc>
          <delta_ts>2015-02-25 19:15:50 +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>1.7</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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>1.8 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Aníbal Limón">anibal.limon</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>yocto</cc>
          
          
          <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>47396</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-12-05 14:31:18 +0000</bug_when>
    <thetext>If you install the SDK (or buildtools, in my tests) to a path which has the default path as a substring, the relocation ends up garbling the path in the environment setup script due to replacing the default path twice. For example, if the current SDK version is 1.7, when prompted for the installation path by the SDK installer script, specify /opt/poky/1.7-test. If you then examine the environment setup script you will see something like this:

$ cat /opt/poky/1.7bing/environment-setup-x86_64-pokysdk-linux 
export PATH=/opt/poky/1.7-test-test/sysroots/x86_64-pokysdk-linux/usr/bin:$PATH
...

This appears to be a recent regression as I have tested both the 1.7 release buildtools installer and the latest version build on the autobuilder, and only the latter suffers from this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47397</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-12-05 14:32:38 +0000</bug_when>
    <thetext>Obviously that example should have been:

$ cat /opt/poky/1.7-test/environment-setup-x86_64-pokysdk-linux 
export PATH=/opt/poky/1.7-test-test/sysroots/x86_64-pokysdk-linux/usr/bin:$PATH
...

(copy/paste failure)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48184</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-01-22 11:19:26 +0000</bug_when>
    <thetext>Note that this affects dizzy as well and thus we will need to backport the fix assuming it is practical.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48647</commentid>
    <comment_count>3</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-02-09 15:55:21 +0000</bug_when>
    <thetext>Merged at,

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1c5be7705ef32f3430fa4551b571e91192207d13</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49065</commentid>
    <comment_count>4</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-02-25 19:15:50 +0000</bug_when>
    <thetext>*** Bug 7343 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>