<?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>8431</bug_id>
          
          <creation_ts>2015-10-01 23:54:31 +0000</creation_ts>
          <short_desc>Wrong path is printed by SDK installer</short_desc>
          <delta_ts>2015-10-27 07:14:05 +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>core</component>
          <version>2.0</version>
          <rep_platform>All</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.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</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>54918</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2015-10-01 23:54:31 +0000</bug_when>
    <thetext>a SDK generated with -cpopulate_sdk and then tried to install it on a different host

./oecore-x86_64-aarch64-toolchain-nodistro.0.sh
OpenEmbedded SDK installer version nodistro.0
===========================================================
Enter target directory for SDK (default: /usr/local/oecore-x86_64):
You are about to install the SDK to &quot;/usr/local/oecore-x86_64&quot;. Proceed[Y/n]?
Extracting SDK..................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /usr/local/oecore-x86_64//usr/local/oecore-x86_64/environment-setup-aarch64-oe-linux

Here the problem is that /usr/local/oecore-x86_64 is repeated twice in that help message which makes the patch not work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55320</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-10-14 20:34:00 +0000</bug_when>
    <thetext>Qi has sent a fix for this the other day.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55457</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-19 19:17:18 +0000</bug_when>
    <thetext>Fixed in oe-core b388468deda8d81df80d1509226196a5390183a8.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55701</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-23 20:14:10 +0000</bug_when>
    <thetext>Re-opening as the same problem occurs for the extensible SDK (meta/classes/populate_sdk_ext.bbclass)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55702</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-23 20:52:06 +0000</bug_when>
    <thetext>Okay I tried replicating this and it all seemed to work:

$ ./poky-glibc-x86_64-core-image-minimal-corei7-64-toolchain-ext-2.0.sh
[...]
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /home/ross/poky_sdk/environment-setup-corei7-64-poky-linux

$ ./poky-glibc-x86_64-core-image-minimal-corei7-64-toolchain-2.0.sh
[...]
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /opt/poky/2.0/environment-setup-corei7-64-poky-linux

Both the normal SDK and extensible SDK have the right paths in the output with current jethro, so closing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55796</commentid>
    <comment_count>5</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-10-27 07:14:05 +0000</bug_when>
    <thetext>Verified on master: 505a82673ac2487df5ea343a6422c2fc47018831
30022925 -rw-r--r-- 1 yocto yocto      9417 oct 26 19:42 poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.0.host.manifest
30022927 -rwxr-xr-x 1 yocto yocto 139175032 oct 26 19:43 poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.0.sh
30022914 -rw-r--r-- 1 yocto yocto      7170 oct 26 19:42 poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.0.target.manifest
yocto@yocto-PowerEdge-R720:~/yocto/BBB/Bug8431/build/tmp/deploy/sdk$ ./poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.0.sh
Poky (Yocto Project Reference Distro) SDK installer version 2.0
===============================================================
Enter target directory for SDK (default: /opt/poky/2.0): /opt/poky/2.0_local
You are about to install the SDK to &quot;/opt/poky/2.0_local&quot;. Proceed[Y/n]? y
 [sudo] password for yocto:
Extracting SDK.....................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /opt/poky/2.0_local/environment-setup-i586-poky-linux

and with 2.0RC2 build

./poky-glibc-x86_64-core-image-sato-core2-64-toolchain-2.0.sh
Poky (Yocto Project Reference Distro) SDK installer version 2.0
===============================================================
Enter target directory for SDK (default: /opt/poky/2.0): /opt/poky/2.0_AB
You are about to install the SDK to &quot;/opt/poky/2.0_AB&quot;. Proceed[Y/n]? y
[sudo] password for yocto:
Extracting SDK.............................................................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /opt/poky/2.0_AB/environment-setup-core2-64-poky-linux</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>