[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#346281: linux-image-2.6.15-1-686: debconf question about /lib/modules/2.6.15-1-686 even if no kernel is installed



On Tue, Jan 10, 2006 at 10:33:25AM -0600, Manoj Srivastava wrote:
> reassign 346281 linux-2.6
> thanks
> 
> Hi,
> 
>         If you have decided that putting the build link in headers is
>  correct, then you get to fix this. The kernel-package tool does it
>  dofferently, and while you are not required to follow what k-p does,
>  any non-standard and unsupported changes you make to the way k-p
>  works is your responsibility to fix.

Whatever, i think the build directory should just work, and that was the
agreement we had back then on this. I assumed this was indeed the case.
Any idea what exactly is going wrong here.

>         kernel-package has these requirements for the build and source
>  links:
> 
>   1) A user building and installing kernel image packages on a single
>      machine must have a working build link

As far as official kernels are concerned, we don't care about this case, and
since the flavour will be different (a user building a flavour of the same
name as the official kernels, and having the official kernels installed, has
only himself to blame if things break :), whatever happens to self-compiled
kernels is fully orthogonal to what is done for official kernels.

>   2) A user who builds image and header packages and installs them on
>      other machines, must have a woking build link no matter which
>      order the image and header packages are installed

identic here. Notice though that the header package always providing the
symlink is the easiest and sanest way to have your criteria fullfilled.

>   3) /lib/modules/$(uname -r)/build , if it exists, must point to a
>      valid directory, be it a dir provided by a headers package, or
>      the directory the kernel was built in.

Ok, well, this is not so nice. For official kernels, there is no such thing as
the directory the kernel was built in, so the build symlink *MUST* point to
the dir provided by the header package.

>   4) If you have installed a header package, but not the image
>      package, $(uname -r) indirection does not work, so you have to
>      manually set an env variable to point to the directory where the
>      headers live, and since you must set KSRC by hand, set it to
>      /usr/src/linux-headers-foo as you need. This does not add an
>      additional burdenm, it is not as if KSRC did not have to be set
>      by the user manually.

Well, maybe, but it doesn't really change all that much all the same, and
since both 2) and 3) favour havint the linux-headers provide the build
symlink, i think it is obvious what should be done :)

Friendly,

Sven Luther



Reply to: