summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2024-09-24 18:59:37 +0530
committerArmin Kuster <akuster808@gmail.com>2024-10-06 07:02:28 -0400
commitaff78ae800fc7f8e4a36c7a80024c6a5000d123a (patch)
tree2dc763ac97d5ce21455b280a140e91e0b01d48c7
parent5d3fb27a4edff7ef13280a5ab66e638fd4df7519 (diff)
downloadmeta-openembedded-aff78ae800fc7f8e4a36c7a80024c6a5000d123a.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> (cherry picked from commit 5cf3766cf6395d4bfa5de20cf7427950ca498eaa) Signed-off-by: Nikhil R <nikhil.r@kpit.com> Signed-off-by: Armin Kuster <akuster808@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