From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27562 invoked by uid 1002); 21 Oct 2003 16:25:36 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 13201 invoked from network); 21 Oct 2003 16:25:36 -0000 Date: Tue, 21 Oct 2003 18:25:33 +0200 From: Thomas de Grenier de Latour To: gentoo-dev@gentoo.org Message-Id: <20031021182533.6a1246fe.degrenier@easyconnect.fr> In-Reply-To: <200310210839.55102.cbrewer@stealthaccess.net> References: <4866.146.176.63.67.1066740482.squirrel@mail.codewordt.co.uk> <200310210858.29541.vapier@gentoo.org> <200310210839.55102.cbrewer@stealthaccess.net> Organization: Fasmz X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [gentoo-dev] USE Linux 2.6.x X-Archives-Salt: 608d7823-4033-4dfd-8d2c-b9e426ad925d X-Archives-Hash: 88708779240d7abee64f7ab3f7a71b91 On Tue, 21 Oct 2003 08:39:54 -0700 "C. Brewer" wrote: > On Tuesday 21 October 2003 5:58, Mike Frysinger wrote: > > On Tuesday 21 October 2003 08:48, Dhruba Bandopadhyay wrote: > > > How must a package determine what kernel is system is using? > > > > it uses the /usr/src/linux symlink to determine running kernel ... Not exactly the _running_ kernel, but the _target_ kernel. > But why do we keep up with the obselete link? Because it is useful to be able to compile modules for a target kernel that may be different than the running kernel, and a symlink is a good way to point the target of your choice. > So we still have link climbing even though we have the linux-headers > package which is supposed to prevent just that... I don't see how system headers are related to modules compilation. The flameable symlink is the /usr/include/linux, but it's a different issue. It is something that on some other distros points on kernel includes from kernel sources, but as you said, on Gentoo, we have a linux-headers package and a real directory, so we do things the right way. Now, about /usr/src/linux-beta, I don't neither understand its semantics or usefulness. Obviously, /usr/src/linux is the way to go also for 2.6 kernels, at least that's what is assumed in modules ebuilds, so I usually just delete linux-beta or ignore it. -- TGL. -- gentoo-dev@gentoo.org mailing list