public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] linux-headers
@ 2002-06-05 15:19 Alexander Holler
  2002-06-05 16:03 ` Brandon Low
  2002-06-05 16:14 ` Spider
  0 siblings, 2 replies; 6+ messages in thread
From: Alexander Holler @ 2002-06-05 15:19 UTC (permalink / raw
  To: gentoo-dev

Hello,

why are the linux-headers in /usr/include?

I would prefer to have the plain headers in /usr/src/linux-2.x.x-headers 
with a symlink from /usr/src/linux to that directory and just have symlinks 
from /usr/include/(asm|linux) to /usr/src/linux/include/(asm|linux).

In fact, now every compile uses the headers form the vanilla kernel, not 
from the actual installed kernel.

Kind regards,

Alexander Holler



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] linux-headers
  2002-06-05 15:19 [gentoo-dev] linux-headers Alexander Holler
@ 2002-06-05 16:03 ` Brandon Low
  2002-06-05 16:41   ` Alexander Gretencord
  2002-06-05 16:14 ` Spider
  1 sibling, 1 reply; 6+ messages in thread
From: Brandon Low @ 2002-06-05 16:03 UTC (permalink / raw
  To: gentoo-dev

The linux headers should only really be changed when you upgrade glibc, 
otherwise things get out of sync, perhaps we should upgrade the headers 
automatically in the glibc ebuild from the currently installed kernel.

--Brandon

-=-=-=-=-=-=-=-Previous Message(s)-=-=-=-=-=-=-=-
> Hello,
> 
> why are the linux-headers in /usr/include?
> 
> I would prefer to have the plain headers in /usr/src/linux-2.x.x-headers 
> with a symlink from /usr/src/linux to that directory and just have symlinks 
> from /usr/include/(asm|linux) to /usr/src/linux/include/(asm|linux).
> 
> In fact, now every compile uses the headers form the vanilla kernel, not 
> from the actual installed kernel.
> 
> Kind regards,
> 
> Alexander Holler
> 
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] linux-headers
  2002-06-05 15:19 [gentoo-dev] linux-headers Alexander Holler
  2002-06-05 16:03 ` Brandon Low
@ 2002-06-05 16:14 ` Spider
  1 sibling, 0 replies; 6+ messages in thread
From: Spider @ 2002-06-05 16:14 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 966 bytes --]

begin  quote
On Wed, 05 Jun 2002 17:19:16 +0200
Alexander Holler <holler@ahsoftware.de> wrote:

> Hello,
> 
> why are the linux-headers in /usr/include?
> 
> I would prefer to have the plain headers in
> /usr/src/linux-2.x.x-headers with a symlink from /usr/src/linux to
> that directory and just have symlinks from /usr/include/(asm|linux) to
> /usr/src/linux/include/(asm|linux).
> 
> In fact, now every compile uses the headers form the vanilla kernel,
> not from the actual installed kernel.

usr/include/linux should reflect the kernel version that your glibc was
compiled with, not the running kernel. if a program needs the running
kernel they should link to /lib/modules/`uname -r`/build/include/  and
the linux dir there, which should reflect the running kernel and is
setup by make modules_install.


//Spider

--
begin  .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] linux-headers
  2002-06-05 16:03 ` Brandon Low
@ 2002-06-05 16:41   ` Alexander Gretencord
  2002-06-05 18:01     ` Alexander Holler
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Gretencord @ 2002-06-05 16:41 UTC (permalink / raw
  To: gentoo-dev

On Wednesday 05 June 2002 18:03, Brandon Low wrote:
> The linux headers should only really be changed when you upgrade glibc,
> otherwise things get out of sync, perhaps we should upgrade the headers
> automatically in the glibc ebuild from the currently installed kernel.

Right, I think the linux-headers should be no normal package but get installed 
from the kernel includes that are present when you compile glibc. And perhaps 
a lil reminder somwhere. Many people don't know that it's supposed to be this 
way. (e.g. ppl coming from redhat only know about symlinks in that dir at 
least in 6 it was that way, dunno about 7)

Alex

-- 
"They that can give up essential liberty to obtain a little temporary safety 
deserve neither liberty nor safety."
Benjamin Franklin



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] linux-headers
  2002-06-05 16:41   ` Alexander Gretencord
@ 2002-06-05 18:01     ` Alexander Holler
  2002-06-05 18:16       ` Alexander Gretencord
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Holler @ 2002-06-05 18:01 UTC (permalink / raw
  To: gentoo-dev

Hello,

--On Mittwoch, Juni 05, 2002 18:41:53 +0200 Alexander Gretencord 
<arutha@gmx.de> wrote:

> On Wednesday 05 June 2002 18:03, Brandon Low wrote:
>> The linux headers should only really be changed when you upgrade glibc,
>> otherwise things get out of sync, perhaps we should upgrade the headers
>> automatically in the glibc ebuild from the currently installed kernel.
>
> Right, I think the linux-headers should be no normal package but get
> installed  from the kernel includes that are present when you compile
> glibc. And perhaps  a lil reminder somwhere. Many people don't know that
> it's supposed to be this  way. (e.g. ppl coming from redhat only know
> about symlinks in that dir at  least in 6 it was that way, dunno about 7)

Yes. I've used an old SuSE 7.3 with many packages compiled by myself and 
haven't had any problems up to now. And I'm sure, the glibc was very old 
(so I think it was compiled with a 2.2.x kernel) and last I've used kernel 
2.4.18 with the includes pointing at that kernel.

Why should the usr/include/linux and asm reflect the state at glibc compile 
time? Is there any reading about that?

Alexander




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] linux-headers
  2002-06-05 18:01     ` Alexander Holler
@ 2002-06-05 18:16       ` Alexander Gretencord
  0 siblings, 0 replies; 6+ messages in thread
From: Alexander Gretencord @ 2002-06-05 18:16 UTC (permalink / raw
  To: gentoo-dev

On Wednesday 05 June 2002 20:01, Alexander Holler wrote:
> Why should the usr/include/linux and asm reflect the state at glibc compile
> time? Is there any reading about that?

Yes there is, google is your friend.

Use your preferred kernel mailinglist mirror or just view this one:

http://www.uwsg.iu.edu/hypermail/linux/kernel/0007.3/0587.html


Alex

-- 
"They that can give up essential liberty to obtain a little temporary safety 
deserve neither liberty nor safety."
Benjamin Franklin



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-06-05 18:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-05 15:19 [gentoo-dev] linux-headers Alexander Holler
2002-06-05 16:03 ` Brandon Low
2002-06-05 16:41   ` Alexander Gretencord
2002-06-05 18:01     ` Alexander Holler
2002-06-05 18:16       ` Alexander Gretencord
2002-06-05 16:14 ` Spider

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox