Re: Doesn't kernel-source packages provides kernel-headers?

2000-02-09 Thread Colin Watson
[EMAIL PROTECTED] (Paul J. Keenan) wrote:
 On Thu, 3 Feb 2000, Colin Watson wrote:
  [EMAIL PROTECTED] (Shaul Karl) wrote:
  It is my understanding that each kernel-source package provides
  kernel-headers. Yet kernel-source-2.2.14 does not mention it.
  
  What am I missing?
  
  No, kernel-source doesn't provide kernel headers. However, if you
  install kernel-package you'll be able to use something like 'fakeroot
  make-kpkg kernel_headers' to build yourself a kernel-headers package.
  (Obviously you'll need fakeroot, dpkg-dev, possibly devscripts, etc.)

If kernel-source does not provide kernel-headers, then what files are in
kernel-headers that are not provided by kernel-source ?  What is their
function ?

I understood (only from inspection, mind you) that kernel-headers was a
subset of kernel-source provide for compiling other program which needed
to reference the kernel declarations, but preferred not to compile a
whole kernel.  Thus it saved them some disk space.  Is this wrong ?

Subtly, yes; well, your understanding of the function of kernel-headers
is pretty accurate, but you're misunderstanding the Provides: line
somewhat. kernel-source does indeed provide a superset of the same
files as kernel-headers, but the term provide is misleading here, as
it's only in the loose sense of contain rather than the stricter sense
of the Debian package Provides: line. In particular, the files aren't in
quite the same places (the kernel-headers postinst script sets up
various symlinks which I'm not sure are in kernel-source).

The easiest way to think about it is that kernel-headers is a binary
package compiled in a slightly unusual way from the kernel-source source
package. Libraries that give you a -dev package are along these lines
too, it's just that their source package isn't normally among the binary
archives. You might find it less confusing to use something like
'apt-get source kernel-source-2.2.14' to get the kernel-source package,
rather than treating it as a binary package.

HTH,

-- 
Colin Watson   [EMAIL PROTECTED]


Re: Doesn't kernel-source packages provides kernel-headers?

2000-02-07 Thread Oki DZ


On Thu, 3 Feb 2000, Colin Watson wrote:

 [EMAIL PROTECTED] (Shaul Karl) wrote:
 It is my understanding that each kernel-source package provides
 kernel-headers. Yet kernel-source-2.2.14 does not mention it.
 
 What am I missing?
 
 No, kernel-source doesn't provide kernel headers. However, if you
 install kernel-package you'll be able to use something like 'fakeroot
 make-kpkg kernel_headers' to build yourself a kernel-headers package.
 (Obviously you'll need fakeroot, dpkg-dev, possibly devscripts, etc.)

If your installed kernel is 2.2.12, I think make-kpkg kernel_headers would
create kernel-headers package for 2.2.12. It would be a problem if the new
kernel is 2.2.13. I think it would be better to get kernel-headers 2.2.13
package (which I have done, so that I can load the correct modules for
kernel 2.2.13.)

Oki



Re: Doesn't kernel-source packages provides kernel-headers?

2000-02-07 Thread Paul J. Keenan
 On Thu, 3 Feb 2000, Colin Watson wrote:
 
  [EMAIL PROTECTED] (Shaul Karl) wrote:
  It is my understanding that each kernel-source package provides
  kernel-headers. Yet kernel-source-2.2.14 does not mention it.
  
  What am I missing?
  
  No, kernel-source doesn't provide kernel headers. However, if you
  install kernel-package you'll be able to use something like 'fakeroot
  make-kpkg kernel_headers' to build yourself a kernel-headers package.
  (Obviously you'll need fakeroot, dpkg-dev, possibly devscripts, etc.)

If kernel-source does not provide kernel-headers, then what files are in
kernel-headers that are not provided by kernel-source ?  What is their
function ?

I understood (only from inspection, mind you) that kernel-headers was a
subset of kernel-source provide for compiling other program which needed
to reference the kernel declarations, but preferred not to compile a
whole kernel.  Thus it saved them some disk space.  Is this wrong ?

-- 
Regards,
Paul


Re: Doesn't kernel-source packages provides kernel-headers?

2000-02-03 Thread Colin Watson
[EMAIL PROTECTED] (Shaul Karl) wrote:
It is my understanding that each kernel-source package provides
kernel-headers. Yet kernel-source-2.2.14 does not mention it.

What am I missing?

No, kernel-source doesn't provide kernel headers. However, if you
install kernel-package you'll be able to use something like 'fakeroot
make-kpkg kernel_headers' to build yourself a kernel-headers package.
(Obviously you'll need fakeroot, dpkg-dev, possibly devscripts, etc.)

-- 
Colin Watson   [EMAIL PROTECTED]