[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    [OE-core][dunfell 21/22] populate_sdk_ext: Fix to use python3, not python
From:       "Steve Sakoman" <steve () sakoman ! com>
Date:       2020-06-30 3:03:19
Message-ID: 1373006c28541e8fd6ceb6d5ed905ff1536ef3f7.1593485896.git.steve () sakoman ! com
[Download RAW message or body]

From: Richard Purdie <richard.purdie@linuxfoundation.org>

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>
(cherry picked from commit db07b09196022078346aadd565760240b7da6a71)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
 meta/classes/populate_sdk_ext.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/populate_sdk_ext.bbclass \
b/meta/classes/populate_sdk_ext.bbclass index 9f26cfc131..fd0da16e7e 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -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
-- 
2.17.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#140114): https://lists.openembedded.org/g/openembedded-core/message/140114
Mute This Topic: https://lists.openembedded.org/mt/75207129/4454766
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  [openembedded-core@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic