Bug 3135 - self-extracting relocatable sdk problem installing from a different directory than the installer
Summary: self-extracting relocatable sdk problem installing from a different directory...
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.3 M5
Assignee: Laurentiu Palcu
QA Contact:
URL:
Whiteboard: merged
Depends on:
Blocks:
 
Reported: 2012-09-18 23:19 UTC by Khem Raj
Modified: 2012-10-11 09:05 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.