Skip to contentSkip to conversation

distutils3-base: Fix after native packaging changes

PATCH New Richard Purdie 1 participant 1 message Feb 16, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 distutils3-base: Fix after native packaging changes

Now that native recipes have PACKAGES, this DEPENDS construct doesn't work. It applies to target and nativesdk recipes so adjust accordingly.

---
 meta/classes/distutils3-base.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/distutils3-base.bbclass +2 -1
index a277d1c7bc6..302ee8c82c0 100644
@@ -1,4 +1,5 @@
-DEPENDS  += "${@["${PYTHON_PN}-native ${PYTHON_PN}", ""][(d.getVar('PACKAGES') == '')]}"
+DEPENDS_append_class-target = " ${PYTHON_PN}-native ${PYTHON_PN}"
+DEPENDS_append_class-nativesdk = " ${PYTHON_PN}-native ${PYTHON_PN}"
 RDEPENDS_${PN} += "${@['', '${PYTHON_PN}-core']['${CLASSOVERRIDE}' == 'class-target']}"
 
 inherit distutils-common-base python3native python3targetconfig
Signature · 1 line
2.27.0