From 2f706e269fda390322541f21b7d7049de1dc9238 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:46:50 +0100 Subject: [PATCH] fix for removal of alternatives overwriting symlinks belonging to libglvnd [release 340.108-8mamba;Sun Apr 25 2021] --- nvidia_340.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/nvidia_340.spec b/nvidia_340.spec index 5f6a605..abb1e7b 100644 --- a/nvidia_340.spec +++ b/nvidia_340.spec @@ -2,7 +2,7 @@ Name: nvidia_340 Version: 340.108 Epoch: 1 -Release: 7mamba +Release: 8mamba Summary: NVIDIA proprietary accelerated drivers for the Linux Kernel Group: System/Kernel and Hardware Vendor: openmamba @@ -265,6 +265,14 @@ if [ $1 -eq 0 ]; then fi : +%triggerpostun -n xorg-drv-video-%{name} -- xorg-drv-video-%{name} < 1:340.108-8mamba +# /bin and /sbin are removed during old filesystem postun +# Fixes for removal of alternatives overwriting symlinks belonging to libglvnd +[ "`readlink -f %{_libdir}/libGL.so.1`" = "%{_libdir}/libGL.so.340.108" ] && ln -sf libGL.so.1.7.0 %{_libdir}/libGL.so.1 +[ "`readlink -f %{_libdir}/libEGL.so.1`" = "%{_libdir}/libEGL.so.340.108" ] && ln -sf libEGL.so.1.1.0 %{_libdir}/libEGL.so.1 +[ "`readlink -f %{_libdir}/libGLESv2.so.2`" = "%{_libdir}/libGLESv2.so.340.108" ] && ln -sf libGLESv2.so.2.1.0 %{_libdir}/libGLESv2.so.2 +: + %files -n xorg-drv-video-%{name} %defattr(-,root,root) #%{_sysconfdir}/profile.d/nvidia-clutter.sh @@ -303,6 +311,9 @@ fi %doc current/{NVIDIA_Changelog,README.txt} current/html %changelog +* Sun Apr 25 2021 Silvan Calarco 340.108-8mamba +- fix for removal of alternatives overwriting symlinks belonging to libglvnd + * Fri Apr 23 2021 Silvan Calarco 340.108-7mamba - repackaged with libglvnd and libmesa layout