Re: DVB Include files

Christoph Hellwig (hch@infradead.org)
Wed, 25 Jun 2003 18:49:11 +0100


On Wed, Jun 25, 2003 at 07:27:03PM +0200, Jörn Engel wrote:
> Christoph, while I agree with you, I also see why a lot of people just
> symlink /usr/include/linux to /usr/src/.../include/linux. Pure
> convenience and the lack of a dedicated collection of userspace
> headers outside a distributions scope.

Well, that symlinking is okay as long as you never ever touch /usr/src/linux
again.

> Or did I miss something important and just exposed my stupidity?

No one said they can't be the same header and actually maintaining
them in the kernel tree is fine to. Just put them in a different
location for userspace so you can update them independant of the
kernel. Look at e.g. XFS - most headers in /usr/include/xfs/ are
just copied from fs/xfs/ in the kernel tree. But they're always
the ones matching the libxfs you installed no matter what XFS
version your currently running kernel has (or no XFS at all).

And that's the fundamental issue here, the userland header must
be independant from the actually running kernel or some random
source tree that's somewhere on your disk. Copying the content
to /usr/include/linux does work but it's really suboptimal. You
don't want to upgrade your libc just because you want to be able
to use the new features in the dvb driver you just installed.
A separate dvb-dev packages that has a copy of those headers
in /usr/include/dvb is the much better choice.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/