ppa buildsystem issue w/dkms

Asked by Henrik S.

stumbled into a problem building a dkms installable package. the debian/rules stuff seem to be fine, but when building on ppa it fails during a make clean operation that depends on the linux header machinery. the linux headers are normally installed when build-depending on dkms. and this is the way it is supposed to work - dkms enabled packages should not be required to list kernel header dependencies, as it should be left to dkms to sort out the correct dependencies. long story short - this appears to be a bug in the ppa buildsystem - it needs to install all the dkms "recommends" items. or just the one that appears to be used - linux-headers-2.6.24-29-xen.


Question information

English Edit question
Launchpad itself Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Max Bowsher (maxb) said :

I'm afraid I have to disagree with much of what you say - the actual problem is an error in your debian/rules file.

It is not true that the linux headers are normally installed when build-depending on dkms, nor is it supposed to be. The very essence of dkms is that the package build assembles all the source files into the .deb, and the actual build against the kernel headers only occurs at package installation time.

Your package build is failing because dh_auto_clean is invoking the upstream "make clean". Since you have (as is normal for a dkms module) bypassed most of the upstream build system via override_dh_auto_{configure,build,test,install}, you need to finish the job, and override dh_auto_clean too.

Can you help with this problem?

Provide an answer of your own, or ask Henrik S. for more information if necessary.

To post a message you must log in.