All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yu, Mingli" <mingli.yu@windriver.com>
To: <bruce.ashfield@gmail.com>
Cc: meta-virtualization@yoctoproject.org
Subject: Re: [PATCH] cri-o: skip it when depends not found
Date: Wed, 31 Jul 2019 15:26:08 +0800	[thread overview]
Message-ID: <5D414290.4020606@windriver.com> (raw)
In-Reply-To: <1564132251-408200-1-git-send-email-mingli.yu@windriver.com>

Ping.

Thanks,

On 2019年07月26日 17:10, mingli.yu@windriver.com wrote:
> From: Mingli Yu <Mingli.Yu@windriver.com>
>
> cri-o depends on ostree, libselinux and libseccomp
> and we should check if the layer which provides these
> recipes exist or not before go on.
>
> Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
> ---
>   recipes-containers/cri-o/cri-o_git.bb | 22 ++++++++++++++++++++++
>   1 file changed, 22 insertions(+)
>
> diff --git a/recipes-containers/cri-o/cri-o_git.bb b/recipes-containers/cri-o/cri-o_git.bb
> index c27aef7..b0c0ce4 100644
> --- a/recipes-containers/cri-o/cri-o_git.bb
> +++ b/recipes-containers/cri-o/cri-o_git.bb
> @@ -42,6 +42,28 @@ RDEPENDS_${PN} = " \
>       cni \
>       "
>
> +python __anonymous() {
> +    msg = ""
> +    # ERROR: Nothing PROVIDES 'libseccomp' (but /buildarea/layers/meta-virtualization/recipes-containers/cri-o/cri-o_git.bb DEPENDS on or otherwise requires it).
> +    # ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
> +    # Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'cri-o', 'libseccomp']
> +    if 'security' not in d.getVar('BBFILE_COLLECTIONS').split():
> +        msg += "Make sure meta-security should be present as it provides 'libseccomp'"
> +        raise bb.parse.SkipRecipe(msg)
> +    # ERROR: Nothing PROVIDES 'ostree' (but /buildarea/layers/meta-virtualization/recipes-containers/cri-o/cri-o_git.bb DEPENDS on or otherwise requires it).
> +    # ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
> +    # Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'cri-o', 'ostree']
> +    elif 'cube' not in d.getVar('BBFILE_COLLECTIONS').split():
> +        msg += "Make sure meta-cube should be present as it provides 'ostree'"
> +        raise bb.parse.SkipRecipe(msg)
> +    # ERROR: Nothing PROVIDES 'libselinux' (but /buildarea/layers/meta-virtualization/recipes-containers/cri-o/cri-o_git.bb DEPENDS on or otherwise requires it).
> +    # ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
> +    # Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'cri-o', 'libselinux']
> +    elif 'selinux' not in d.getVar('BBFILE_COLLECTIONS').split():
> +        msg += "Make sure meta-selinux should be present as it provides 'libselinux'"
> +        raise bb.parse.SkipRecipe(msg)
> +}
> +
>   PACKAGES =+ "${PN}-config"
>
>   RDEPENDS_${PN} += " virtual/containerd virtual/runc"
>


  reply	other threads:[~2019-07-31  7:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-25  3:43 [PATCH] meta-virtualization: add layer depends on selinux mingli.yu
2019-07-25 18:28 ` Bruce Ashfield
2019-07-26  2:00   ` Yu, Mingli
2019-07-26  2:31     ` Bruce Ashfield
2019-07-26  2:38       ` Bruce Ashfield
2019-07-26  9:10         ` Yu, Mingli
2019-07-26  9:10           ` [PATCH] cri-o: skip it when depends not found mingli.yu
2019-07-31  7:26             ` Yu, Mingli [this message]
2019-08-01  1:49               ` Bruce Ashfield
2019-07-26 16:46         ` [PATCH] meta-virtualization: add layer depends on selinux Mark Hatle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5D414290.4020606@windriver.com \
    --to=mingli.yu@windriver.com \
    --cc=bruce.ashfield@gmail.com \
    --cc=meta-virtualization@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.