From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8332 invoked by uid 1002); 21 Oct 2003 17:44:42 -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 8480 invoked from network); 21 Oct 2003 17:44:42 -0000 From: "C. Brewer" To: gentoo-dev@gentoo.org Date: Tue, 21 Oct 2003 10:44:36 -0700 User-Agent: KMail/1.5.4 References: <4866.146.176.63.67.1066740482.squirrel@mail.codewordt.co.uk> <200310210839.55102.cbrewer@stealthaccess.net> <20031021182533.6a1246fe.degrenier@easyconnect.fr> In-Reply-To: <20031021182533.6a1246fe.degrenier@easyconnect.fr> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_QCXl/bS0bs/MNjX"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200310211044.48299.cbrewer@stealthaccess.net> Subject: Re: [gentoo-dev] USE Linux 2.6.x X-Archives-Salt: 93f0b5ef-0441-4cba-a7dd-0abf22d91ace X-Archives-Hash: 9a13017aaa7d364bcf28f185023e8cc6 --Boundary-02=_QCXl/bS0bs/MNjX Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline On Tuesday 21 October 2003 9:25, Thomas de Grenier de Latour wrote: > 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. Sure, that's an excellent point, but since the target kernel and the runnin= g=20 kernel are likely on the same machine, and the current state of modules in= =20 portage IIRC isn't allowing the duplication of external modules packages, w= hy=20 not just be booted into the one you're making modules for? You're gonna end= =20 up rebooting either way eventually... > 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. The only modules discussion so far, other than what you recently brought up= ,=20 was Mike's example of how the nvidia-modules package determined the running= =20 kernel. The original question was how does a package(generic) determine the= =20 running kernel. While I agree that there are some issues with the modules=20 packages that should be handled differently, no package that doesn't provid= e=20 modules should care what kernel you're running. But there are still a few=20 packages in the tree that are using that /usr/src/linux symlink to get at=20 includes (iproute2 until a while back, plex86 indirectly now,fex.) A nice=20 solution for the modules packages might be to allow them to slot to the=20 kernel version similar to the way you can specify USE, eg. SLOT=3D"2.6.0-te= st8"=20 emerge nvidia-modules and have it install the modules in /lib/${SLOT}/ (kee= p=20 in mind, I have no idea how the nvidia-modules ebuild looks, thats just a=20 general example). I also realize the main flameable link was the /usr/ include/{linux|asm} link pointing back to the kernel sources, but to quote= =20 Linus - " I would suggest that people who compile new kernels should: =2D NOT do so in /usr/src. Leave whatever kernel (probably only the header files) that the distribution came with there, but don't touch it. - compile the kernel in their own home directory, as their very own selves. No need to be root to compile the kernel. You need to be root to _install_ the kernel, but that's different. - not have a single symbolic link in sight (except the one that the kernel build itself sets up, namely the "linux/include/asm" symlink that is only used for the internal kernel compile itself)" 1,2,3 things that haven't been done yet.. Personally I compile mine in /opt= ,=20 because my /home is pretty full... =2D-=20 Chuck Brewer Registered Linux User #284015 Get my gpg public key at pgp.mit.edu!! Encrypted e-mail preferred. --Boundary-02=_QCXl/bS0bs/MNjX Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/lXCPGmszwkJY878RAtuQAJ0bbBwlZx2yFJLkd643vrcBB5R7igCg1dm4 n+n/bviCXunk4fwiI2mrywg= =3lRP -----END PGP SIGNATURE----- --Boundary-02=_QCXl/bS0bs/MNjX--