Skip to contentSkip to conversation

docker: fix dependency issues with deb packaging

PATCH Bruce Ashfield 1 participant 1 message Apr 3, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

IMHO the deb backend (or a class to translate things) needs to happen here.

With this change, I can no longer do a preferred provider and have the exclusion
of the opencontainer and docker variants.

So unless the above functionality can be provided, I don't see how I can merge
this change.

Also, how is the deb backend dealing with virtual/kernel, virtual/libc, etc ?

Bruce

Quoted 51 lines · Adrian Calianu

dpkg-deb does not accept RDEPENDS += "virtual/xxxx"

'Provides' field, invalid package name 'virtual/containerd': character '/' not allowed (only letters, digits and characters '-+._')

---
 recipes-containers/containerd/containerd-docker_git.bb | 1 -
 recipes-containers/docker/docker_git.bb                | 2 +-
 recipeSs-containers/runc/runc-docker_git.bb             | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)
recipes-containers/containerd/containerd-docker_git.bb +0 -1
index f6dcaec..604ada3 100644
@@ -7,4 +7,3 @@ SRC_URI = "\
 CONTAINERD_VERSION = "0.2.3"
 
 PROVIDES += "virtual/containerd"
-RPROVIDES_${PN} = "virtual/containerd"
recipes-containers/docker/docker_git.bb +1 -1
index 6b73cf3..16d1dad 100644
@@ -64,7 +64,7 @@ DEPENDS_append_class-target = " lvm2"
 RDEPENDS_${PN} = "curl aufs-util git util-linux iptables \
                   ${@bb.utils.contains('DISTRO_FEATURES','systemd','','cgroup-lite',d)}
 \
                  "
-RDEPENDS_${PN} += "virtual/containerd virtual/runc"
+RDEPENDS_${PN} += "containerd-docker runc-docker"
 
 RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat"

RSUGGESTS_${PN} = "lxc rt-tests"

recipes-containers/runc/runc-docker_git.bb +0 -2
index 96d48ca..bf32953 100644
@@ -8,4 +8,3 @@ SRC_URI = "git://github.com/docker/runc.git;nobranch=1 \
 
 RUNC_VERSION = "1.0.0-rc2"
 PROVIDES += "virtual/runc"
-RPROVIDES_${PN} = "virtual/runc"
--

1.9.1

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"