Bug 8625

Summary: Extensible SDK should prevent users from installing it in locations with special characters
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: devtools / tool chainAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact: Alexandru Georgescu <alexandru.c.georgescu>
Severity: normal    
Priority: Low CC: meta.mr.watcher, meta.watcher
Version: 2.0   
Target Milestone: 2.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
added preparing build system log none

Description Alexandru Georgescu 2015-11-02 15:50:26 UTC
If a user specifies a location for the extensible SDK with a special character, the user should be warned and stopped before attempting installation. 

Currently, the SDK continues the install process and informs the user after installation was done that the installation failed.

[alex@fed tmp]$ ./poky-glibc-x86_64-core-image-sato-corei7-64-toolchain-ext-2.0.sh
Poky (Yocto Project Reference Distro) Extensible SDK installer version 2.0
==========================================================================
Enter target directory for SDK (default: ~/poky_sdk): ./sdk$
You are about to install the SDK to "/home/alex/tmp/sdk$". Proceed[Y/n]? Y
Extracting SDK.........................................................................................................done
Setting it up...
Extracting buildtools...
Preparing build system...
SDK preparation failed: see /home/alex/tmp/sdk$/preparing_build_system.log

[alex@fed tmp]$ cd sdk\$/
[alex@fed sdk$]$ . environment-setup-corei7-64-poky-linux
SDK environment now set up; additionally you may now run devtool to perform development tasks.
Run devtool --help for further details.
[alex@fed sdk$]$ devtool --help
ImportError: No module named site
[alex@fed sdk$]$
Comment 1 Alexandru Georgescu 2015-11-02 16:24:34 UTC
Created attachment 2836 [details]
added preparing build system log