Subject: Re: kern/5377: sys/system.h inludes lib/libkern/libkern.h for LKM too
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Chris G. Demetriou <cgd@pa.dec.com>
List: netbsd-bugs
Date: 04/30/1998 08:20:16
> On Apr 29, Chris G. Demetriou wrote
> > The answer is "because the way kernel headers get moved into user-land
> > is that the whole directories are either copied or symlinked..."
> > 
> > That's a bug, not a feature.
> > 
> 
> I think we need to have the kernel includes files installed in /usr/include. 
> This is needed for building lkms and kmem grovelers, and I don't think
> requiring the kernel sources to be installed for building them is a good thing.

You missed the point.

Sure, you want to install kernel header files.

You don't want to do that by (in essence) finding all of the headers
in a few directory hierchies and using tar/pax/whatever to copy them
into /usr/include.  "It doesn't work for user-land, what makes you
think it should work for the kernel?"

There needs to be fine-grained control about which headers get
installed.  Some headers just _shouldn't_ be installed, but there's no
way to prevent that now.


cgd