From bda4c07de8ddbe64232715eae5ba68cafab92f47 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 28 Aug 2024 11:57:41 +0200 Subject: [PATCH] Always build ukify package Even on non-uefi architectures, ukify can be used to build UKIs for UEFI images. For example, mkosi can use it to build UKIs on s390x. To enable this use case, let's always build ukify, but with a conditional dependency on systemd-boot only on arches that support UEFI. (cherry picked from commit a67221c3f0d0b81b9b5b3230a71d09044342f1a4) Resolves: RHEL-56019 --- systemd.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/systemd.spec b/systemd.spec index 6767a07..955c923 100644 --- a/systemd.spec +++ b/systemd.spec @@ -1356,7 +1356,15 @@ machines and in virtual machines, but not in containers. Summary: Tool to build Unified Kernel Images Requires: %{name} = %{version}-%{release} -Requires: systemd-boot +Requires: (systemd-boot if %{shrink:( + filesystem(x86-32) or + filesystem(x86-64) or + filesystem(aarch64) or + filesystem(riscv64) +)}) +%if 0%{?fedora} +Requires: python3dist(zstd) +%endif Requires: python3dist(cryptography) Requires: python3dist(pefile)