From 91adfd5fe1b91a4321cb561707e50f5b410693a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20P=C3=A1ral?= Date: Fri, 5 May 2023 13:43:34 +0200 Subject: [PATCH] Prevent partial updates (rhbz#2193135) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is another attempt to prevent partial updates, where important mesa subpackages get desynchronized with mesa-dri-drivers, and things crash because of version mismatch. According to Michel Dänzer [1], libglapi and libgbm should always match in version to dri-drivers. So the conditional requirement was added there, and it will help guard dependants (e.g. libGL, libEGL) versions in the future. This is the Rawhide-version of PR 24 [2]. [1] https://bugzilla.redhat.com/show_bug.cgi?id=2187726#c4 [2] https://src.fedoraproject.org/rpms/mesa/pull-request/24 --- mesa.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mesa.spec b/mesa.spec index d80e3f1..d19eb6d 100644 --- a/mesa.spec +++ b/mesa.spec @@ -257,6 +257,10 @@ Summary: Mesa gbm runtime library Provides: libgbm Provides: libgbm%{?_isa} Recommends: %{name}-dri-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +# If mesa-dri-drivers are installed, they must match in version. This is here to prevent using +# older mesa-dri-drivers together with a newer mesa-libgbm and its dependants. +# See https://bugzilla.redhat.com/show_bug.cgi?id=2193135 . +Requires: (%{name}-dri-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} if %{name}-dri-drivers%{?_isa}) %description libgbm %{summary}. @@ -293,6 +297,10 @@ Provides: libxatracker-devel%{?_isa} Summary: Mesa shared glapi Provides: libglapi Provides: libglapi%{?_isa} +# If mesa-dri-drivers are installed, they must match in version. This is here to prevent using +# older mesa-dri-drivers together with a newer mesa-libglapi or its dependants. +# See https://bugzilla.redhat.com/show_bug.cgi?id=2193135 . +Requires: (%{name}-dri-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} if %{name}-dri-drivers%{?_isa}) %description libglapi %{summary}.