[oe] [meta-python][PATCH 5/5] python3-importlib-metadata: RDEPEND python3-misc only for target and nativesdk

Fabio Berton fabio.berton at ossystems.com.br
Wed Nov 13 12:09:44 UTC 2019


Python3 recipe rprovides python3-misc only for target and nativesdk,
but if we have some recipe that rdepends python3-misc and has native
in BBCLASSEXTEND bitbake raises an error showing that nothing rprovides
python3-misc-native.

Signed-off-by: Fabio Berton <fabio.berton at ossystems.com.br>
---
 .../recipes-devtools/python/python3-importlib-metadata_0.23.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-python/recipes-devtools/python/python3-importlib-metadata_0.23.bb b/meta-python/recipes-devtools/python/python3-importlib-metadata_0.23.bb
index 4c53d5fbb..851d703c9 100644
--- a/meta-python/recipes-devtools/python/python3-importlib-metadata_0.23.bb
+++ b/meta-python/recipes-devtools/python/python3-importlib-metadata_0.23.bb
@@ -1,4 +1,5 @@
 inherit pypi setuptools3
 require python-importlib-metadata.inc
 
-RDEPENDS_${PN} += "python3-misc"
+RDEPENDS_${PN}_class-target += "python3-misc"
+RDEPENDS_${PN}_class-nativesdk += "python3-misc"
-- 
2.20.1



More information about the Openembedded-devel mailing list