Bug 13556

Summary: Installer / XFdrake installs dkms + gcc and other devel deps even if it's supposed to install only prebuilt kmods by default
Product: Mageia Reporter: Thomas Backlund <tmb>
Component: InstallerAssignee: Thierry Vignaud <thierry.vignaud>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: mageia, marja11
Version: CauldronKeywords: NEEDINFO, PATCH
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: drakx-kbd-mouse-x11 CVE:
Status comment:
Attachments: only install dkms if kernel-(linus|rt|tmb) is installed

Description Thomas Backlund 2014-06-20 18:33:16 CEST
Just noted during QA of mga4.1 isos.

So this is both an installer and a "RPM packages" issue

When you get to the part of when it asks if you want to install proprietary drivers, and you answer yes, it will install both the prebuilt kmods as intended, but also installs the dkms-<proprieatry_driver>, gcc and other devel stuff making the prebuilt kmods pretty "useless" and unnecessarily bloats and slows down the installs



Reproducible: 

Steps to Reproduce:
Comment 1 Thierry Vignaud 2014-06-20 18:47:57 CEST
I guess this was done in case someone installs kernel-{linus,tmb,...}
Comment 2 Thomas Backlund 2014-06-20 19:14:18 CEST
yeah, but I assume so, but it means bloat for most users and now apparently exposes a dkms timing bug breaking many installs, especially when pe push a new drvier version at the same time as a new kernel, something  that is not so good...

and there is a longstanding bug where dkms builds a module even if the prebuilt module is available :/

So I'm not sure it's a good thing atleast for now ...
Comment 3 Thomas Backlund 2014-07-01 23:54:01 CEST
I wonder... could this be conditional... check if tmb/rt/linus/vserver kernel is installed before pulling in the dkms + build toolchain...
Thierry Vignaud 2014-07-02 07:34:38 CEST

CC: (none) => mageia

Comment 4 Thierry Vignaud 2014-07-02 07:34:56 CEST
Created attachment 5237 [details]
only install dkms if kernel-(linus|rt|tmb) is installed

Please test
Comment 5 Samuel Verschelde 2015-05-21 11:13:14 CEST
tmb, Thierry, what about this patch? Was it included?

Keywords: (none) => NEEDINFO, PATCH

Comment 6 Thierry Vignaud 2015-05-21 12:00:45 CEST
No as nobody tested.
Comment 7 Marja Van Waes 2017-09-10 21:58:32 CEST
Closing as OLD, because since Mageia 5.1 we no longer have

kmod-broadcom-wl
kmod-fglrx
kmod-fglrx-legacy
kmod-nvidia-current
kmod-nvidia304
kmod-nvidia340
kmod-nvidia96xx

so installing dkms etc. is needed when someone wants a proprietary driver.

CC: (none) => marja11
Status: NEW => RESOLVED
Resolution: (none) => OLD