Bug 1226402

Summary: add to kernel weak dependencies for kernel-devel and kernel-modules-extra
Product: [Fedora] Fedora Reporter: Honza Silhan <jsilhan>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab, msuchy, robatino
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-01 12:18:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1062997    

Description Honza Silhan 2015-05-29 16:29:11 UTC
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

Comment 1 Josh Boyer 2015-05-29 18:23:15 UTC
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.

Comment 3 Josh Boyer 2016-06-01 12:18:27 UTC
There are other issues stemming from packaging changes similar to this.  We're not going to make these changes.