summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2024-05-29 11:58:51 +0200
committerKhem Raj <raj.khem@gmail.com>2024-05-30 08:42:03 -0700
commit5cf3766cf6395d4bfa5de20cf7427950ca498eaa (patch)
treefe6c84721f13230e0e47b9512feeb505cd6b5ee3
parentedaefe7f80bea8082fcc799d50c9fef83df2bd02 (diff)
downloadmeta-openembedded-5cf3766cf6395d4bfa5de20cf7427950ca498eaa.tar.gz
nftables: avoid python dependencies when building without python
Use inherit_defer instead of inhert. This way, setuptools3 is not inherited when python is removed from PACKAGECONFIG in a .bbappend file. This avoids dependencies added by setuptools3. Don't add nftables-python to PACKAGES if python is disabled. It adds extra runtime dependencies on python3-core and python3-json. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-filter/nftables/nftables_1.0.9.bb4
1 files changed, 2 insertions, 2 deletions
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 7718922742..17f00ffd42 100644
--- a/meta-networking/recipes-filter/nftables/nftables_1.0.9.bb
+++ b/meta-networking/recipes-filter/nftables/nftables_1.0.9.bb
@@ -35,9 +35,9 @@ EXTRA_OECONF = " \
35 35
36SETUPTOOLS_SETUP_PATH = "${S}/py" 36SETUPTOOLS_SETUP_PATH = "${S}/py"
37 37
38inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'setuptools3', '', d)} 38inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 'setuptools3', '', d)}
39 39
40PACKAGES =+ "${PN}-python" 40PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'python', '${PN}-python', '', d)}"
41FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}" 41FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
42RDEPENDS:${PN}-python = "python3-core python3-json ${PN}" 42RDEPENDS:${PN}-python = "python3-core python3-json ${PN}"
43 43