Bug 3135

Summary: self-extracting relocatable sdk problem installing from a different directory than the installer
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Khem Raj <raj.khem>
Component: devtools / tool chainAssignee: Laurentiu Palcu <laurentiu.palcu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: corneliux.stoicescu, meta.mr.watcher, meta.watcher, sgw
Version: 1.3   
Target Milestone: 1.3 M5   
Hardware: x86   
OS: Multiple   
Whiteboard: merged
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Khem Raj 2012-09-18 23:19:40 UTC
when I copy the installed into a dir say 

~/sdk

and cd into ~/sdk and run the installed everything works fine

but now say chdir into ~

and then do 

~: sh ~/sdk/poky-eglibc-x86_64-x86_64-toolchain-1.2+snapshot-20120918.sh

it gives errors like below

grep: poky-eglibc-x86_64-x86_64-toolchain-1.2+snapshot-20120918.sh: No such file or directory
Extracting SDK...tail: cannot open `poky-eglibc-x86_64-x86_64-toolchain-1.2+snapshot-20120918.sh' for reading: No such file or directory

bzip2: Compressed file ends unexpectedly;
        perhaps it is corrupted?  *Possible* reason follows.
bzip2: Invalid argument
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Child returned status 2
tar: Exiting with failure status due to previous errors
done
Setting it up...sed: no input files


I am fine if its not supported to be installed from other directories
but then we should give a clear message and shut the installed down cleanly.
Comment 1 Laurentiu Palcu 2012-09-20 13:52:25 UTC
Patch under review on the mailing list.
Comment 3 Stoicescu Cornel 2012-10-11 09:05:56 UTC
Verified in: 2c3e8280e67721d42d4be48a8e2c1e9ce9bb89fd

Folowed the insructions below with a x86-64, x86 and arm adt.