mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
cri-o: skip it when depends not found
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> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
91c23e6a9c
commit
a12a6d922e
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user