public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sami Näätänen" <sn.ml@bayminer.com>
To: Gentoo-Dev <gentoo-dev@gentoo.org>
Subject: Re: [gentoo-dev] Speaking of new kernels being added to the tree
Date: Sun, 5 Oct 2003 21:24:27 +0300	[thread overview]
Message-ID: <200310052124.27749.sn.ml@bayminer.com> (raw)

On Sunday 05 October 2003 18:53, Luke-Jr wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sunday 05 October 2003 02:47 pm, Jason Stubbs wrote:
> > > I although don't suggest that -src
> > > suffix, but an option to the emerge, which tells it to install
> > > this software to package's SLOT="$P-src", from which I then could
> > > be looking in $PORT_SRC_DIR/$P-src.
> >
> > Agreed here. An option to emerge is much more intuitive.
>
> However, it prevents packages from DEPENDing on it. For example, if
> the kernels were to ever use the genkernel thing, nvidia-kernel might
> DEPEND on nvidia-kernel if it actually needed the source for it. I
> also don't think it should automaticly provide the package it is the
> source for until the user uses ebuild to install/merge it into the
> system.

Those modules can only be compiled to kernels that already has a
dependecy information made. So in older kernels this means make dep and
never kernels needs the config process done. After this point the
kernel include dir, which these packages need can be used.

The guestion is how would we manage the finding of the kernel include
dir for the source installed version. As I proposed the env variable
could be used if the user want's to build the package for different
kernel than the currently running kernel.

This would be good in other perspective too. Say we install new kernel
linux-2.6.0-test18 through this new version of portage. So it would
compile and install the kernel it's modules and the include tree. After
this portage could compile the module packages present in system to
this new kernel and add the module files to the module dir and to the
packages CONTENT file, so that all of the made modules would be removed
in a case where the corresponding package is removed from the system.
So Portage could set this kernel source variable to correct location
before compiling the module packages.

The variable should be kernel_includes or something, because that's
 what the packages need not the full source tree.
As an example the NVidia kernel module needs quite many header files to
determine the correct sizes of many kernel type definitions. And some
configuration information like was the kernel compiled with SMP support
or not. This all can be retrived from the kernel include dir and it's
sub directories.

> > > Oh and the kernel packages that would compile the kernel should
> > > install the kernel headers of the compiled kernel to
> > > /usr/src/linux-`uname -r`/include/
> > > so that any package that needs the real kernel headers can find
> > > them.
> >
> > Er, I'm pretty sure that the packages that need the source in
> > /usr/src/linux need more than just the headers - but don't quote me
> > on that!
>
> I can't think of any valid reason they would need to do so, but I've
> never done much of anything with the kernel.

Well that kind of perversive package will borke very fast.
And besides only thing I can think of that would need the kernel source
location is patch to kernel, but those should be delt before the kernel
installation not after.



--
gentoo-dev@gentoo.org mailing list


             reply	other threads:[~2003-10-05 18:32 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-05 18:24 Sami Näätänen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-10-03  9:36 [gentoo-dev] Speaking of new kernels being added to the tree Brad Laue
2003-10-03  9:54 ` Brad Laue
2003-10-03 18:12   ` C. Brewer
2003-10-03 19:26     ` Donnie Berkholz
2003-10-04  0:41       ` C. Brewer
2003-10-04  2:05         ` Donnie Berkholz
2003-10-04  3:50           ` C. Brewer
2003-10-03 15:34 ` Brian Jackson
2003-10-03 16:23   ` Brad Laue
2003-10-03 17:10     ` Brian Jackson
     [not found]   ` <3F7DA0C3.3000303@gentoo.org>
2003-10-03 17:10     ` Brian Jackson
2003-10-03 17:15       ` Jon Portnoy
2003-10-03 23:50   ` Luke-Jr
2003-10-03 23:58     ` Kurt Lieber
2003-10-04  0:01       ` Jason Stubbs
2003-10-04  2:16         ` Luke-Jr
2003-10-04  0:15       ` Luke-Jr
2003-10-04  2:25         ` Jon Portnoy
2003-10-04  3:56           ` Luke-Jr
2003-10-04  4:29             ` Jason Stubbs
2003-10-04 12:40               ` Stuart Herbert
2003-10-04 13:10                 ` Luke-Jr
2003-10-04 13:51                   ` Stuart Herbert
2003-10-04 14:04                     ` Luke-Jr
2003-10-04 14:15                       ` Stuart Herbert
2003-10-04 14:36                         ` Luke-Jr
2003-10-04 15:09                           ` Stuart Herbert
2003-10-04 17:20                             ` Luke-Jr
2003-10-04 17:58                               ` Marius Mauch
2003-10-04 15:56                           ` Patrick Börjesson
2003-10-04 17:29                             ` Luke-Jr
2003-10-04 18:27                               ` Patrick Börjesson
2003-10-04 23:38                                 ` William Kenworthy
2003-10-05  0:48                                   ` Patrick Börjesson
     [not found]                                   ` <200310050343.49697.sn.ml@bayminer.com>
2003-10-05  1:52                                     ` William Kenworthy
2003-10-05  2:39                                 ` Luke-Jr
2003-10-04 13:33                 ` Stroller
2003-10-04 14:08                   ` William Kenworthy
2003-10-04 14:21                     ` Luke-Jr
2003-10-04 14:14                   ` Luke-Jr
2003-10-04 16:50                   ` Peter Ruskin
2003-10-04 13:50                 ` Patrick Börjesson
2003-10-04 13:57                   ` Luke-Jr
2003-10-04 16:13                     ` Jon Portnoy
2003-10-04 17:25                       ` Luke-Jr
2003-10-04 23:28                       ` Jason Stubbs
2003-10-05  0:17                         ` Kumba
2003-10-05  0:25                           ` James Harlow
2003-10-05  0:38                             ` Jason Stubbs
2003-10-05  0:48                               ` James Harlow
2003-10-05  2:10                               ` Kumba
2003-10-05  2:27                                 ` Jason Stubbs
2003-10-05  2:06                             ` Kumba
2003-10-05  2:44                               ` Jason Stubbs
2003-10-05  4:54                             ` Jon Portnoy
2003-10-05  5:28                             ` Kevyn Shortell
2003-10-05  0:50                           ` Jason Stubbs
2003-10-05  2:43                           ` Luke-Jr
2003-10-05  3:04                             ` Kumba
2003-10-05 14:24                               ` Luke-Jr
2003-10-05  5:22                         ` Kevyn Shortell
2003-10-05 11:30                           ` Jason Stubbs
     [not found]                             ` <200310051741.28963.sn.ml@bayminer.com>
2003-10-05 14:47                               ` Jason Stubbs
2003-10-05 15:53                                 ` Luke-Jr
2003-10-05 16:05                                   ` Luke-Jr
2003-10-04 13:06               ` Luke-Jr
2003-10-04  6:16             ` Donnie Berkholz
2003-10-04  6:34     ` Kumba
2003-10-04  7:27     ` Kevyn Shortell
2003-10-04 13:16       ` Luke-Jr
2003-10-04  2:03   ` Stroller
2003-10-04  2:08     ` Donnie Berkholz
2003-10-04  4:08       ` Stroller

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=200310052124.27749.sn.ml@bayminer.com \
    --to=sn.ml@bayminer.com \
    --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