From 433efb38f49a016733c805b2dba914c39ed99ec8 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Dec 04 2024 10:38:32 +0000 Subject: Only apply the new Recommends in fedora Our mkosi.conf.d/10-centos-fedora/mkosi.prepare script tries to install the soft dependencies too. The build fails in centos 9 and 10: Error: Unable to find a match: qemu-device-display-virtio-gpu qemu-device-display-virtio-vga [skip changelog] --- diff --git a/systemd.spec b/systemd.spec index 97b40e3..716b31a 100644 --- a/systemd.spec +++ b/systemd.spec @@ -542,8 +542,10 @@ Requires(preun): systemd%{_isa} = %{version}-%{release} Requires(postun): systemd%{_isa} = %{version}-%{release} # For systemd-vmspawn which uses qemu: Recommends: qemu-kvm-core +%if 0%{?fedora} Recommends: qemu-device-display-virtio-gpu Recommends: qemu-device-display-virtio-vga +%endif # Obsolete parent package so that dnf will install new subpackage on upgrade (#1260394) Obsoletes: %{name} < 229-5 # Bias the system towards libcurl-minimal if nothing pulls in full libcurl (#1997040)