FS#38395 - [dkms] should compress modules with .gz by default to match existing kernel modules

Attached to Project: Community Packages
Opened by Gaute Hope (gauteh) - Monday, 06 January 2014, 11:57 GMT
Last edited by Sébastien Luttringer (seblu) - Monday, 25 August 2014, 14:16 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

For dkms packages that have replace existing kernel modules they will not be overwritten unless they are compressed (as is the default for stock kernel modules), it seems that the compressed (.gz) module is used first. DKMS does not detect the existing compressed module when a uncompressed dkms-module is built and installed.

Expected behaviour:
a.) either check whether there are existing modules that are either compressed or not
b.) or, always compress dkms modules.

Noticed this in the input-wacom git package.
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Monday, 25 August 2014, 14:16 GMT
Reason for closing:  Not a bug
Comment by Sébastien Luttringer (seblu) - Monday, 06 January 2014, 19:24 GMT
patch welcomed.
Comment by Dave Reisner (falconindy) - Monday, 06 January 2014, 19:29 GMT
> it seems that the compressed (.gz) module is used first
No, this isn't true -- all modules are created equal (anything else is a bug worth reporting). Depmod configuration in /usr/lib/depmod.d and /etc/depmod.d determines the lookup order.
Comment by Gaute Hope (gauteh) - Tuesday, 28 January 2014, 07:44 GMT
This was circumvented by @apicici for input-wacom-dkms (in AUR) by:
- rename new modules (append _dkms to name)
- blacklist the old
Comment by Sébastien Luttringer (seblu) - Monday, 25 August 2014, 14:15 GMT
Option a) should be managed inside dkms code, so you should express that request upstream. However, there is a several compression formats and pick one doesn't offer a reliable solution.
Option b) Same issue, there is more than one compression format and it's not the job of dkms to order which modules should be loaded.

As Dave generously suggested, override of modules of the same name should be handled by putting a file (by the package) in /usr/lib/depmod.d. I didn't try, but the man page depmod.d give an example of that problem.

Loading...