From 04f8621d8213630e3072321c68089ac147e21ebe Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Sat, 3 Apr 2021 21:51:31 +0200 Subject: 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 Signed-off-by: Bruce Ashfield --- recipes-containers/podman/podman_git.bb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'recipes-containers/podman/podman_git.bb') 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 = " \ ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ " -python __anonymous() { - msg = "" - # ERROR: Nothing PROVIDES 'libseccomp' (but meta-virtualization/recipes-containers/podman/ 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', 'podman', '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) -} +PNBLACKLIST[podman] ?= "${@bb.utils.contains('BBFILE_COLLECTIONS', 'security', '', 'Depends on libseccomp from meta-security which is not included', d)}" SRCREV = "288fb688964cb7fc7086d0728daa1f5f6b726dd6" SRC_URI = " \ -- cgit v1.2.3-54-g00ecf