diff options
| author | Michael Olbrich <m.olbrich@pengutronix.de> | 2024-05-29 11:58:51 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-05-30 08:42:03 -0700 |
| commit | 5cf3766cf6395d4bfa5de20cf7427950ca498eaa (patch) | |
| tree | fe6c84721f13230e0e47b9512feeb505cd6b5ee3 | |
| parent | edaefe7f80bea8082fcc799d50c9fef83df2bd02 (diff) | |
| download | meta-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.bb | 4 |
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 | ||
| 36 | SETUPTOOLS_SETUP_PATH = "${S}/py" | 36 | SETUPTOOLS_SETUP_PATH = "${S}/py" |
| 37 | 37 | ||
| 38 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'setuptools3', '', d)} | 38 | inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 'setuptools3', '', d)} |
| 39 | 39 | ||
| 40 | PACKAGES =+ "${PN}-python" | 40 | PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'python', '${PN}-python', '', d)}" |
| 41 | FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}" | 41 | FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}" |
| 42 | RDEPENDS:${PN}-python = "python3-core python3-json ${PN}" | 42 | RDEPENDS:${PN}-python = "python3-core python3-json ${PN}" |
| 43 | 43 | ||
