python3targetconfig.bbclass: Add py3 dependecy only for target recipes

Submitted by Khem Raj on Nov. 17, 2020, 3:34 p.m. | Patch ID: 178020


Message ID
State New
Headers show

Commit Message

Khem Raj Nov. 17, 2020, 3:34 p.m.
python3targetconfig append target python3 to dependencies
unconditionally, and here its inherited unconditionally too but
distutils3-base is inherited in BBCLASSEXTEND'ed recipes and other not-target
recipes as well. Hence the change added via 9c8f666097802cb594a759989edcf01603a22df3
is now bridging the native dependencies with target python3 and thats
resulting all sorts of rebuilds for multimachine builds e.g.

MACHINE=qemuarm bitbake python3-scons-native
MACHINE=qemumips bitbake python3-scons-native

results in rebuilds for python3-scons-native

bitbake-diffsigs shows

Hash for dependent task python/ changed from 1cdb93193b416477df6faa137e83a967b433c7aa29033146b405153f73f36933 to 3cea1e7cbedd121ecb768fbc291cc4e4d7d3b5c0442897
    Hash for dependent task python/ changed from 8d6018fd03ffc6060a04532dc39a5b7ccca1be026a69d069cb4fb11aef86dd89 to c5f1d173596a8e910f45a2b6e0b4dab96cd0102be4d62bd3156
        Hash for dependent task python/ changed from e3ee4b52a15267e6ae7853ec19a666b2fb62608a597608793336382d1c45f8a0 to 1e582043dfe6b3e00aaa532f363ce6afb37652abe837dac
            Hash for dependent task python/ changed from 770a4d5a77a96ebd9e1e7368f710bca3f88e3b1266dffa3b2d0360b1e3a81e27 to a366982778b03eee5165c3117ee778f848acdfaa2
                Hash for dependent task python/ changed from 958910037856ff5d5eb2b5162b3cdd02a3a710fc543b933cfeba771ee095cb72 to 474333fb565f908992fd3716
                    Hash for dependent task python/ changed from 7ac1c4fcbb2eacf98d2c32d991751bd2f3c7d55e2e32f2c9e485e7f5975fecf8 to 25dcfe74a95af19cce8df7c29311cc5edbbf6ad


Therefore limit inheriting this class only for target recipes.

Signed-off-by: Khem Raj <>

Cc: Alexander Kanavin <>
Cc: Martin Jansa <>
v2: Mark depends conditional instead

 meta/classes/python3targetconfig.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Links: You receive all messages sent to this group.
View/Reply Online (#144708):
Mute This Topic:
Group Owner:
Unsubscribe: []

Patch hide | download patch | download mbox

diff --git a/meta/classes/python3targetconfig.bbclass b/meta/classes/python3targetconfig.bbclass
index 640d0c97b6..b79ec211c7 100644
--- a/meta/classes/python3targetconfig.bbclass
+++ b/meta/classes/python3targetconfig.bbclass
@@ -1,6 +1,6 @@ 
 inherit python3native
-DEPENDS_append = " python3"
+DEPENDS_append = "${@['', ' python3']['${CLASSOVERRIDE}' == 'class-target']}"
 do_configure_prepend() {
         export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"