]> code.ossystems Code Review - openembedded-core.git/commitdiff
populate_sdk_ext: Fix to use python3, not python
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 27 Jun 2020 22:49:45 +0000 (23:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Jun 2020 07:24:21 +0000 (08:24 +0100)
We should be using python3 here, it was missed in the conversion. Spotted on
autobuilder tests failing on systems with python missing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/populate_sdk_ext.bbclass

index 9f26cfc13168787182d6e512614a4c288f02f190..fd0da16e7ea2b73051b70800380fbd34598d5d1c 100644 (file)
@@ -676,7 +676,7 @@ sdk_ext_postinst() {
                # current working directory when first ran, nor will it set $1 when
                # sourcing a script. That is why this has to look so ugly.
                LOGFILE="$target_sdk_dir/preparing_build_system.log"
-               sh -c ". buildtools/environment-setup* > $LOGFILE && cd $target_sdk_dir/`dirname ${oe_init_build_env_path}` && set $target_sdk_dir && . $target_sdk_dir/${oe_init_build_env_path} $target_sdk_dir >> $LOGFILE && python $target_sdk_dir/ext-sdk-prepare.py $LOGFILE '${SDK_INSTALL_TARGETS}'" || { echo "printf 'ERROR: this SDK was not fully installed and needs reinstalling\n'" >> $env_setup_script ; exit 1 ; }
+               sh -c ". buildtools/environment-setup* > $LOGFILE && cd $target_sdk_dir/`dirname ${oe_init_build_env_path}` && set $target_sdk_dir && . $target_sdk_dir/${oe_init_build_env_path} $target_sdk_dir >> $LOGFILE && python3 $target_sdk_dir/ext-sdk-prepare.py $LOGFILE '${SDK_INSTALL_TARGETS}'" || { echo "printf 'ERROR: this SDK was not fully installed and needs reinstalling\n'" >> $env_setup_script ; exit 1 ; }
        fi
        if [ -e $target_sdk_dir/ext-sdk-prepare.py ]; then
                rm $target_sdk_dir/ext-sdk-prepare.py