podman: use VIRTUAL-RUNTIME variable for flexible RDEPENDS

To make it simpler to vary the container runtime and the
networking infrastructure to be used with podman, we use
the recently introduced VIRTUAL-RUNTIME variables that
control these values.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Bruce Ashfield 2023-03-02 15:51:54 -05:00
parent 534e8b6ed7
commit b3346bfb26

View File

@ -138,7 +138,7 @@ SYSTEMD_SERVICE:${PN} = "podman.service podman.socket"
VIRTUAL-RUNTIME_base-utils-nsenter ?= "util-linux-nsenter"
RDEPENDS:${PN} += "\
conmon virtual-runc iptables cni skopeo ${VIRTUAL-RUNTIME_base-utils-nsenter} \
conmon ${VIRTUAL-RUNTIME_container_runtime} iptables ${VIRTUAL-RUNTIME_container_networking} skopeo ${VIRTUAL-RUNTIME_base-utils-nsenter} \
${@bb.utils.contains('PACKAGECONFIG', 'rootless', 'fuse-overlayfs slirp4netns', '', d)} \
"
RRECOMMENDS:${PN} += "slirp4netns kernel-module-xt-masquerade kernel-module-xt-comment"