install libglx.so out of xorg/modules tree for server to pick right alternative [release 1.15.2-7mamba;Sat May 23 2015]

This commit is contained in:
Silvan Calarco 2024-01-05 19:48:57 +01:00
parent 46ec1715c7
commit 730b5814b7

View File

@ -1,6 +1,6 @@
Name: xorg-server
Version: 1.15.2
Release: 6mamba
Release: 7mamba
Summary: The core of the X.Org Foundation implementation of the X Window system
Group: System/X11
Vendor: openmamba
@ -161,9 +161,9 @@ install -m 755 %{SOURCE11} %{buildroot}%{_sysconfdir}/xprofile
install hw/xfree86/parser/xf86Parser.h %{buildroot}%{_includedir}/xorg/
install hw/xfree86/parser/xf86Optrec.h %{buildroot}%{_includedir}/xorg/
install -d -m0755 %{buildroot}%{_libdir}/xorg/modules/glx-dri
install -d -m0755 %{buildroot}%{_libdir}/xorg/glx-dri
mv %{buildroot}%{_libdir}/xorg/modules/extensions/libglx.so \
%{buildroot}%{_libdir}/xorg/modules/glx-dri/libglx.so
%{buildroot}%{_libdir}/xorg/glx-dri/libglx.so
#mv %{buildroot}%{_libdir}/xorg/modules/extensions/libdri.so \
# %{buildroot}%{_libdir}/xorg/modules/extensions/libdri_so
@ -198,17 +198,21 @@ exit 0
--remove libglx.so %{_libdir}/xorg/modules/extensions/libglx_dri_so 2>/dev/null
/usr/sbin/update-alternatives \
--remove libglx.so %{_libdir}/xorg/modules/extensions/dri/libglx.so 2>/dev/null
/usr/sbin/update-alternatives \
--remove libglx.so %{_libdir}/xorg/modules/extensions/glx-dri/libglx.so 2>/dev/null
/usr/sbin/update-alternatives \
--remove libglx.so %{_libdir}/xorg/modules/glx-dri/libglx.so 2>/dev/null
/usr/sbin/update-alternatives \
--install %{_libdir}/xorg/modules/extensions/libglx.so libglx.so \
%{_libdir}/xorg/modules/glx-dri/libglx.so 50
%{_libdir}/xorg/glx-dri/libglx.so 50
#/usr/sbin/update-alternatives \
# --install %{_libdir}/xorg/modules/extensions/libdri.so libdri.so \
# %{_libdir}/xorg/modules/extensions/libdri_so 50
[ -e `readlink /etc/alternatives/libglx.so` ] || {
/usr/sbin/update-alternatives --set libglx.so %{_libdir}/xorg/modules/glx-dri/libglx.so
/usr/sbin/update-alternatives --set libglx.so %{_libdir}/xorg/glx-dri/libglx.so
}
exit 0
@ -220,6 +224,8 @@ if [ $1 -eq 0 ]; then
%{_libdir}/xorg/modules/extensions/dri/libglx.so
/usr/sbin/update-alternatives --remove libglx.so \
%{_libdir}/xorg/modules/glx-dri/libglx.so
/usr/sbin/update-alternatives --remove libglx.so \
%{_libdir}/xorg/glx-dri/libglx.so
/usr/sbin/update-alternatives --remove libdri.so \
%{_libdir}/xorg/modules/extensions/libdri_so
fi
@ -293,10 +299,13 @@ exit 0
%defattr(-,root,root)
%dir %{_libdir}/xorg/modules/extensions
%{_libdir}/xorg/modules/extensions/libglx.la
%dir %{_libdir}/xorg/modules/glx-dri
%{_libdir}/xorg/modules/glx-dri/libglx.so
%dir %{_libdir}/xorg/glx-dri
%{_libdir}/xorg/glx-dri/libglx.so
%changelog
* Sat May 23 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.15.2-7mamba
- install libglx.so out of xorg/modules tree for server to pick right alternative
* Sat Dec 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.15.2-6mamba
- move libglx.so out for /extensions subdir or it gets preferred as opposite of what we want