summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikhil R <nikhil.r@kpit.com>2024-09-24 19:03:30 +0530
committerArmin Kuster <akuster808@gmail.com>2024-10-06 07:02:34 -0400
commitbd6854fc05bc47f18cf82e2a66bcbd12f5f81d0a (patch)
tree444264e6c0caaf6c346c83b740e4166c30f8d5d6
parentaff78ae800fc7f8e4a36c7a80024c6a5000d123a (diff)
downloadmeta-openembedded-bd6854fc05bc47f18cf82e2a66bcbd12f5f81d0a.tar.gz
nftables: Conditionally add ${PN}-python as RDEPENDS for ptest
This commit updates the RDEPENDS for the ptest package to include ${PN}-python only when the 'python' PACKAGECONFIG option is enabled. This fix is required as ptest is enabled in the Distro features, which was causing the following error: ERROR: Nothing RPROVIDES 'nftables-python' (but /home/builder/src/base/node0/meta-openembedded/meta-networking/recipes-filter/nftables/nftables_1.0.9.bb RDEPENDS on or otherwise requires it) NOTE: Runtime target 'nftables-python' is unbuildable, removing... Missing or unbuildable dependency chain was: ['nftables-python'] ERROR: Required build target 'nftables' has no buildable providers. Missing or unbuildable dependency chain was: ['nftables', 'nftables-python'] 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.bb5
1 files changed, 4 insertions, 1 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 17f00ffd42..569ab6f6af 100644
--- a/meta-networking/recipes-filter/nftables/nftables_1.0.9.bb
+++ b/meta-networking/recipes-filter/nftables/nftables_1.0.9.bb
@@ -64,7 +64,10 @@ do_install() {
64 fi 64 fi
65} 65}
66 66
67RDEPENDS:${PN}-ptest += " ${PN}-python bash coreutils make iproute2 iputils-ping procps python3-core python3-ctypes python3-json python3-misc sed util-linux" 67RDEPENDS:${PN}-ptest += " \
68 bash coreutils make iproute2 iputils-ping procps python3-core python3-ctypes python3-json python3-misc sed util-linux \
69 ${@bb.utils.contains('PACKAGECONFIG', 'python', '${PN}-python', '', d)} \
70"
68 71
69RRECOMMENDS:${PN}-ptest += "\ 72RRECOMMENDS:${PN}-ptest += "\
70kernel-module-nft-chain-nat kernel-module-nft-queue \ 73kernel-module-nft-chain-nat kernel-module-nft-queue \