Remove prelink

el9
leigh123linux 8 years ago committed by Nicolas Chauvet
parent 2e89ed6cc1
commit 5eb4709017

@ -361,10 +361,6 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d
install -pm 0644 %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/nvidia.conf install -pm 0644 %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/nvidia.conf
%endif %endif
#Avoid prelink to mess with nvidia libs - rfbz#3258
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d
touch $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d/nvidia-%{_lib}.conf
#Install the initscript #Install the initscript
tar jxf nvidia-persistenced-init.tar.bz2 tar jxf nvidia-persistenced-init.tar.bz2
%if 0%{?rhel} > 6 || 0%{?fedora} >= 15 %if 0%{?rhel} > 6 || 0%{?fedora} >= 15
@ -407,11 +403,6 @@ if [ "$1" -eq "1" ]; then
fi fi
fi fi
%pre libs
if [ -d %{_sysconfdir}/prelink.conf.d ]; then
echo "-b %{_nvidia_libdir}" > %{_sysconfdir}/prelink.conf.d/nvidia-%{_lib}.conf
fi
%post %post
/sbin/ldconfig /sbin/ldconfig
if [ "$1" -eq "1" ]; then if [ "$1" -eq "1" ]; then
@ -569,7 +560,6 @@ fi ||:
%dir %{_nvidia_libdir} %dir %{_nvidia_libdir}
%dir %{_nvidia_libdir}/tls %dir %{_nvidia_libdir}/tls
%endif %endif
%ghost %{_sysconfdir}/prelink.conf.d/nvidia-%{_lib}.conf
%{_nvidia_libdir}/alternate-install-present %{_nvidia_libdir}/alternate-install-present
%{_nvidia_libdir}/*.so.* %{_nvidia_libdir}/*.so.*
%if 0%{?rhel} %if 0%{?rhel}

Loading…
Cancel
Save