Bug 4488

Summary: SDK installer doesn't handle spaces in path
Product: [Documentation] Development Manual Reporter: Denys Dmytriyenko <denis>
Component: developmentAssignee: Laurentiu Palcu <laurentiu.palcu>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dvhart, sgw
Version: unspecified   
Target Milestone: 1.5 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Denys Dmytriyenko 2013-05-10 16:28:02 UTC
It is known that spaces are not handled gracefully in other parts of Yocto/OE. Need to prevent user to try to extract an SDK into a location containing spaces in path. Requires a check in create_shar() of populate_sdk_base.bbclass to report a useful error instead of failing like this:

$ ./linux-devkit.sh 
Enter target directory for SDK (default: /usr/local/arago-2013.05): /tmp/My\ Docs
./linux-devkit.sh: line 45: Docs: command not found
./linux-devkit.sh: line 46: [: /tmp/My: binary operator expected
readlink: extra operand `Docs'
Try `readlink --help' for more information.
You are about to install the SDK to "". Proceed[Y/n]?
Comment 1 Laurentiu Palcu 2013-06-25 12:00:50 UTC
Sent a patch on the ML.