On 02/05/2013 08:57 PM, [email protected] wrote: > walt <[email protected]> [13-02-06 04:51]: >> On 02/05/2013 06:56 AM, [email protected] wrote: >>> Hi, >>> >>> when using vanilla kernel 3.7.5 (appropiate kernel headers installed) >>> emergeing nvidia-drivers 313.18 works fine. >>> As soon vanilla kernel 3.7.6 are installed the emerge process fails >>> because the kernel version couldnt be determined. >> >> Every time Linus changes his underwear the nvidia installer forgets how >> to find the kernel version :( Rafaele Belardi posted a link here on >> Jan 29 to a patch on the nvidia website. If you can't make it work >> I'll post more details tomorrow. >> >> > > Hi, > > thanks for your reply, walt! :) > > What I found based on your mail are patches against different > nvidia-drivers and different kernel version than I am using to get > this running... > I tried the symlink include/linux -> include/uapi/linux mentioned > here: > https://devtalk.nvidia.com/default/topic/525935/linux/please-update-310-xx-drivers-for-linux-3-7-3-8-compatibility/2/ > after the kernel was build, but ths doesnt help.
I can think of two (obnoxious) things I would try next: first, install both versions of the kernel sources and then use diff -r to find all the changes in the 'include' subdirectory (that's always where nvidia trips over its own feet) then look for the ones that nividia uses to find the kernel version. Second, I usually add 'set -x' near the top of the 'conftest.sh' script that nvidia uses to find the kernel version, which results in a lot of debugging info to be printed when the installer runs. I edit the script in /var/tmp/portage/xorg-drivers/nvidia-xxx/kernel/ after the installer dies and then just type 'make module install' (which normally will do what you want if/when the installer isn't broken).

