Re: [meta-virtualization] [PATCH 2/2] example-xen-guest-bundle: require xen and x11 in DISTRO_FEATURES

Bruce Ashfield <[email protected]>
Newsgroups org.yoctoproject.lists.meta-virtualization
Message-ID <CADkTA4OPcnHe9ZMV5hbDET6MGMWUDGMyhxwKn+QhZY=mYQoahQ@mail.gmail.com>
On Tue, Mar 10, 2026 at 9:58 AM Martin Jansa via lists.yoctoproject.org
<[email protected]> wrote:

> From: Martin Jansa <[email protected]>
>
> to match the image recipe from XEN_GUEST_BUNDLES
>
> Fixes:
> ERROR: Nothing PROVIDES 'xen-guest-image-minimal'
> xen-guest-image-minimal was skipped: using DISTRO 'distro', which is
> missing required DISTRO_FEATURES: 'xen'
> in bitbake world builds
>

I was quite literally just doing this!

But your patch is where I wanted it (versus the bbclass one I got earlier),
so I'll just grab this instead.

Bruce


> Signed-off-by: Martin Jansa <[email protected]>
> ---
>  .../xen-guest-bundles/example-xen-guest-bundle_1.0.bb        | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/recipes-extended/xen-guest-bundles/
> example-xen-guest-bundle_1.0.bb b/recipes-extended/xen-guest-bundles/
> example-xen-guest-bundle_1.0.bb
> index 96e17275..70f12492 100644
> --- a/recipes-extended/xen-guest-bundles/example-xen-guest-bundle_1.0.bb
> +++ b/recipes-extended/xen-guest-bundles/example-xen-guest-bundle_1.0.bb
> @@ -26,7 +26,10 @@ DESCRIPTION = "Demonstrates xen-guest-bundle.bbclass by
> bundling the \
>  LICENSE = "MIT"
>  LIC_FILES_CHKSUM =
> "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
>
> -inherit xen-guest-bundle
> +inherit xen-guest-bundle features_check
> +
> +# matches xen-guest-image-minimal recipe
> +REQUIRED_DISTRO_FEATURES += "${@bb.utils.contains('IMAGE_FEATURES',
> 'x11', ' x11', '', d)} xen"
>
>  # Define guests to bundle
>  # Format: recipe-name[:autostart][:external]
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#9634):
> https://lists.yoctoproject.org/g/meta-virtualization/message/9634
> Mute This Topic: https://lists.yoctoproject.org/mt/118241118/1050810
> Group Owner: [email protected]
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [
> [email protected]]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.