From: Peter Marko <[email protected]>

The recipe splits python code to nftables-python package, however
setuptools classes add the dependency to main package.
Since nftables-python package already has python3-core explicit
dependency, remove it from the main package.

(From meta-openembedded rev: 331126a6d0a48ebcf12069df554b3abacaeb512a)

Signed-off-by: Peter Marko <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
---
 meta-networking/recipes-filter/nftables/nftables_1.0.9.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-networking/recipes-filter/nftables/nftables_1.0.9.bb 
b/meta-networking/recipes-filter/nftables/nftables_1.0.9.bb
index 569ab6f6af..26fa72aff2 100644
--- a/meta-networking/recipes-filter/nftables/nftables_1.0.9.bb
+++ b/meta-networking/recipes-filter/nftables/nftables_1.0.9.bb
@@ -40,6 +40,8 @@ inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 
'setuptools3', '',
 PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'python', '${PN}-python', 
'', d)}"
 FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
 RDEPENDS:${PN}-python = "python3-core python3-json ${PN}"
+# setuptools3-base.bbclass adds this to main package, but this recipe is 
moving it to python sub-package
+RDEPENDS:${PN}:remove:class-target = "python3-core"
 
 # Explicitly define do_configure, do_compile and do_install because both 
autotools and setuptools3
 # have EXPORT_FUNCTIONS do_configure do_compile do_install
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#122367): 
https://lists.openembedded.org/g/openembedded-devel/message/122367
Mute This Topic: https://lists.openembedded.org/mt/116657322/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to