python3-beautifulsoup4,python3-soupsieve: fix loop dependency error

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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Hongxu Jia 2024-12-26 14:42:54 +08:00 committed by Khem Raj
parent db283053d0
commit 2a4de5168a
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 5 additions and 1 deletions

View File

@ -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"

View File

@ -14,6 +14,8 @@ SRC_URI += " \
RDEPENDS:${PN} += " \
python3-core \
python3-datetime \
"
RDEPENDS:${PN}:append:class-target = " \
python3-beautifulsoup4 \
"