Description of problem: This is next step to solve bug 1062997 - to remove all kernel* installonly packages with the same version over installonly_limit. DNF searches through all requirements of running kernel and doesn't remove these packages. We can expand it to look for weak deps too. Actual results: kernel-devel is not linked to kernel at all. Expected results: Please add to kernel package: * "Suggests: kernel-modules-extras = <ver>" * "Suggests: kernel-devel = <ver>" so DNF don't have to make kernel an exception of the packages. By adding weak dependencies all remains the same. No other packages will be pulled in when just kernel is to be installed. Additional info: http://www.rpm.org/wiki/PackagerDocs/DependenciesOverview#Weakdependencies
kernel-devel shouldn't be linked to kernel at all. You can install kernel-devel on a machine for a kernel you don't have installed, build things against it, and copy the results to a machine running that kernel and use them. It has nothing to do with a running kernel on the machine. Also, kernel-devel is 100% unnecessary for the kernel (or kernel-core and kernel-modules) packages. Adding a weak dependency that suggests you want kernel-devel installed when you install a particular kernel is incorrect. Lastly, I was under the impression that we were not allowed to use weak dependencies in Fedora yet because the FPC did not have guidelines for doing so. Did I miss where those were reviewed and approved? I would be happy to read them if so.
*https://fedoraproject.org/wiki/Packaging:WeakDependencies *https://fedorahosted.org/fpc/ticket/531
There are other issues stemming from packaging changes similar to this. We're not going to make these changes.