mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 09:32:14 +02:00
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: 679835b6f692d7e344c115da72ddf4553657ac54) 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>
This commit is contained in:
committed by
Richard Purdie
parent
54c6dc4ebf
commit
de8c168e5f
@@ -720,7 +720,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user