All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] setuptools3-base: improve RDEPENDS assignment
@ 2022-03-11 15:05 Ross Burton
  0 siblings, 0 replies; only message in thread
From: Ross Burton @ 2022-03-11 15:05 UTC (permalink / raw)
  To: openembedded-core

Use :append instead of += so that recipes can assign to RDEPENDS:${PN}.
This fixes missing RDEPENDS for sixteen recipes in oe-core alone.

Also instead of using obscure inline Python we can just use the
class-target override.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/classes/setuptools3-base.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/setuptools3-base.bbclass b/meta/classes/setuptools3-base.bbclass
index 5098ae9d64..15abe1dd63 100644
--- a/meta/classes/setuptools3-base.bbclass
+++ b/meta/classes/setuptools3-base.bbclass
@@ -1,6 +1,6 @@
 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']}"
+RDEPENDS:${PN}:append:class-target = " ${PYTHON_PN}-core"
 
 export STAGING_INCDIR
 export STAGING_LIBDIR
-- 
2.25.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-11 15:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-11 15:05 [PATCH] setuptools3-base: improve RDEPENDS assignment Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.