diff options
author | Kenfe-Mickael Laventure <mickael.laventure@gmail.com> | 2023-03-09 11:49:22 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-25 23:00:59 +0000 |
commit | 1c69728f31689e5e74d9b5451f9e1c581bf67aac (patch) | |
tree | 359460b3c07c12e11eb7c47ae57631c46b2a0ef3 | |
parent | 048d8b8c71d29f14e7daf0573f13eaca2d94ba1d (diff) | |
download | poky-1c69728f31689e5e74d9b5451f9e1c581bf67aac.tar.gz |
populate_sdk_ext: Handle spaces within user $PATH
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.
(From OE-Core rev: b8298401c710146ae35f282048b66d5773a513ed)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/populate_sdk_ext.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index b24f8d99d5..a43ff3fb32 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass | |||
@@ -669,7 +669,7 @@ sdk_ext_postinst() { | |||
669 | 669 | ||
670 | # A bit of another hack, but we need this in the path only for devtool | 670 | # A bit of another hack, but we need this in the path only for devtool |
671 | # so put it at the end of $PATH. | 671 | # so put it at the end of $PATH. |
672 | echo "export PATH=$target_sdk_dir/sysroots/${SDK_SYS}${bindir_nativesdk}:\$PATH" >> $env_setup_script | 672 | echo "export PATH=\"$target_sdk_dir/sysroots/${SDK_SYS}${bindir_nativesdk}:\$PATH\"" >> $env_setup_script |
673 | 673 | ||
674 | 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 | 674 | 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 |
675 | 675 | ||