From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1ENPT0-0001P5-M7 for garchives@archives.gentoo.org; Thu, 06 Oct 2005 06:42:59 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j966Xf5Y015288; Thu, 6 Oct 2005 06:33:41 GMT Received: from grunt15.ihug.co.nz (grunt15.ihug.co.nz [203.109.254.62]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j966U6u1032190 for ; Thu, 6 Oct 2005 06:30:07 GMT Received: from 203-118-183-62.bliink.ihug.co.nz (otherland2) [203.118.183.62] by grunt15.ihug.co.nz with esmtp (Exim 3.35 #1 (Debian)) id 1ENPOp-0007nn-00; Thu, 06 Oct 2005 19:38:39 +1300 From: Glenn Enright To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Unable to calculate Linux Kernel version [New Thread] Date: Thu, 6 Oct 2005 06:42:15 +0000 User-Agent: KMail/1.8.1 References: <200510061717.59427.bogo-mipps@e3.net.nz> <20051006075027.31154bc6@mach.qrypto.org> <200510061911.32823.bogo-mipps@e3.net.nz> In-Reply-To: <200510061911.32823.bogo-mipps@e3.net.nz> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510060642.15708.elinar@ihug.co.nz> X-Archives-Salt: b8420462-c9db-44cd-8765-a510abf8a993 X-Archives-Hash: fc79a2a005cab925bed12c968e9e4266 Try this... ls -l /usr/src/linux uname -r these should give you the same version. If not you need to adjust the linux symlink to reflect the kernel version you are running. Then cd /usr/src/linux cp /boot/config-$(uname -r) ./ make oldconfig && make Now you should be able to do the emerges you wanted to. The point is to have your source tree in working condition, and findable, as opposed to clean. If you run different kernel versions often, try adding a few lines to /etc/conf.d/ like # -- quick hack to ease work of updating kernels and make emerges consistent # ebegin "Refreshing kernel source link to running kernel." rm -f /usr/src/linux if ! ln -s /usr/src/linux-$(uname -r) /usr/src/linux then ewarn " Bugger ... could not update. Please manually create the" ewarn " symbolic link '/usr/src/linux' to the running kernel source." ewend 1 fi # -- -- I think we are in Rats' Alley where the dead men lost their bones. -- T.S. Eliot -- gentoo-user@gentoo.org mailing list