On Wed, 2005-09-21 at 10:27 +0200, Paul de Vrieze wrote: > On Wednesday 21 September 2005 09:42, Georgi Georgiev wrote: > > > > * Determining the location of the kernel source code > > * Unable to find kernel sources at /usr/src/linux > > * This package requires Linux sources. > > * Please make sure that /usr/src/linux points at your running kernel, > > * (or the kernel you wish to build against). > > * Alternatively, set the KERNEL_DIR environment variable to the kernel > > sources location > > I kindof wonder why it doesn't try the sources of the running kernel. They > are easilly found at "/lib/modules/`uname -v`/build". Of course as a > final result as someone might want to build against different sources, > but it's a better fallback than an error message. >
There are very good reasons why it should build against /usr/src/linux, or at least try that first. The reasoning being that you might cross-compile, or be in a chroot where /lib/modules/... is not valid, etc. I guess with the variables to set it these days it might be easier, but that is the expected way. Maybe changing it to first look in /usr/src/linux (or KERNEL_DIR if set), and then for the running kernel. -- Martin Schlemmer
signature.asc
Description: This is a digitally signed message part