On Sat, Dec 28, 2024 at 4:02 AM hongxu via lists.yoctoproject.org
<[email protected]> wrote:

> Otherwise world build on qemuloongarch64 failed
>
> $ echo "MACHINE = 'qemuloongarch64'" >> conf/local.conf
> $ bitbake world
> ERROR: Nothing PROVIDES 'libseccomp' (but
> meta-virtualization/recipes-containers/docker/docker-moby_26.0.2.bb
> DEPENDS on or otherwise requires it)
> libseccomp was skipped: missing required distro feature 'seccomp' (not in
> DISTRO_FEATURES)
> NOTE: Runtime target 'docker' is unbuildable, removing...
> Missing or unbuildable dependency chain was: ['docker', 'libseccomp']
> ERROR: Required build target 'meta-world-pkgdata' has no buildable
> providers.
> Missing or unbuildable dependency chain was: ['meta-world-pkgdata',
> 'docker-compose', 'docker', 'libseccomp']
>
> Signed-off-by: Hongxu Jia <[email protected]>
> ---
>  recipes-containers/docker/docker.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recipes-containers/docker/docker.inc
> b/recipes-containers/docker/docker.inc
> index 8aabd154..71f11074 100644
> --- a/recipes-containers/docker/docker.inc
> +++ b/recipes-containers/docker/docker.inc
> @@ -26,7 +26,7 @@ RPROVIDES:${PN}-dev += "docker-dev"
>  RPROVIDES:${PN}-contrip += "docker-dev"
>
>  inherit pkgconfig
> -PACKAGECONFIG ??= "docker-init seccomp"
> +PACKAGECONFIG ??= "docker-init ${@bb.utils.filter('DISTRO_FEATURES',
> 'seccomp', d)}"
>

I won't take this patch for two reasons:

- The packageconfig should be independent of the disro feature (and in fact
predates it)
- docker won't actually run without seccomp, so this should be a feature
check and forced in the packageconfig

I've made the seccomp check changes locally and will push them when I'm
back from holidays.

longarch64 should be marked incompatible with this recipe.

Bruce


>  PACKAGECONFIG[seccomp] = "seccomp,,libseccomp"
>  PACKAGECONFIG[docker-init] = ",,,docker-init"
>  PACKAGECONFIG[transient-config] = "transient-config"
> --
> 2.34.1
>
>
> 
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9068): 
https://lists.yoctoproject.org/g/meta-virtualization/message/9068
Mute This Topic: https://lists.yoctoproject.org/mt/110315546/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to