On Thu, 2014-09-18 at 21:04 +0530, Ritesh Raj Sarraf wrote: > Control: reassign -1 dkms > Control: retitle -1 dkms should pull in the correct linux-headers package > > > Thanks Ben. Omar: This bug is specific to dkms. That package should pull > in the correct linux-headers package (based on the architecture), which > is required to build the virtualbox-dkms package.
But it cannot do this by declaring dependencies. Unfortunately it is also impossible to install the right package using APT, when building during installation of another package. What I think it should do is to check that /lib/modules/$KVERS/build exists and is not a dangling symlink, and if not then prompt to install linux-headers-$KVERS. (This should be a file test rather than a package test, so it works with unpackaged kernel installations.) Installation of linux-headers-$KVERS package should then trigger building all installed DKMS module sources via DKMS's postinst hook. Ben. -- Ben Hutchings The most exhausting thing in life is being insincere. - Anne Morrow Lindberg
signature.asc
Description: This is a digitally signed message part