]> code.ossystems Code Review - openembedded-core.git/commitdiff
distutils3-base: Fix after native packaging changes
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Feb 2021 11:34:23 +0000 (11:34 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Feb 2021 11:01:14 +0000 (11:01 +0000)
Now that native recipes have PACKAGES, this DEPENDS construct doesn't
work. It applies to target and nativesdk recipes so adjust accordingly.

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

index a277d1c7bc68dd4c6a9f172e06ab76df0ca5bfb3..302ee8c82c082f436a982e28b8c4ee7d00da2d83 100644 (file)
@@ -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