From 5d459ba1c13c89b246a0f8d743027e1de93da910 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 16 Feb 2021 11:34:23 +0000 Subject: 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. Signed-off-by: Richard Purdie --- meta/classes/distutils3-base.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta/classes') diff --git a/meta/classes/distutils3-base.bbclass b/meta/classes/distutils3-base.bbclass index a277d1c7bc..302ee8c82c 100644 --- a/meta/classes/distutils3-base.bbclass +++ b/meta/classes/distutils3-base.bbclass @@ -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 -- cgit 1.2.3-korg