]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
populate_sdk_ext: Handle spaces within user $PATH
authorKenfe-Mickael Laventure <mickael.laventure@gmail.com>
Thu, 9 Mar 2023 19:49:22 +0000 (11:49 -0800)
committerSteve Sakoman <steve@sakoman.com>
Fri, 17 Mar 2023 14:52:21 +0000 (04:52 -1000)
The script generated by the sdk_ext_postinst function was not quoting
the user existing PATH when updating it causing the export command to
fail.

Add necessary double quotes around $PATH.

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 00e96bf250eaaded839caf465dbc0af5b604aed7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/populate_sdk_ext.bbclass

index 0fd30478dc6aad8307a16755b1f75a406dce606a..a673af7e7b804a91ec8da6b8fb891c4a400d3174 100644 (file)
@@ -714,7 +714,7 @@ sdk_ext_postinst() {
 
        # A bit of another hack, but we need this in the path only for devtool
        # so put it at the end of $PATH.
-       echo "export PATH=$target_sdk_dir/sysroots/${SDK_SYS}${bindir_nativesdk}:\$PATH" >> $env_setup_script
+       echo "export PATH=\"$target_sdk_dir/sysroots/${SDK_SYS}${bindir_nativesdk}:\$PATH\"" >> $env_setup_script
 
        echo "printf 'SDK environment now set up; additionally you may now run devtool to perform development tasks.\nRun devtool --help for further details.\n'" >> $env_setup_script