Re: [ATrpms-users] Building nvidia 310 driver for Fedora 16 x86_64

Paulo Cavalcanti <[email protected]>
Newsgroups gmane.linux.redhat.rpm.atrpms.devel,gmane.linux.redhat.rpm.atrpms.general
Message-ID <CAMgUmnkqGa3YnePo+oDGWpYVm-2wUNgzqwV9xx5tXLow5eydKQ@mail.gmail.com>
On Sat, Nov 17, 2012 at 2:13 AM, O&M Ugarcina <[email protected]> wrote:

>
>
>> In each case, the path differs by the addition of
>> "nvidia-graphics-310.14" before the file being looked for.  Does anyone
>> have any idea how to either adjust the spec file or alter the way it looks
>> for these files?
>>
>> Thanks,
>>
>> George
>>
> Hello Guys,
>
> I am trying to package up the new 310.19 drivers for el6 64 bit and
> striking similar issue . I my case the stopping point is :
>
> + mv '/root/redhat/BUILDROOT/**nvidia-graphics310.19-310.19-**
> 151.el6.x86_64/usr/lib64/lib*.**so*' /root/redhat/BUILDROOT/nvidia-**
> graphics310.19-310.19-151.el6.**x86_64/usr/lib64/nvidia-**graphics-310.19/
>
> mv: cannot stat `/root/redhat/BUILDROOT/**nvidia-graphics310.19-310.19-**
> 151.el6.x86_64/usr/lib64/lib*.**so*': No such file or directory
> error: Bad exit status from /root/redhat/tmp/rpm-tmp.**6Hwirh (%install)
>
> In the previous version 304 , the compilation proceeded here like this :
>
> + mkdir -p /root/redhat/BUILDROOT/nvidia-**graphics304.64-304.64-150.el6.*
> *x86_64/usr/lib64/nvidia-**graphics-304.64
>
> + mv /root/redhat/BUILDROOT/nvidia-**graphics304.64-304.64-150.el6.**
> x86_64/usr/lib64/**libXvMCNVIDIA.so.304.64 /root/redhat/BUILDROOT/nvidia-*
> *graphics304.64-304.64-150.el6.**x86_64/usr/lib64/**libXvMCNVIDIA_dynamic.so
> /root/redhat/BUILDROOT/nvidia-**graphics304.64-304.64-150.el6.**
> x86_64/usr/lib64/**libXvMCNVIDIA_dynamic.so.1
> /root/redhat/BUILDROOT/nvidia-**graphics304.64-304.64-150.el6.**
> x86_64/usr/lib64/nvidia-**graphics-304.64/
>
> which is to move the libXvMCNVIDIA across to the new dir as this was the
> last lot of libs to move . However the new rev 310 do not contain this lib
> as we can see from the .run archive contents :
>
> -rwxr-xr-x. 1 root root 10220750 Oct 31 05:32 libcuda.so.304.64
> -rw-r--r--. 1 root root      652 Oct 31 06:06 libGL.la
> -rwxr-xr-x. 1 root root  1076560 Oct 31 05:18 libGL.so.304.64
> -rwxr-xr-x. 1 root root  8488456 Oct 31 05:20 libglx.so.304.64
> -rwxr-xr-x. 1 root root  2196224 Oct 31 06:05 libnvcuvid.so.304.64
> -rwxr-xr-x. 1 root root   144864 Oct 31 06:04 libnvidia-cfg.so.304.64
> -rwxr-xr-x. 1 root root 27749808 Oct 31 06:06 libnvidia-compiler.so.304.64
> -rwxr-xr-x. 1 root root 35453520 Oct 31 05:17 libnvidia-glcore.so.304.64
> -rwxr-xr-x. 1 root root   394280 Oct 31 06:05 libnvidia-ml.so.304.64
> -rwxr-xr-x. 1 root root  8628148 Oct 31 05:26 libnvidia-opencl.so.304.64
> -rwxr-xr-x. 1 root root    11704 Oct 31 05:20 libnvidia-tls.so.304.64
> -r-xr-xr-x. 1 root root   295416 Jul  6 04:35 libnvidia-wfb.so.304.64
> -rwxr-xr-x. 1 root root    21296 Oct 31 05:26 libOpenCL.so.1.0.0
> -rw-r--r--. 1 root root  1813064 Oct 31 05:20 libvdpau_nvidia.so.304.64
> -rwxr-xr-x. 1 root root     4704 Oct 31 05:20 libvdpau.so.304.64
> -rwxr-xr-x. 1 root root    46872 Oct 31 05:20 libvdpau_trace.so.304.64
> -rw-r--r--. 1 root root   233540 Oct 31 05:03 libXvMCNVIDIA.a
> -rwxr-xr-x. 1 root root   167000 Oct 31 05:03 libXvMCNVIDIA.so.304.64
>
>
>
> -rwxr-xr-x. 1 root root 10321518 Nov  8 20:29 libcuda.so.310.19
> -rw-r--r--. 1 root root      652 Nov  8 21:11 libGL.la
> -rwxr-xr-x. 1 root root  1099472 Nov  8 20:12 libGL.so.310.19
> -rwxr-xr-x. 1 root root  8623560 Nov  8 20:14 libglx.so.310.19
> -rwxr-xr-x. 1 root root  2358352 Nov  8 21:10 libnvcuvid.so.310.19
> -rwxr-xr-x. 1 root root   148960 Nov  8 21:09 libnvidia-cfg.so.310.19
> -rwxr-xr-x. 1 root root 27749808 Nov  8 21:11 libnvidia-compiler.so.310.19
> -rwxr-xr-x. 1 root root   131056 Nov  8 21:10 libnvidia-encode.so.310.19
> -rwxr-xr-x. 1 root root 36540016 Nov  8 20:11 libnvidia-glcore.so.310.19
> -rwxr-xr-x. 1 root root   394280 Nov  8 21:09 libnvidia-ml.so.310.19
> -rwxr-xr-x. 1 root root  8612212 Nov  8 20:21 libnvidia-opencl.so.310.19
> -rwxr-xr-x. 1 root root    11736 Nov  8 20:14 libnvidia-tls.so.310.19
> -r-xr-xr-x. 1 root root   295416 Nov 19  2010 libnvidia-wfb.so.310.19
> -rwxr-xr-x. 1 root root    21296 Nov  8 20:21 libOpenCL.so.1.0.0
> -rw-r--r--. 1 root root  1813064 Nov  8 20:15 libvdpau_nvidia.so.310.19
> -rwxr-xr-x. 1 root root     6304 Nov  8 20:15 libvdpau.so.310.19
> -rwxr-xr-x. 1 root root    46872 Nov  8 20:15 libvdpau_trace.so.310.19
>
> So this leaves us in a bit of a sticky situation . Specially as the
> specfile goes on to link these libs as per :
>
> mkdir -p %{buildroot}%{_x_libraries}/%{**NVfolder}
> mv %{buildroot}%{_x_libraries}/**lib*.so* %{buildroot}%{_x_libraries}/%{**
> NVfolder}/
> /sbin/ldconfig -n %{buildroot}%{_x_libraries}/%{**NVfolder}
> ln -s %{NVfolder}/libXvMCNVIDIA_**dynamic.so.1
> %{buildroot}%{_x_libraries}/**libXvMCNVIDIA.so
>
>
> We need to change this part , but not knowing what that lib did or if
> there is an equivalent , this becomes a trickier proposition . Any
> information welcomed on how to move on from this stalemate ..
>
> Best Regards
>
> Milorad
>
>
First of all, if you define a macro (tcsh):

alias   reval           'rpm --eval "%{\!*}"'

and,

[cascavel:~/RPMS174/updates] reval %{_x_libraries}
%{/usr/lib64}

will expand the spec macros, so you know the real paths.

Then, you need to see what is being installed in
~/redhat/BUILD and ~/redhat/BUILDROOT
and try to fix the spec accordingly ....


-- 
Paulo Roma Cavalcanti
DCC - UFRJ
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.