Use only newer ELF TLS implementation

Supported since kernel 2.3.99 (pre RHEL 4).
el9
Simone Caronni 8 years ago committed by Nicolas Chauvet
parent b12cb9fe93
commit eb953bcfc2

@ -23,7 +23,7 @@
Name: xorg-x11-drv-nvidia Name: xorg-x11-drv-nvidia
Epoch: 1 Epoch: 1
Version: 375.39 Version: 375.39
Release: 4%{?dist} Release: 5%{?dist}
Summary: NVIDIA's proprietary display driver for NVIDIA graphic cards Summary: NVIDIA's proprietary display driver for NVIDIA graphic cards
License: Redistributable, no modification permitted License: Redistributable, no modification permitted
@ -68,7 +68,7 @@ Requires: which
Requires: %{_nvidia_serie}-kmod >= %{?epoch}:%{version} Requires: %{_nvidia_serie}-kmod >= %{?epoch}:%{version}
Requires: %{name}-libs%{?_isa} = %{?epoch}:%{version}-%{release} Requires: %{name}-libs%{?_isa} = %{?epoch}:%{version}-%{release}
%if 0%{?fedora} >= 25 %if 0%{?fedora} >= 25
# filesystem is needed as we don't own %%{_libdir} or %%{_libdir}/tls # filesystem is needed as we don't own %%{_libdir}
Requires: filesystem Requires: filesystem
Requires: xorg-x11-server-Xorg%{?_isa} >= 1.19.0-3 Requires: xorg-x11-server-Xorg%{?_isa} >= 1.19.0-3
%endif %endif
@ -223,8 +223,8 @@ rm libEGL.so*
install -m 0755 -d $RPM_BUILD_ROOT%{_nvidia_libdir} install -m 0755 -d $RPM_BUILD_ROOT%{_nvidia_libdir}
install -p -m 0755 lib*.so.%{version} $RPM_BUILD_ROOT%{_nvidia_libdir}/ install -p -m 0755 lib*.so.%{version} $RPM_BUILD_ROOT%{_nvidia_libdir}/
%ifarch x86_64 i686 %ifarch x86_64 i686
install -m 0755 -d $RPM_BUILD_ROOT%{_nvidia_libdir}/tls/ # Use only newer ELF TLS implementation
install -p -m 0755 tls/lib*.so.%{version} $RPM_BUILD_ROOT%{_nvidia_libdir}/tls/ install -p -m 0755 tls/lib*.so.%{version} $RPM_BUILD_ROOT%{_nvidia_libdir}/
%endif %endif
# GlVND # GlVND
@ -552,7 +552,6 @@ fi ||:
%if 0%{?rhel} > 6 || 0%{?fedora} <= 24 %if 0%{?rhel} > 6 || 0%{?fedora} <= 24
%config %{_sysconfdir}/ld.so.conf.d/nvidia-%{_lib}.conf %config %{_sysconfdir}/ld.so.conf.d/nvidia-%{_lib}.conf
%dir %{_nvidia_libdir} %dir %{_nvidia_libdir}
%dir %{_nvidia_libdir}/tls
%endif %endif
%{_nvidia_libdir}/alternate-install-present %{_nvidia_libdir}/alternate-install-present
%{_nvidia_libdir}/*.so.* %{_nvidia_libdir}/*.so.*
@ -569,7 +568,6 @@ fi ||:
%ifarch x86_64 i686 %ifarch x86_64 i686
%exclude %{_nvidia_libdir}/libnvidia-compiler.so* %exclude %{_nvidia_libdir}/libnvidia-compiler.so*
%exclude %{_nvidia_libdir}/libnvidia-opencl.so* %exclude %{_nvidia_libdir}/libnvidia-opencl.so*
%{_nvidia_libdir}/tls/*.so.*
%endif %endif
%{_libdir}/vdpau/libvdpau_nvidia.so.* %{_libdir}/vdpau/libvdpau_nvidia.so.*
@ -607,9 +605,6 @@ fi ||:
%files devel %files devel
%{_includedir}/nvidia/ %{_includedir}/nvidia/
%ifarch x86_64 i686
%{_nvidia_libdir}/tls/libnvidia-tls.so
%endif
%{_libdir}/vdpau/libvdpau_nvidia.so %{_libdir}/vdpau/libvdpau_nvidia.so
%{_nvidia_libdir}/libnvidia-ifr.so %{_nvidia_libdir}/libnvidia-ifr.so
%{_nvidia_libdir}/libEGL_nvidia.so %{_nvidia_libdir}/libEGL_nvidia.so
@ -627,6 +622,10 @@ fi ||:
%{_nvidia_libdir}/libGLX_nvidia.so %{_nvidia_libdir}/libGLX_nvidia.so
%changelog %changelog
* Thu Mar 02 2017 Simone Caronni <negativo17@gmail.com> - 1:375.39-5
- Use only newer ELF TLS implementation, supported since kernel 2.3.99 (pre RHEL
4).
* Thu Mar 02 2017 Simone Caronni <negativo17@gmail.com> - 1:375.39-4 * Thu Mar 02 2017 Simone Caronni <negativo17@gmail.com> - 1:375.39-4
- Remove OpenCL loader, RPM filters and ownership of loader configuration. - Remove OpenCL loader, RPM filters and ownership of loader configuration.
- Require OpenCL filesystem and loader library. - Require OpenCL filesystem and loader library.

Loading…
Cancel
Save