diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2021-04-03 21:51:31 +0200 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-04-06 20:34:26 -0400 |
commit | 04f8621d8213630e3072321c68089ac147e21ebe (patch) | |
tree | 0478365a34ae96ab61584583653f7689aaf4dab9 /recipes-containers/podman/podman_git.bb | |
parent | 4c073402756248acd32b209b7b8a5e1fe328b13b (diff) | |
download | meta-virtualization-04f8621d8213630e3072321c68089ac147e21ebe.tar.gz |
cri-o, podman, packagegroup-container: replace anonymous python function calling bb.parse.SkipRecipe with conditional PNBLACKLISTs
* PNBLACKLISTs are IMHO a bit easier to read and easier to override from distro
which e.g. provides own recipe for libseccomp
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/podman/podman_git.bb')
-rw-r--r-- | recipes-containers/podman/podman_git.bb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/recipes-containers/podman/podman_git.bb b/recipes-containers/podman/podman_git.bb index a552a7fa..62ae024c 100644 --- a/recipes-containers/podman/podman_git.bb +++ b/recipes-containers/podman/podman_git.bb | |||
@@ -14,15 +14,7 @@ DEPENDS = " \ | |||
14 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ | 14 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ |
15 | " | 15 | " |
16 | 16 | ||
17 | python __anonymous() { | 17 | PNBLACKLIST[podman] ?= "${@bb.utils.contains('BBFILE_COLLECTIONS', 'security', '', 'Depends on libseccomp from meta-security which is not included', d)}" |
18 | msg = "" | ||
19 | # ERROR: Nothing PROVIDES 'libseccomp' (but meta-virtualization/recipes-containers/podman/ DEPENDS on or otherwise requires it). | ||
20 | # ERROR: Required build target 'meta-world-pkgdata' has no buildable providers. | ||
21 | # Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'podman', 'libseccomp'] | ||
22 | if 'security' not in d.getVar('BBFILE_COLLECTIONS').split(): | ||
23 | msg += "Make sure meta-security should be present as it provides 'libseccomp'" | ||
24 | raise bb.parse.SkipRecipe(msg) | ||
25 | } | ||
26 | 18 | ||
27 | SRCREV = "288fb688964cb7fc7086d0728daa1f5f6b726dd6" | 19 | SRCREV = "288fb688964cb7fc7086d0728daa1f5f6b726dd6" |
28 | SRC_URI = " \ | 20 | SRC_URI = " \ |