Message ID | 20241226064254.1178852-1-hongxu.jia@windriver.com |
---|---|
State | Under Review |
Headers | show |
Series | [meta-python] python3-beautifulsoup4,python3-soupsieve: fix loop dependency error | expand |
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 \ "
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 <hongxu.jia@windriver.com> --- .../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(-)