public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "C. Brewer" <cbrewer@stealthaccess.net>
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] USE Linux 2.6.x
Date: Tue, 21 Oct 2003 10:44:36 -0700	[thread overview]
Message-ID: <200310211044.48299.cbrewer@stealthaccess.net> (raw)
In-Reply-To: <20031021182533.6a1246fe.degrenier@easyconnect.fr>

[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 2922 bytes --]

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 running 
kernel are likely on the same machine, and the current state of modules in 
portage IIRC isn't allowing the duplication of external modules packages, why 
not just be booted into the one you're making modules for? You're gonna end 
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, 
was Mike's example of how the nvidia-modules package determined the running 
kernel. The original question was how does a package(generic) determine the 
running kernel. While I agree that there are some issues with the modules 
packages that should be handled differently, no package that doesn't provide 
modules should care what kernel you're running. But there are still a few 
packages in the tree that are using that /usr/src/linux symlink to get at 
includes (iproute2 until a while back, plex86 indirectly now,fex.) A nice 
solution for the modules packages might be to allow them to slot to the 
kernel version similar to the way you can specify USE, eg. SLOT="2.6.0-test8" 
emerge nvidia-modules and have it install the modules in /lib/${SLOT}/ (keep 
in mind, I have no idea how the nvidia-modules ebuild looks, thats just a 
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 
Linus -
" I would suggest that people who compile new kernels should:
- 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, 
because my /home is pretty full...
-- 
Chuck Brewer
Registered Linux User #284015
Get my gpg public key at pgp.mit.edu!! Encrypted e-mail preferred.



[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-10-21 17:44 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-21 12:48 [gentoo-dev] USE Linux 2.6.x Dhruba Bandopadhyay
2003-10-21 12:58 ` Mike Frysinger
2003-10-21 15:39   ` C. Brewer
2003-10-21 16:25     ` Thomas de Grenier de Latour
2003-10-21 17:44       ` C. Brewer [this message]
2003-10-21 20:15         ` Grant Goodyear
2003-10-22  3:11           ` C. Brewer
2003-10-21 20:53         ` Martin Schlemmer
2003-10-21 22:25         ` Spider
2003-10-22  3:44           ` C. Brewer
2003-10-22  8:15             ` Chris Smith
2003-10-22  8:17             ` Paul de Vrieze
2003-10-22 18:27               ` C. Brewer
2003-10-22 18:46                 ` Brian Jackson
2003-10-22 19:23                 ` Paul de Vrieze
2003-10-22 19:47                   ` C. Brewer
2003-10-22 20:06                     ` Spider
2003-10-22 10:40             ` Spider
2003-10-22 18:07               ` C. Brewer
2003-10-22 19:01                 ` Spider
2003-10-22 11:20           ` Patrick Lauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200310211044.48299.cbrewer@stealthaccess.net \
    --to=cbrewer@stealthaccess.net \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox