fix for removal of alternatives overwriting symlinks belonging to libglvnd [release 340.108-8mamba;Sun Apr 25 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 07:46:50 +01:00
parent 2fcf4da333
commit 2f706e269f

View File

@ -2,7 +2,7 @@
Name: nvidia_340 Name: nvidia_340
Version: 340.108 Version: 340.108
Epoch: 1 Epoch: 1
Release: 7mamba Release: 8mamba
Summary: NVIDIA proprietary accelerated drivers for the Linux Kernel Summary: NVIDIA proprietary accelerated drivers for the Linux Kernel
Group: System/Kernel and Hardware Group: System/Kernel and Hardware
Vendor: openmamba Vendor: openmamba
@ -265,6 +265,14 @@ if [ $1 -eq 0 ]; then
fi 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} %files -n xorg-drv-video-%{name}
%defattr(-,root,root) %defattr(-,root,root)
#%{_sysconfdir}/profile.d/nvidia-clutter.sh #%{_sysconfdir}/profile.d/nvidia-clutter.sh
@ -303,6 +311,9 @@ fi
%doc current/{NVIDIA_Changelog,README.txt} current/html %doc current/{NVIDIA_Changelog,README.txt} current/html
%changelog %changelog
* Sun Apr 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 340.108-8mamba
- fix for removal of alternatives overwriting symlinks belonging to libglvnd
* Fri Apr 23 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 340.108-7mamba * Fri Apr 23 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 340.108-7mamba
- repackaged with libglvnd and libmesa layout - repackaged with libglvnd and libmesa layout