Skip to content

Commit 12cc7d2

Browse files
christophercoddstreetmicrosoft
authored andcommitted
feat(qemu): disable Xen support
Azure Linux targets Hyper-V/KVM, not Xen. Since our builders have the %fedora macro set, the upstream spec enables Xen on x86_64/aarch64 by default, pulling in xen-devel at build time and libxenstore.so.4 at runtime. Override have_xen back to 0 via overlay. Verified: build succeeds and no output RPMs carry xen dependencies.
1 parent c1e30b6 commit 12cc7d2

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

base/comps/components-full.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4730,7 +4730,6 @@
47304730
[components.qcustomplot]
47314731
[components.qdbm]
47324732
[components.qdox]
4733-
[components.qemu]
47344733
[components.qhull]
47354734
[components.qjson]
47364735
[components.qpdf]

base/comps/qemu/qemu.comp.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[components.qemu]
2+
3+
# Disable Xen support — not applicable to Azure Linux's Hyper-V/KVM environment.
4+
# The upstream spec enables Xen when %fedora is set (which it is on our builders),
5+
# so we must explicitly override have_xen back to 0.
6+
[[components.qemu.overlays]]
7+
description = "Disable Xen support - not needed for Azure Linux (Hyper-V/KVM only)"
8+
type = "spec-search-replace"
9+
regex = '%global have_xen 1'
10+
replacement = '%global have_xen 0'

0 commit comments

Comments
 (0)