From 2e32a339a10caad9392a7049bccfd1c4cd7c24cc Mon Sep 17 00:00:00 2001 From: David Tardon Date: Mar 20 2024 10:01:27 +0000 Subject: Make Requires(*) on systemd versioned Most systemd tools run from scriptlets need libsystemd-shared-X.so (from systemd package), which contains version and release in it's name. Therefore, the same version of systemd package must be already installed when they run. Resolves: #2282821 --- diff --git a/systemd.spec b/systemd.spec index 159b38c..2bebda2 100644 --- a/systemd.spec +++ b/systemd.spec @@ -364,9 +364,9 @@ Summary: Rule-based device node and kernel event manager License: LGPL-2.1-or-later Requires: systemd%{_isa} = %{version}-%{release} -Requires(post): systemd -Requires(preun): systemd -Requires(postun): systemd +Requires(post): systemd%{_isa} = %{version}-%{release} +Requires(preun): systemd%{_isa} = %{version}-%{release} +Requires(postun): systemd%{_isa} = %{version}-%{release} Requires(post): grep Requires: kmod >= 18-4 # https://bodhi.fedoraproject.org/updates/FEDORA-2020-dd43dd05b1 @@ -470,9 +470,9 @@ the version that works with Secure Boot. # Name is the same as in Debian Summary: Tools for containers and VMs Requires: %{name}%{_isa} = %{version}-%{release} -Requires(post): systemd -Requires(preun): systemd -Requires(postun): systemd +Requires(post): systemd%{_isa} = %{version}-%{release} +Requires(preun): systemd%{_isa} = %{version}-%{release} +Requires(postun): systemd%{_isa} = %{version}-%{release} # 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)