Bug#257738: kernel-headers basically useless
Package: kernel Severity: normal To my understanding, kernel-headers are to be used in compiling kernel modules. However, quite a few modules require $KERNELSOURCE/drivers, others try to execute `make modules` in the KSRC directory, and yet others only work with make-kpkg, which requires the kernel source. Therefore, it seems to me that the kernel-headers packages have no use (at least in 2.6). The following module-source packages cannot be built with the headers only: drm-mach64, bcm4400, bcm5700, lirc, pcmcia, freeswan, openswan, arla, openafs. In all cases, I tried: ./debian/rules KSRC=/usr/src/kernel-headers-X.Y.ZZ binary and ./debian/rules KSRC=/usr/src/kernel-headers-X.Y.ZZ modules-binary Either I am doing something wrong, or the kernel-headers packages are really not needed anymore. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (600, 'testing'), (98, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.7-1-k7 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 -- Please do not CC me when replying to lists; I read them! .''`. martin f. krafft [EMAIL PROTECTED] : :' :proud Debian developer, admin, and user `. `'` `- Debian - when you have better things to do than fixing a system Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver! signature.asc Description: Digital signature
Bug#257738: kernel-headers basically useless
On Mon, Jul 05, 2004 at 07:57:01PM +0200, martin f krafft wrote: Package: kernel Severity: normal To my understanding, kernel-headers are to be used in compiling kernel modules. However, quite a few modules require $KERNELSOURCE/drivers, others try to execute `make modules` in the KSRC directory, and yet others only work with make-kpkg, which requires the kernel source. Please fix the drivers instead. Drivers aren't supposed to poke into random kernel sources.
Bug#257738: kernel-headers basically useless
#include hallo.h * martin f krafft [Mon, Jul 05 2004, 07:57:01PM]: To my understanding, kernel-headers are to be used in compiling kernel modules. However, quite a few modules require $KERNELSOURCE/drivers, If they don't describe it in the manual, file bugs. others try to execute `make modules` This works with kernel-headers-2.6...! And for versions below this method be used because whatsoever. in the KSRC directory Not just in the KSRC directory, they parametrize the call. This is a valid behaviour and recent kernel-package packages include enough files to have working build infrastructure. and yet others only work with make-kpkg, which requires the kernel source. Ehm, what do you mean? The module-source _are_ to be used with make-kpkg or compatible build method (eg. running debian/rules with the needed arguments and environment, or using the module-assistant utility). Therefore, it seems to me that the kernel-headers packages have no use (at least in 2.6). The following module-source packages cannot be built with the headers only: drm-mach64, bcm4400, bcm5700, lirc, pcmcia, freeswan, openswan, arla, openafs. side noteThis number of packages is very low (almost ridiculous) for a good statistic. / I just tried to build the few source packages installed here with kernel-headers-2.6.6-2-686 (using module-assistant alli -k ...) and most worked: cloop, nvidia, sl-modem, lufs, cdfs, shfs, bcm4400, bcm5700, lufs, ipw2100, ppscsi Some have failed: pcmcia (internal bug, needless requirement of modversions.h) arla (weird hocus pocus with mirroring the kernel build system, broken) loop-aes (using arbitrary build system based on kernel source, known to need the complete source) In all cases, I tried: Ehm, what about trying to read the docs or make-kpkg source before reporting bugs? ./debian/rules KSRC=/usr/src/kernel-headers-X.Y.ZZ modules-binary This is _not_ the rule that make-kpkg calls! Some people think that it is a must for module-source packages but it is AFAICS just an invention of the dh-make author to unify some commands (but I must admit, I have partially reused its concept in module-assistant include files ;). Either I am doing something wrong You are. Please read the source of a good module-source package (eg. ALSA) or one control script and/or makefile includes from module-assistant. OTOH, you are a DD and module-source maintainer, do I really need to tell you to RTFM? Regards, Eduard. signature.asc Description: Digital signature
Bug#257738: kernel-headers basically useless
On Mon, 05 Jul 2004 19:57:01 +0200, martin f krafft wrote: [...] Either I am doing something wrong, or the kernel-headers packages are really not needed anymore. They most certainly are needed. Modules should be unpacked in /usr/src/modules, and then one can do a `make-kpkg --append_to_version=-1-k7 modules_image` to create kernel modules that are compatible w/ the running kernel. See qc-usb-source for an example of a kernel module that compiles fine against debian kernel headers. The modules you listed should be fixed. Please assign bugs to them as appropriate.
Re: Bug#257738: kernel-headers basically useless
On Mon, 5 Jul 2004 19:57:01 +0200, martin f krafft [EMAIL PROTECTED] said: Package: kernel Severity: normal To my understanding, kernel-headers are to be used in compiling kernel modules. However, quite a few modules require $KERNELSOURCE/drivers, others try to execute `make modules` in the KSRC directory, and yet others only work with make-kpkg, which requires the kernel source. You can build kere modules using kernel-package without having the sources unpacked (look for IN_KERNEL_HEADERS in /usr/share/kernel-package/rules) -- if this is not so, I would appreciate being told what is going wrong. Either I am doing something wrong, or the kernel-headers packages are really not needed anymore. However, I must confess I have not tested with the new 2.6 build mechanism. manoj -- malpractice, n.: The reason surgeons wear masks. Manoj Srivastava [EMAIL PROTECTED]http://www.golden-gryphon.com/ 1024R/C7261095 print CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C