Bug 1986132

Summary: No matching kernel-headers package available
Product: [Fedora] Fedora Reporter: Kevin Mittman <kmittman>
Component: kernel-headersAssignee: Justin M. Forbes <jforbes>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: acaringi, jforbes, lgoncalv, pbrobinson, ptalbert
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-26 20:02:29 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:

Description Kevin Mittman 2021-07-26 17:55:33 UTC
Description of problem:
The kernel-headers packages matching available Linux kernels are missing in Fedora 34 repository. There are kernel-headers available but not for the exact versions.

Version-Release number of selected component (if applicable): kernel 5.11.12-300.fc34 and 5.13.4-200.fc34


How reproducible:
Every time

Steps to Reproduce:
1. $ sudo dnf install kernel-headers-$(uname -r) kernel-devel-$(uname -r)
2. $ dnf list --showduplicates kernel-core
Last metadata expiration check: 0:11:45 ago on Mon Jul 26 17:31:23 2021.
Available Packages
kernel-core.x86_64                 5.11.12-300.fc34        fedora 
kernel-core.x86_64                 5.13.4-200.fc34         updates
3. $ dnf list --showduplicates kernel-headers
Last metadata expiration check: 0:11:51 ago on Mon Jul 26 17:31:23 2021.
Available Packages
kernel-headers.x86_64              5.11.11-300.fc34        fedora 
kernel-headers.x86_64              5.13.3-200.fc34         updates
4. $ dnf list --showduplicates kernel-devel  
Last metadata expiration check: 0:11:55 ago on Mon Jul 26 17:31:23 2021.
Available Packages
kernel-devel.x86_64                5.11.12-300.fc34        fedora 
kernel-devel.x86_64                5.13.4-200.fc34         updates


Actual results:
No match for argument: kernel-headers-5.13.4-200.fc34.x86_64
Error: Unable to find a match: kernel-headers-5.13.4-200.fc34.x86_64

No match for argument: kernel-headers-5.11.12-300.fc34.x86_64
Error: Unable to find a match: kernel-headers-5.11.12-300.fc34.x86_64

Expected results:
Matching package for kernel-headers to be available and install. 
Instead headers are available for 5.11.11-300 (expected 5.11.12-300) and 5.13.3-200 (expected 5.13.4-200)

Additional info:
This prevents NVIDIA kernel modules successfully building with DKMS

Comment 1 Peter Robinson 2021-07-26 20:02:29 UTC
We only ship new headers in minor releases if the headers have actually changed. There was no changes in the 5.13.4 headers so the 5.13.3 headers work just fine.

kernel-headers.x86_64              5.13.3-200.fc34         updates

Comment 2 Justin M. Forbes 2021-07-26 23:03:55 UTC
More specifically, you do not need matching kernel-headers packages to build a kernel module, the kernel-headers package has nothing to do with building kernel modules.  The kernel headers used to build kernel modules are in the kernel-devel package, which is built with every kernel.  The "kernel-headers" package is the userspace API headers used to build userspace software.  Fore more background on this, see:   https://www.labbott.name/blog/2019/11/16/what-s-a-kernel-headers-package-anyway/ and http://thorstenl.blogspot.com/2021/01/package-names-can-be-false-friends-too.html