From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E04A11388B8 for ; Wed, 6 Feb 2013 16:27:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6866521C02C; Wed, 6 Feb 2013 16:26:53 +0000 (UTC) Received: from nm23.access.bullet.mail.mud.yahoo.com (nm23.access.bullet.mail.mud.yahoo.com [66.94.237.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AAC7921C006 for ; Wed, 6 Feb 2013 16:26:51 +0000 (UTC) Received: from [66.94.237.200] by nm23.access.bullet.mail.mud.yahoo.com with NNFMP; 06 Feb 2013 16:26:50 -0000 Received: from [98.138.84.214] by tm11.access.bullet.mail.mud.yahoo.com with NNFMP; 06 Feb 2013 16:26:50 -0000 Received: from [127.0.0.1] by smtp103.sbc.mail.ne1.yahoo.com with NNFMP; 06 Feb 2013 16:26:50 -0000 X-Yahoo-Newman-Id: 632447.28306.bm@smtp103.sbc.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: wDwCY3IVM1lHw9K4kDAEz6X4ls_szqfuTg3ysbkxUa3Jgft 0LiUvX_tvj.ypjO9FTAVMJ6ubAfIwlk5M1LF3z0sEYS56ehxMdfGpiVJj1cF 4kwmfX_U4y8d4JYzWCSOvYqLkt9i3eThIgWYTU8kSxKObHeQIJddwHiT.L6x ZXAfPO6Zsau1Uyr0J7cR8O51mAP2uOrXOMw9tDyo7AEdNPtwjiHYDQzqkhVE 8lwm_B8qHnEsUZEnL_VV5YGGitMHr67ud1DFbweYc8Z.bmhGAIM.bZX99xl1 bc_rcahHpEX_Ieeh7ppdyKYeiWud06ff5hVRZ8n2xS4Ic52MvLU_EyxwTeTB 63tETMI1UXzqK6RRemfIUu3lyi9xX0Jqo6AeqJzutae_jpllvfLZ9.1l2sp9 uoD_0l79wSmAqEhI9xwMYhNtmsv28uxDGbb4WvOYXwTy.YSS4hleDFZXK7Ni ZPWrTkAy.KjZ6IgP66xcQGqkQCoGO4k.osjyMEaqcVRzRbWqxn3gMeQVe1cI iExdqlyvw3HSMxOMvOeNOdz8berTDFsmauZ1AVbYPF5ohuC65hYfadjbm63_ rPreDp3k9VmlhbkTF.HM3Iq5D3hIwJ1q7eB.lLOyJiSKr31ze6D6uW7UfByO AUemTO4nbATQl_mwZG91W4PvT_t3RfXeJjsltLyvq241eTC6BRpk.GtU- X-Yahoo-SMTP: oM3WcDSswBC7zv73TQKEsi7eAZ0- Received: from [192.168.1.2] (w41ter@69.234.188.123 with plain) by smtp103.sbc.mail.ne1.yahoo.com with SMTP; 06 Feb 2013 16:26:50 +0000 UTC Message-ID: <5112844A.6080902@gmail.com> Date: Wed, 06 Feb 2013 08:26:50 -0800 From: walt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20130117 Thunderbird/19.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Re: nvidia-drivers fail to determine kernel version References: <20130205145629.GA10531@solfire> <51117737.3020406@gmail.com> <20130206045709.GA3192@solfire> In-Reply-To: <20130206045709.GA3192@solfire> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 795d9803-ffc9-4491-9922-6ac4e29d74f1 X-Archives-Hash: 7c9da0a7bc28cc164954cea86c00818d On 02/05/2013 08:57 PM, meino.cramer@gmx.de wrote: > walt [13-02-06 04:51]: >> On 02/05/2013 06:56 AM, meino.cramer@gmx.de 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).