While recipe build depends on python3-beautifulsoup4-native and
python3-soupsieve-native, it failed at fix loop dependency error
...
|ERROR: Task virtual:native:meta-openembedded/meta-python/
recipes-devtools/python/python3-soupsieve_2.6.bb:do_populate_sysroot
has circular dependency on virtual:native:meta-openembedded/
meta-python/recipes-devtools/python/python3-beautifulsoup4_4.12.3.bb:do_populate_sysroot
...

Correct runtime depends as class-target override to workaround

Signed-off-by: Hongxu Jia <[email protected]>
---
 .../recipes-devtools/python/python3-beautifulsoup4_4.12.3.bb  | 4 +++-
 meta-python/recipes-devtools/python/python3-soupsieve_2.6.bb  | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/meta-python/recipes-devtools/python/python3-beautifulsoup4_4.12.3.bb 
b/meta-python/recipes-devtools/python/python3-beautifulsoup4_4.12.3.bb
index 14dedba92..d08017d00 100644
--- a/meta-python/recipes-devtools/python/python3-beautifulsoup4_4.12.3.bb
+++ b/meta-python/recipes-devtools/python/python3-beautifulsoup4_4.12.3.bb
@@ -10,9 +10,11 @@ inherit pypi python_hatchling
 RDEPENDS:${PN} = "\
     python3-html5lib \
     python3-lxml \
-    python3-soupsieve \
     python3-html \
     python3-logging \
 "
+RDEPENDS:${PN}:append:class-target = " \
+    python3-soupsieve \
+"
 
 BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-python/recipes-devtools/python/python3-soupsieve_2.6.bb 
b/meta-python/recipes-devtools/python/python3-soupsieve_2.6.bb
index 6572a6845..dc317ea6c 100644
--- a/meta-python/recipes-devtools/python/python3-soupsieve_2.6.bb
+++ b/meta-python/recipes-devtools/python/python3-soupsieve_2.6.bb
@@ -14,6 +14,8 @@ SRC_URI += " \
 RDEPENDS:${PN} += " \
     python3-core \
     python3-datetime \
+"
+RDEPENDS:${PN}:append:class-target = " \
     python3-beautifulsoup4 \
 "
 
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#114551): 
https://lists.openembedded.org/g/openembedded-devel/message/114551
Mute This Topic: https://lists.openembedded.org/mt/110290472/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to