Bug 8431

Summary: Wrong path is printed by SDK installer
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Khem Raj <raj.khem>
Component: coreAssignee: Chen Qi <Qi.Chen>
Status: VERIFIED FIXED QA Contact: Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu>
Severity: normal    
Priority: Medium+ CC: bluelightning, bogdanx.a.voiculescu, meta.mr.watcher, meta.watcher, ross.burton
Version: 2.0   
Target Milestone: 2.0   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Khem Raj 2015-10-01 23:54:31 UTC
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 "/usr/local/oecore-x86_64". 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.
Comment 1 Paul Eggleton 2015-10-14 20:34:00 UTC
Qi has sent a fix for this the other day.
Comment 2 Ross Burton 2015-10-19 19:17:18 UTC
Fixed in oe-core b388468deda8d81df80d1509226196a5390183a8.
Comment 3 Ross Burton 2015-10-23 20:14:10 UTC
Re-opening as the same problem occurs for the extensible SDK (meta/classes/populate_sdk_ext.bbclass)
Comment 4 Ross Burton 2015-10-23 20:52:06 UTC
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.
Comment 5 Bogdan Alexandru Voiculescu 2015-10-27 07:14:05 UTC
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 "/opt/poky/2.0_local". 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 "/opt/poky/2.0_AB". 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