diff mbox series

[meta-networking] nftables: remove python dependency from main package

Message ID 20251204143637.229960-1-peter.marko@siemens.com
State Under Review
Headers show
Series [meta-networking] nftables: remove python dependency from main package | expand

Commit Message

Peter Marko Dec. 4, 2025, 2:36 p.m. UTC
From: Peter Marko <peter.marko@siemens.com>

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.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
---
 meta-networking/recipes-filter/nftables/nftables_1.1.5.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-networking/recipes-filter/nftables/nftables_1.1.5.bb b/meta-networking/recipes-filter/nftables/nftables_1.1.5.bb
index a2c6ce0e23..5ae9fc609d 100644
--- a/meta-networking/recipes-filter/nftables/nftables_1.1.5.bb
+++ b/meta-networking/recipes-filter/nftables/nftables_1.1.5.bb
@@ -42,6 +42,8 @@  inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python_setuptools
 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