[meta-virtualization] [PATCHv1 1/1] docker: fix dependency issues with deb packaging

Bruce Ashfield bruce.ashfield at gmail.com
Mon Apr 3 04:15:42 PDT 2017


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

On Mon, Apr 3, 2017 at 3:30 AM, Adrian Calianu <adrian.calianu at enea.com>
wrote:

> dpkg-deb does not accept RDEPENDS += "virtual/xxxx"
>
> 'Provides' field, invalid package name 'virtual/containerd': character
> '/' not allowed (only letters, digits and characters '-+._')
>
> Signed-off-by: Adrian Calianu <adrian.calianu at enea.com>
> ---
>  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(-)
>
> diff --git a/recipes-containers/containerd/containerd-docker_git.bb
> b/recipes-containers/containerd/containerd-docker_git.bb
> index f6dcaec..604ada3 100644
> --- a/recipes-containers/containerd/containerd-docker_git.bb
> +++ b/recipes-containers/containerd/containerd-docker_git.bb
> @@ -7,4 +7,3 @@ SRC_URI = "\
>  CONTAINERD_VERSION = "0.2.3"
>
>  PROVIDES += "virtual/containerd"
> -RPROVIDES_${PN} = "virtual/containerd"
> diff --git a/recipes-containers/docker/docker_git.bb
> b/recipes-containers/docker/docker_git.bb
> index 6b73cf3..16d1dad 100644
> --- a/recipes-containers/docker/docker_git.bb
> +++ b/recipes-containers/docker/docker_git.bb
> @@ -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"
> diff --git a/recipes-containers/runc/runc-docker_git.bb
> b/recipes-containers/runc/runc-docker_git.bb
> index 96d48ca..bf32953 100644
> --- a/recipes-containers/runc/runc-docker_git.bb
> +++ b/recipes-containers/runc/runc-docker_git.bb
> @@ -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
>
>


-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20170403/e81157b2/attachment.html>


More information about the meta-virtualization mailing list