nVidia drivers and rawhide

Jeff Spaleta jspaleta at gmail.com
Thu May 19 21:43:57 UTC 2005


On 5/19/05, Paul <paul at all-the-johnsons.co.uk> wrote:
> What is the best way for me to do this? I know I will need to recompile
> whenever I change kernel, but is there a way that I can use the livna
> python script to ensure I use the correct xorg.conf file and recompile
> against the new kernel modules using the either the livna src rpms or
> the nVidia builder while still using a different kernel?

0) do not mix the livna rpms with nvidia's installer
1) its very easy to use livna's srpm to rebuild a new kernel module 
2) do not mix the livna rpms with nvidia's installer
3) example using nvidia-glx-1.0.7174-0.lvn.1.3.src.rpm  from livna
    assuming kernel-smp-2.6.11-1.1319_FC4 and kernel-smp-devel-2.6.11-1.1319_FC4
    are installed  on an smp athlon:
    rpmbuild --rebuild --target i686 --define "kernel
2.6.11-1.1315_FC4smp" nvidia-glx-1.0.7174-0.lvn.1.3.src.rpm
(that should be one line but of course email is going to line wrap that)
4) do not mix the livna rpms with nvidia's installer
5) that rebuild command will create
    nvidia-glx-1.0.7174-0.lvn.1.3.i686.rpm
    kernel-module-nvidia-2.6.11-1.1315_FC4smp-1.0.7174-0.lvn.1.3.i686.rpm
    nvidia-glx-devel-1.0.7174-0.lvn.1.3.i686.rpm
6) do not mix the livna rpms with nvidia's installer
7) all you need to do is install the new kernel-module-nvidia package
that was built
    rpm -ivh kernel-module-nvidia-2.6.11-1.1315_FC4smp-1.0.7174-0.lvn.1.3.i686.rpm
8) repeat as needed when a new kernel and kernel-devel package is
installed before you
    reboot into the new kernel.

Appendix A)
Always avoid rebuilding packages as root. I STRONGLY suggest you
create a rpmbuild directory structure in a normal user's home
directory, and use that normal user as the build user for any rpm
building that you do.
For example on my system  my rpmbuild directory tree looks like:
tree -d /home/builduser/rpmbuild/
  |-- BUILD
  |-- RPMS
  |   |-- athlon
  |   |-- i386
  |   |-- i686     --> In the above example this is where the built
rpms end up on my system
  |   `-- noarch
  |-- SOURCES
  |-- SPECS
  `-- SRPMS -> good place to keep the srpms you want to rebuild like
the nvidia-glx srpm

And to make use of that rpmbuild dirtree  you need an .rpmmacros file
in the build user's homedirectory that looks like this:
cat /home/builduser/.rpmmacros:
%_topdir      %(echo $HOME)/rpmbuild

additionally you might want this macros in your .rpmmacros file as well
%_smp_mflags  -j3
%debug_package %{nil}



-jef"did i mention you shouldn't mix livna's rpms with nvidia's
installer?"spaleta




More information about the fedora-test-list mailing list