packagegroup-kubernets: add seccomp to REQUIRED_DISTRO_FEATURES
PATCH 1/2 packagegroup-kubernets: add seccomp to REQUIRED_DISTRO_FEATURES
* fixes world build:
ERROR: Nothing RPROVIDES 'k3s-server' (but meta-virtualization/recipes-core/packagegroups/packagegroup-kubernetes.bb RDEPENDS on or otherwise requires it) k3s RPROVIDES k3s-server but was skipped: missing required distro feature 'seccomp' (not in DISTRO_FEATURES)
NOTE: Runtime target 'k3s-server' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['k3s-server']
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'packagegroup-kubernetes', 'k3s-server']
--- recipes-core/packagegroups/packagegroup-kubernetes.bb | 4 ++++ 1 file changed, 4 insertions(+)
recipes-core/packagegroups/packagegroup-kubernetes.bb +4 -0
@@ -4,6 +4,10 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda inherit packagegroup +# k3s has this restriction +inherit features_check +REQUIRED_DISTRO_FEATURES ?= "seccomp" + PACKAGES = "\ packagegroup-kubernetes-base \ packagegroup-k8s-host \
Signature · 1 line
2.30.2
PATCH 2/2 packagegroup-container: skip without meta-security because of podman
* copy the skip from podman recipe, because this packagegroup depends on podman
--- recipes-core/packagegroups/packagegroup-container.bb | 9 +++++++++ 1 file changed, 9 insertions(+)
recipes-core/packagegroups/packagegroup-container.bb +9 -0
@@ -44,3 +44,12 @@ RDEPENDS_packagegroup-containerd = " \ virtual/containerd \ " +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) +}
Signature · 1 line
2.30.2
Re: [meta-virtualization][PATCH 2/2] packagegroup-container: skip without meta-security because of podman
Quoted 15 lines · Martin Jansa
* copy the skip from podman recipe, because this packagegroup depends on podman
Signed-off-by Martin Jansa <[email protected]>--- recipes-core/packagegroups/packagegroup-container.bb | 9 +++++++++ 1 file changed, 9 insertions(+)recipes-core/packagegroups/packagegroup-container.bb +0
-0@@ -44,3 +44,12 @@ RDEPENDS_packagegroup-containerd = " \ virtual/containerd \ "
recipes-core/packagegroups/packagegroup-container.bb RDEPENDS_packagegroup-containerd = " \ · line 55
Quoted 10 lines
recipes-core/packagegroups/packagegroup-container.bb +9
-0+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) +}
That reminds me that the libsecomp pkg should move to meta-oe so this other layers don't have to do these kinds of things.
-armin
Quoted 3 lines
Re: [meta-virtualization][PATCH 2/2] packagegroup-container: skip without meta-security because of podman
Quoted 19 lines · On Fri, Apr 02, 2021 at 11:32:14AM -0700, akuster808 wrote:
Quoted 16 lines · Martin Jansa
* copy the skip from podman recipe, because this packagegroup depends on podman
Signed-off-by Martin Jansa <[email protected]>--- recipes-core/packagegroups/packagegroup-container.bb | 9 +++++++++ 1 file changed, 9 insertions(+)recipes-core/packagegroups/packagegroup-container.bb +0
-0@@ -44,3 +44,12 @@ RDEPENDS_packagegroup-containerd = " \ virtual/containerd \ "
Quoted 12 lines
recipes-core/packagegroups/packagegroup-container.bb RDEPENDS_packagegroup-containerd = " \ · line 55
Quoted 9 lines
recipes-core/packagegroups/packagegroup-container.bb +9
-0+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) +}That reminds me that the libsecomp pkg should move to meta-oe so this other layers don't have to do these kinds of things.
there are also nagios recipes depending on meta-webserver which is listed in LAYERRECOMMENDS_virtualization-layer but it would be better to skip them like this when meta-webserver isn't included as well.
Quoted 6 lines
-armin
Quoted 3 lines
Thanks Martin,
This is now merged.
Bruce
In message: [meta-virtualization][PATCH 1/2] packagegroup-kubernets: add seccomp to REQUIRED_DISTRO_FEATURES
Quoted 35 lines · on 02/04/2021 Martin Jansa wrote:
* fixes world build:
ERROR: Nothing RPROVIDES 'k3s-server' (but meta-virtualization/recipes-core/packagegroups/packagegroup-kubernetes.bb RDEPENDS on or otherwise requires it) k3s RPROVIDES k3s-server but was skipped: missing required distro feature 'seccomp' (not inDISTRO_FEATURES)
NOTE: Runtime target 'k3s-server' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['k3s-server']
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'packagegroup-kubernetes', 'k3s-server']Signed-off-by Martin Jansa <[email protected]>--- recipes-core/packagegroups/packagegroup-kubernetes.bb | 4 ++++ 1 file changed, 4 insertions(+)recipes-core/packagegroups/packagegroup-kubernetes.bb +4
-0@@ -4,6 +4,10 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda inherit packagegroup +# k3s has this restriction +inherit features_check +REQUIRED_DISTRO_FEATURES ?= "seccomp" + PACKAGES = "\ packagegroup-kubernetes-base \ packagegroup-k8s-host \Signature · 1 line
2.30.2