* [meta-networking][PATCH] nftables: avoid python dependencies when building without python
@ 2024-05-29 9:58 Michael Olbrich
2024-08-07 6:50 ` Sven
0 siblings, 1 reply; 2+ messages in thread
From: Michael Olbrich @ 2024-05-29 9:58 UTC (permalink / raw)
To: openembedded-devel; +Cc: yocto, Michael Olbrich
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>
---
meta-networking/recipes-filter/nftables/nftables_1.0.9.bb | 4 ++--
1 file 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 771892274251..17f00ffd4269 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 = " \
SETUPTOOLS_SETUP_PATH = "${S}/py"
-inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'setuptools3', '', d)}
+inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 'setuptools3', '', d)}
-PACKAGES =+ "${PN}-python"
+PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'python', '${PN}-python', '', d)}"
FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
RDEPENDS:${PN}-python = "python3-core python3-json ${PN}"
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-networking][PATCH] nftables: avoid python dependencies when building without python
2024-05-29 9:58 [meta-networking][PATCH] nftables: avoid python dependencies when building without python Michael Olbrich
@ 2024-08-07 6:50 ` Sven
0 siblings, 0 replies; 2+ messages in thread
From: Sven @ 2024-08-07 6:50 UTC (permalink / raw)
To: openembedded-devel
Hi,
Could this patch please be backported to scarthgap?
Best regards,
Sven
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-07 6:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-29 9:58 [meta-networking][PATCH] nftables: avoid python dependencies when building without python Michael Olbrich
2024-08-07 6:50 ` Sven
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.