Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1450577
Summary: | [RFE] Enforce kernel-devel >= uname-r if any kernel-devel | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nicolas Chauvet (kwizart) <kwizart> | ||||
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | gansalmon, ichavero, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab, projects.rg, robatino | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2019-07-02 13:08:40 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: | 661442, 1294173 | ||||||
Attachments: |
|
Description
Nicolas Chauvet (kwizart)
2017-05-13 10:53:25 UTC
Created attachment 1278409 [details]
Current WIP suggested patch
This patch is yet un-tested, but should implement the suggested idea.
FYI, using boolean deps for installing the appropriate kernel-devel variant was initially suggested here: https://bugzilla.redhat.com/show_bug.cgi?id=1420754#c0 I'm currently working on this solution for akmods (untested yet). For arched packages (systemtap), it's probably possible to %ifarch as appropriate ---- Requires: kernel-devel-uname-r %if 0{?fedora: Suggests: (kernel-devel if kernel) Suggests: (kernel-debug-devel if kernel-debug) Suggests: (kernel-PAE-devel if kernel-PAE) Suggests: (kernel-PAEdebug-devel if kernel-PAEdebug) Suggests: (kernel-lpae-devel if kernel-lpae) Suggests: (kernel-rt-devel if kernel-rt) } ---- But I wonder if kernel-rt implements kernel-devel-uname-r Updated patch in the kernel mailing list: https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org/thread/6KCGSOP77VEGRC5UNC2FMRFEPEY2WSQ5/ This patch does not handle: - The installation of the appropriate variant. This can be handled elsewhere by using Requires: (kernel-devel if kernel) , etc. - The case where the installed kernel-devel-uname-r is already higher than the kernel package been installed. The reason is that I need to use >= instead of = for the dependency to avoid having the 3 kernel (last + 2 failbacks) to emit each one a dependency on a kernel-devel-uname when only the last one is installed. (the older ones are likely not available anymore from the repos). *** Bug 1298126 has been marked as a duplicate of this bug. *** FYI, I'm dropping this RFE, despite the current patch works fine in most common cases, it's way too much a problem in few corner cases (IIRC, like downgrading kernel, switching to kernel-rt or else...) Indeed, this request doesn't seem relevant any more due to VirtualBox (see bug #1294173, now EOL) made its dependency to DKMS as optional. |