xen-guest-bundle: require "xen" DISTRO_FEATURE
PATCH 1/1 xen-guest-bundle: require "xen" DISTRO_FEATURE
Building guest bundles makes sense only if "xen" feature is enabled in DISTRO_FEATURES. Skip all Xen guest bundle recipes if it is not a part of the DISTRO_FEATURES.
--- classes/xen-guest-bundle.bbclass | 3 +++ 1 file changed, 3 insertions(+)
classes/xen-guest-bundle.bbclass +3 -0
@@ -269,6 +269,9 @@ python __anonymous() { d.appendVarFlag('do_compile', 'depends', ' virtual/kernel:do_deploy') } +inherit features_check +REQUIRED_DISTRO_FEATURES = "xen" + S = "${UNPACKDIR}/sources" B = "${WORKDIR}/build"
Signature · 1 line
2.47.3
Quoted 3 lines · Dmitry Baryshkov via lists.yoctoproject.org
Building guest bundles makes sense only if "xen" feature is enabled in
DISTRO_FEATURES. Skip all Xen guest bundle recipes if it is not a part of theDISTRO_FEATURES.
Sure, but you are just describing what is in the patch.
What problem was this actually causing ?
Bruce
Quoted 38 lines
Signed-off-by Dmitry Baryshkov <[email protected]>--- classes/xen-guest-bundle.bbclass | 3 +++ 1 file changed, 3 insertions(+)classes/xen-guest-bundle.bbclass +3
-1@@ -269,6 +269,9 @@ python __anonymous() { d.appendVarFlag('do_compile', 'depends', ' virtual/kernel:do_deploy') } +inherit features_check +REQUIRED_DISTRO_FEATURES = "xen" + S = "${UNPACKDIR}/sources" B = "${WORKDIR}/build" --2.47.3
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#9618):
https://lists.yoctoproject.org/g/meta-virtualization/message/9618
Mute This Topic: https://lists.yoctoproject.org/mt/118147344/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Quoted 7 lines · Bruce Ashfield
On Wed, Mar 4, 2026 at 11:30 PM Dmitry Baryshkov via lists.yoctoproject.org <http://lists.yoctoproject.org>
<[email protected] <mailto:[email protected]>> wrote:
Quoted 8 lines
Building guest bundles makes sense only if "xen" feature is enabled in
DISTRO_FEATURES. Skip all Xen guest bundle recipes if it is not a part of theDISTRO_FEATURES.Sure, but you are just describing what is in the patch.
What problem was this actually causing ?
When building world (or when running yocto-check-layers against a layer depending on meta-virtualization):
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'example-xen-guest-bundle', 'xen-guest-image-minimal']
--
With best wishes
Dmitry
Quoted 17 lines · Dmitry Baryshkov
Quoted 8 lines · Bruce Ashfield
On Wed, Mar 4, 2026 at 11:30 PM Dmitry Baryshkov via lists.yoctoproject.org <http://lists.yoctoproject.org>
<[email protected] <mailto:[email protected]>> wrote:Building guest bundles makes sense only if "xen" feature is enabled
in
Quoted 1 line
DISTRO_FEATURES. Skip all Xen guest bundle recipes if it is not apart
Quoted 5 lines
of the
DISTRO_FEATURES.Sure, but you are just describing what is in the patch.
Quoted 8 lines
Quoted 1 line
What problem was this actually causing ?
When building world (or when running yocto-check-layers against a layer depending on meta-virtualization):
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'example-xen-guest-bundle', 'xen-guest-image-minimal']
Aha. That's what needs to be in the commit message!
I'd prefer the feature check in the recipes themselves (and clearly I missed some when doing the work).
Distro / feature requirements just aren't visible enough when they are in a bbclass versus the recipe (from my point of view).
In fact, I don't even think the recipes make sense in a world build at all, and I should probably just bulk exclude them.
Thoughts ?
Bruce
Quoted 7 lines
--
With best wishes
Dmitry
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II