Skip to contentSkip to conversation

docker: Add runtime provide for virtual-docker

PATCH Richard Neill 1 participant 1 message May 4, 2022 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Please also backport this patch to the honister branch if possible, thanks!

Richard
________________________________
From: [email protected] <[email protected]> on behalf of Richard Neill via lists.yoctoproject.org <[email protected]>
Sent: Wednesday, May 4, 2022 3:09 PM
To: [email protected] <[email protected]>
Cc: nd <[email protected]>
Subject: [meta-virtualization] [PATCH] docker: Add runtime provide for virtual-docker

This patch enables successful runtime-dependency on the Docker preferred provider, as virtual/docker does not resolve. Doing so aligns with other virtual package providers (e.g. virtual-runc), and follows the Yocto Project documentation
(https://docs.yoctoproject.org/singleindex.html#virtual-runtime-provides).

---
 recipes-containers/docker/docker.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-containers/docker/docker.inc +1 -0
index 40a3642..e196f9b 100644
@@ -32,6 +32,7 @@ RDEPENDS:${PN} += "virtual-containerd virtual-runc"
 RRECOMMENDS:${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype kernel-module-xt-masquerade"
 
 PROVIDES += "virtual/docker"
+RPROVIDES:${PN} += "virtual-docker"
 
 # we want all the docker variant recpes to be installable via "docker"
 PACKAGE_NAME = "docker"

--
2.25.1