diff options
-rw-r--r-- | recipes-containers/cri-o/cri-o_git.bb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes-containers/cri-o/cri-o_git.bb b/recipes-containers/cri-o/cri-o_git.bb index c27aef78..b0c0ce44 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} = " \ | |||
42 | cni \ | 42 | cni \ |
43 | " | 43 | " |
44 | 44 | ||
45 | python __anonymous() { | ||
46 | msg = "" | ||
47 | # ERROR: Nothing PROVIDES 'libseccomp' (but /buildarea/layers/meta-virtualization/recipes-containers/cri-o/cri-o_git.bb DEPENDS on or otherwise requires it). | ||
48 | # ERROR: Required build target 'meta-world-pkgdata' has no buildable providers. | ||
49 | # Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'cri-o', 'libseccomp'] | ||
50 | if 'security' not in d.getVar('BBFILE_COLLECTIONS').split(): | ||
51 | msg += "Make sure meta-security should be present as it provides 'libseccomp'" | ||
52 | raise bb.parse.SkipRecipe(msg) | ||
53 | # ERROR: Nothing PROVIDES 'ostree' (but /buildarea/layers/meta-virtualization/recipes-containers/cri-o/cri-o_git.bb DEPENDS on or otherwise requires it). | ||
54 | # ERROR: Required build target 'meta-world-pkgdata' has no buildable providers. | ||
55 | # Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'cri-o', 'ostree'] | ||
56 | elif 'cube' not in d.getVar('BBFILE_COLLECTIONS').split(): | ||
57 | msg += "Make sure meta-cube should be present as it provides 'ostree'" | ||
58 | raise bb.parse.SkipRecipe(msg) | ||
59 | # ERROR: Nothing PROVIDES 'libselinux' (but /buildarea/layers/meta-virtualization/recipes-containers/cri-o/cri-o_git.bb DEPENDS on or otherwise requires it). | ||
60 | # ERROR: Required build target 'meta-world-pkgdata' has no buildable providers. | ||
61 | # Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'cri-o', 'libselinux'] | ||
62 | elif 'selinux' not in d.getVar('BBFILE_COLLECTIONS').split(): | ||
63 | msg += "Make sure meta-selinux should be present as it provides 'libselinux'" | ||
64 | raise bb.parse.SkipRecipe(msg) | ||
65 | } | ||
66 | |||
45 | PACKAGES =+ "${PN}-config" | 67 | PACKAGES =+ "${PN}-config" |
46 | 68 | ||
47 | RDEPENDS_${PN} += " virtual/containerd virtual/runc" | 69 | RDEPENDS_${PN} += " virtual/containerd virtual/runc" |