]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 11 Mar 2023 00:08:38 +0000 (00:08 +0000)
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>
meta/classes-recipe/populate_sdk_ext.bbclass

index de74a7524c1800815ba5929ea0c03d65bb2fafdb..2e6673bcd9358d9329b614706d8550ed274d0c64 100644 (file)
@@ -719,7 +719,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