Re: [meta-virtualization][PATCH] distro/vruntime: DISTRO_FEATURES_DEFAULT is obsolete

Paul Barker <[email protected]> Fri, 24 Apr 2026 09:57:02 +0100
Newsgroups org.yoctoproject.lists.meta-virtualization
Message-ID <[email protected]>
On Thu, 2026-04-23 at 21:26 -0700, Tim Orling via lists.yoctoproject.org
wrote:
> Replace with DISTRO_FEATURES_DEFAULTS
> 
> https://git.openembedded.org/openembedded-core/commit/meta/conf?id=0548ea447445834647be7ef35ed0ae8d1d3387b3
> 
> Fixes:
> ERROR: Nothing PROVIDES 'nativesdk-libseccomp' ...
> 
> Signed-off-by: Tim Orling <[email protected]>
> ---
>  conf/distro/vruntime.conf | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/conf/distro/vruntime.conf b/conf/distro/vruntime.conf
> index 0ea43e62..56c5ad6a 100644
> --- a/conf/distro/vruntime.conf
> +++ b/conf/distro/vruntime.conf
> @@ -46,8 +46,8 @@ DISTRO_FEATURES = "acl ext2 ipv4 ipv6 seccomp vfat pci vcontainer vxn"
>  DISTRO_FEATURES_OPTED_OUT = "pulseaudio gobject-introspection-data opengl ptest multiarch wayland vulkan"
>  
>  # Native and nativesdk classes need full features for build tools
> -DISTRO_FEATURES:class-native = "${DISTRO_FEATURES_DEFAULT} ${POKY_DEFAULT_DISTRO_FEATURES}"
> -DISTRO_FEATURES:class-nativesdk = "${DISTRO_FEATURES_DEFAULT} ${POKY_DEFAULT_DISTRO_FEATURES}"
> +DISTRO_FEATURES:class-native = "${DISTRO_FEATURES_DEFAULTS} ${POKY_DEFAULT_DISTRO_FEATURES}"
> +DISTRO_FEATURES:class-nativesdk = "${DISTRO_FEATURES_DEFAULTS} ${POKY_DEFAULT_DISTRO_FEATURES}"
>  
>  # Default to ext4, but image recipes may override to squashfs
>  IMAGE_FSTYPES = "ext4"

Hi Tim,

This is the wrong approach as it bypasses the default feature filtering.
Instead, just drop DISTRO_FEATURES_DEFAULT, the defaults are appended
automatically after filtering for opt-outs.

See the corresponding change in poky [1] for an example.

[1]: https://git.yoctoproject.org/meta-yocto/commit/?id=96085aaec5bfb33c4e4322465eaf0af370db6fc0

Best regards,

-- 
Paul Barker
signature.asc (application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE-----

iIcEABYKAC8WIQSzjPXf5Y1BDWhU2iCrY1Tsnbr0bgUCaeswXhEccGF1bEBwYmFy
a2VyLmRldgAKCRCrY1Tsnbr0biD7AP9qCtb78FJwyFfE/6oBzo3pLO5Cq+2sUbsI
mQpyHXIYkAD7B5w2rgNwxYeT43Cl41asgilT0NWKrecA8C0G7M7mqAI=
=1yBH
-----END PGP SIGNATURE-----