Bug 31835 - Update dkms to version 3.0.x
Summary: Update dkms to version 3.0.x
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: Mageia 10
Assignee: Kernel and Drivers maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-23 11:31 CEST by Stig-Ørjan Smelror
Modified: 2024-02-29 19:05 CET (History)
3 users (show)

See Also:
Source RPM: dkms-2.0.19-46.mga9.src.rpm
CVE:
Status comment:


Attachments
1st Try of spec for dkms 3.0.12 (4.50 KB, text/x-matlab)
2023-12-18 03:02 CET, katnatek
Details
dkms 3.0.12 version of symvers pacth (1.85 KB, patch)
2023-12-18 03:03 CET, katnatek
Details | Diff
dkms 3.0.12 version of norpm patch (1.04 KB, patch)
2023-12-18 03:04 CET, katnatek
Details | Diff
dkms 3.0.12 versionof detect-Mageia patch (2.33 KB, patch)
2023-12-18 03:04 CET, katnatek
Details | Diff
Some corrections to the spec (4.74 KB, text/x-matlab)
2024-02-07 18:52 CET, katnatek
Details
Clean version of dkms 3 spec (3.33 KB, text/x-matlab)
2024-02-10 03:37 CET, katnatek
Details
Emulate destination override in dkms 2 (613 bytes, patch)
2024-02-10 03:44 CET, katnatek
Details | Diff
Patch to replace alias by functions (2.89 KB, patch)
2024-02-10 03:46 CET, katnatek
Details | Diff
Alternative destination override patch (616 bytes, patch)
2024-02-29 19:05 CET, katnatek
Details | Diff

Description Stig-Ørjan Smelror 2023-04-23 11:31:19 CEST
Our dkms is quite old and since it contains a lot of patches it needs a lot of love before we can update it.

Scheduled for MGA10.

https://github.com/dell/dkms/releases
Stig-Ørjan Smelror 2023-04-23 11:31:34 CEST

Target Milestone: --- => Mageia 10

Comment 1 Lewis Smith 2023-04-23 20:19:35 CEST
Thanks for the comment, Stig.

Forwarding to the kernel people.

Assignee: bugsquad => kernel

Lewis Smith 2023-04-23 20:21:23 CEST

Source RPM: (none) => dkms-2.0.19-46.mga9.src.rpm

katnatek 2023-12-14 21:21:33 CET

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=17198
CC: (none) => j.alberto.vc

katnatek 2023-12-15 21:15:34 CET

CC: (none) => ngompa13

Comment 2 katnatek 2023-12-15 21:16:50 CET
I will try to give a hand on this, but I don't know how far I can go
Comment 3 katnatek 2023-12-18 03:02:11 CET
Created attachment 14222 [details]
1st Try of spec for dkms 3.0.12

I part from the work done in https://svnweb.mageia.org/packages/cauldron/dkms/branches/WIP/current/

And also the spec for dkms 3.0.12 in fedora, I have to redo some mageia patches and drop a lot that can't be imported to this version due lot of changes in sources

Of course my work need revision, but I install the produced rpm, reboot my system, uninstall and reinstall a dkms module and look normal for me
Comment 4 katnatek 2023-12-18 03:03:19 CET
Created attachment 14223 [details]
dkms 3.0.12 version of symvers pacth
Comment 5 katnatek 2023-12-18 03:04:03 CET
Created attachment 14224 [details]
dkms 3.0.12 version of norpm patch
Comment 6 katnatek 2023-12-18 03:04:55 CET
Created attachment 14225 [details]
dkms 3.0.12 versionof detect-Mageia patch
katnatek 2023-12-18 03:06:55 CET

Attachment 14223 description: dkms 3.0.12 version of this pacth => dkms 3.0.12 version of symvers pacth

Guillaume Bedot 2023-12-18 08:44:08 CET

CC: (none) => geex+mageia

Comment 7 katnatek 2024-02-01 03:59:47 CET
I was using the created package but the modules are not rebuilt when new kernels are installed, and fail when I do by hand, so I need to do more test/research
Comment 8 katnatek 2024-02-01 19:14:35 CET
This version have /usr/lib/dkms/dkms_autoinstaller that is very different of our current /usr/sbin/dkms_autoinstaller

I need to do some test but look like if we succeed to update to this branch we also must modify the dkms_autoinstaller line in the kernel spec
Comment 9 katnatek 2024-02-07 18:52:02 CET
Created attachment 14344 [details]
Some corrections to the spec

I did try to reproduce the messages in plymouth when the module is builded on boot time but not works, also an alias in the new dkms_autoinstaller is not working

I did perform some test and this time all seems working

For kernels is needed change in the spec

if [ -z "$DURING_INSTALL" ] ; then
 	%if %{versionednamingscheme}
 	    if [ -x /usr/sbin/dkms_autoinstaller -a -d /usr/src/kernel-%{kversion}-$kernel_flavour-%{buildrpmrel} ]; then
 	        /usr/sbin/dkms_autoinstaller start %{kversion}-$kernel_flavour-%{buildrpmrel}
 	%else
 	    if [ -x /usr/sbin/dkms_autoinstaller -a -d /usr/src/kernel-%{kversion}-$kernel_flavour-%{rpmrel} ]; then
 	        /usr/sbin/dkms_autoinstaller start %{kversion}-$kernel_flavour-%{rpmrel}
 	%endif
 	    fi
fi

By

if [ -z "$DURING_INSTALL" ] ; then
 	%if %{versionednamingscheme}
 	    /usr/libexec/dkms_autoinstaller start %{kversion}-$kernel_flavour-%{buildrpmrel}
 	%else
 	    /usr/libexec/dkms_autoinstaller start %{kversion}-$kernel_flavour-%{rpmrel}
 	%endif
fi

Or if you wish you can replace /usr/libexec/dkms_autoinstaller start by /sbin/dkms autoinstall --kernelver

Attachment 14222 is obsolete: 0 => 1

Comment 10 katnatek 2024-02-07 19:09:53 CET
(In reply to katnatek from comment #9)
> Created attachment 14344 [details]
> Some corrections to the spec
> 
> I did try to reproduce the messages in plymouth when the module is builded
> on boot time but not works, also an alias in the new dkms_autoinstaller is
> not working
> 
> I did perform some test and this time all seems working
> 
> For kernels is needed change in the spec
> 
> if [ -z "$DURING_INSTALL" ] ; then
>  	%if %{versionednamingscheme}
>  	    if [ -x /usr/sbin/dkms_autoinstaller -a -d
> /usr/src/kernel-%{kversion}-$kernel_flavour-%{buildrpmrel} ]; then
>  	        /usr/sbin/dkms_autoinstaller start
> %{kversion}-$kernel_flavour-%{buildrpmrel}
>  	%else
>  	    if [ -x /usr/sbin/dkms_autoinstaller -a -d
> /usr/src/kernel-%{kversion}-$kernel_flavour-%{rpmrel} ]; then
>  	        /usr/sbin/dkms_autoinstaller start
> %{kversion}-$kernel_flavour-%{rpmrel}
>  	%endif
>  	    fi
> fi
> 
> By
> 
> if [ -z "$DURING_INSTALL" ] ; then
>  	%if %{versionednamingscheme}
>  	    /usr/libexec/dkms_autoinstaller start
> %{kversion}-$kernel_flavour-%{buildrpmrel}
>  	%else
>  	    /usr/libexec/dkms_autoinstaller start
> %{kversion}-$kernel_flavour-%{rpmrel}
>  	%endif
> fi
> 
> Or if you wish you can replace /usr/libexec/dkms_autoinstaller start by
> /sbin/dkms autoinstall --kernelver

Take care if you choose /usr/libexec/dkms_autoinstaller of make works this 

alias log_daemon_msg='/bin/echo -n'

Because i get complains about log_daemon_msg not found
Comment 11 katnatek 2024-02-10 03:37:45 CET
Created attachment 14353 [details]
Clean version of dkms 3 spec

I add two more patchs and clean almost all the spec

Attachment 14344 is obsolete: 0 => 1

Comment 12 katnatek 2024-02-10 03:44:14 CET
Created attachment 14354 [details]
Emulate destination override in dkms 2

This need to be reviewed because is not a direct replacement, by example dkms-anbox in dkms 2 store modules in dkms/updates but this change split the mosules in dkms/ashmem_linux and dkms/binder_linux

But dkms-vhba in dkms 2 store the module in dkms/vhba and this changes keep that
Comment 13 katnatek 2024-02-10 03:46:56 CET
Created attachment 14355 [details]
Patch to replace alias by functions

I replace alias by functions, this works for me, but of course you can review and change
Comment 14 katnatek 2024-02-29 19:05:13 CET
Created attachment 14434 [details]
Alternative destination override patch

This is most similar to behavior in dkms 2 but still not direct replace, clean installing some modules dkms 2 installs it in dkms/*/mod_name and this to dkms/kernel/*/mod_name

I let to you from here , I don't know if it is possible to remove all dkms modules before  update to this version and rebuild after, or handle the remove of legacy path modules to each dkms-foo spec

Note You need to log in before you can comment on or make changes to this bug.