From db600dbfaa0b1945d933a8065a436de68faa90ba Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Aug 29 2023 11:19:14 +0000 Subject: spec: explicitly enable/disable xen support For upstream packit builds with https://github.com/systemd/systemd/pull/24175. (cherry picked from commit 49575fa6eddcbbbd7da2f0a28fbdc6573207b2dd) --- diff --git a/systemd.spec b/systemd.spec index d1f779f..c673713 100644 --- a/systemd.spec +++ b/systemd.spec @@ -205,6 +205,7 @@ BuildRequires: bpftool %if 0%{?fedora} %ifarch x86_64 aarch64 +%global have_xen 1 # That package is only built for those two architectures BuildRequires: xen-devel %endif @@ -681,6 +682,7 @@ CONFIGURE_OPTS=( -Dlibiptc=false -Dlibcurl=true -Dlibfido2=true + -Dxenctrl=%{?have_xen:true}%{?!have_xen:false} -Defi=true -Dtpm=true -Dtpm2=true