[PATCH] Build module for the current kernel and the most recent one

Mario Limonciello mario_limonciello at dell.com
Mon Dec 7 16:05:46 CST 2009

I've merged this in, thanks.

On 11/13/2009 10:57 AM, Alberto Milone wrote:
> On Tuesday 10 Nov 2009 13:25:49 Alberto Milone wrote:
>> Hi all,
>> As discussed with Mario, I have worked on a patch which affects
>> dkms_common.postinst and allows DKMS to detect if there are kernels which
>>   are more recent than the one in use. If this is the case then DKMS will
>>   build the kernel module for both the current kernel and for the most
>>   recent kernel in the system.
>> This will allow us to fix bugs such as #474917 reported on launchpad.
>> Currently the script compares kernel versions (e.g. 2.6.31-14-generic-pae)
>> with dpkg --compare-versions if dpkg is available. Otherwise this new
>> functionality is disabled. On systems which do not rely on dpkg you can
>> implement a different solution to find the kernel with the highest version
>>   in the is_greater_than() function so that the rest of the code can be used
>>   without further changes.
>> I've also attached a log which shows how the patch works.
>> Regards,
> I have reworked my patch a bit so that the feature can work on Fedora,
> Opensuse and (thanks to a hack) on Mandriva too.
> Regards,

Mario Limonciello
*Dell | Linux Engineering*
mario_limonciello at dell.com

More information about the DKMS-devel mailing list