[lkml]   [1999]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] asm*/resource.h fix for glibc
Miquel van Smoorenburg wrote:
> If glibc-devel has /usr/include/linux ->
> /usr/src/linux-2.2.5-20/include/linux is there any reason not to put
> the 2.2.5-20 kernel headers directly into /usr/include instead of via
> a symlink ?

glibc-devel has /usr/include/linux -> /usr/src/linux/include/linux
kernel-headers has /usr/src/linux -> /usr/src/linux-VERSION

This works the same as Debian if you use the standard packages.
Upgrading kernel-headers does the right thing.

But it's also friendly to kernel hackers.

Because when kernel-headers is upgraded, it only deletes the
/usr/src/linux link _if_ the current link points to the package dir, and
only recreates the link _if_ the current /usr/src/linux is a not a dir.
(Odd logic but it works out).

So if you're hacking kernel like me and keep the current source in
/usr/src/linux, /usr/include/linux refers to your developing source no
matter what the packaging system does, say when you upgrade. I find
this cool.

Alan, please don't change this behaviour of RH; it's cool.

-- Jamie

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:55    [W:0.023 / U:8.192 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site