]> code.ossystems Code Review - openembedded-core.git/commit
populate_sdk_base: ensure that filenames with empty space character are handled
authorJoão Henrique Ferreira de Freitas <joaohf@gmail.com>
Fri, 18 Jul 2014 03:09:26 +0000 (00:09 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Jul 2014 23:08:46 +0000 (00:08 +0100)
commitd7adf8349a65da6f0fdd0f00e606e8bc27ce3f28
treea4654ca84dfe0782f4104e3cd89072c27563fece
parent778a00c3dd656bbfac03274b5f60788518f7b964
populate_sdk_base: ensure that filenames with empty space character are handled

When extracting toolchain, if the list $executable_files has filenames
with empty space character, the list will created but relocate_sdk.sh
will not handle it well. This will lead to the below erro:

    ./tmp/deploy/sdk/buildtools-mytools-x86_64-nativesdk-standalone-1.6.1.0.sh
    Enter target directory for SDK (default: /opt/mydistro/mytoolset/1.6.1.0):
    You are about to install the SDK to "/opt/mydistro/mytoolset/1.6.1.0". Proceed[Y/n]?
    Extracting SDK...done
    Setting it up.../opt/mydistro/mytoolset/1.6.1.0/relocate_sdk.sh: line 2: sintaxe error `token'  `('
    /opt/mydistro/mytoolset/1.6.1.0/relocate_sdk.sh: line 2: `e

The same occurs with replacement of ${SDKPATH} in configs/scripts/etc files.

We should ensure that full path is protected before relocate_sdk.sh
and ${SDKPATH} replacement calls.

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/populate_sdk_base.bbclass