Bug 1367929

Summary: kernel-4.8.0-0.rc2.git1.1.fc26 isn't giving correct dependencies - "uname -r" isn't getting parsed
Product: [Fedora] Fedora Reporter: Peter Gervase <pgervase>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: awilliam, lkardos, novyjindrich, packaging-team-maint, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-17 21:05:54 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 Peter Gervase 2016-08-17 20:50:28 UTC
Description of problem:
When trying to install a kernel, "uname -r" is getting written out in the rpm dependency:
$ sudo rpm -ivh kernel-4.8.0-0.rc2.git1.1.fc26.x86_64.rpm 
error: Failed dependencies:
        kernel-core-uname-r = 4.8.0-0.rc2.git1.1.fc26.x86_64 is needed by kernel-4.8.0-0.rc2.git1.1.fc26.x86_64
        kernel-modules-uname-r = 4.8.0-0.rc2.git1.1.fc26.x86_64 is needed by kernel-4.8.0-0.rc2.git1.1.fc26.x86_64


Version-Release number of selected component (if applicable):
rpm-4.13.0-0.rc1.41.fc26.x86_64
kernel-4.8.0-0.rc2.git1.1.fc26.x86_64.rpm

How reproducible:
100%

Steps to Reproduce:
1. try to install the rpm as shown above
2.
3.

Actual results:
dep errors that have wrong rpm name

Expected results:
$ sudo rpm -ivh kernel-4.8.0-0.rc2.git1.1.fc26.x86_64.rpm 
error: Failed dependencies:
        kernel-core-4.8.0-0.rc2.git1.1.fc26.x86_64 = 4.8.0-0.rc2.git1.1.fc26.x86_64 is needed by kernel-4.8.0-0.rc2.git1.1.fc26.x86_64
        kernel-modules-4.8.0-0.rc2.git1.1.fc26.x86_64 = 4.8.0-0.rc2.git1.1.fc26.x86_64 is needed by kernel-4.8.0-0.rc2.git1.1.fc26.x86_64

Additional info:

Comment 1 Adam Williamson 2016-08-17 21:05:54 UTC
This isn't a bug, you're just not installing the right packages :)

You need to install kernel-core-4.8.0-0.rc2.git1.1.fc26.x86_64.rpm and kernel-modules-4.8.0-0.rc2.git1.1.fc26.x86_64.rpm as well as kernel-4.8.0-0.rc2.git1.1.fc26.x86_64.rpm . If you look at the provides of the kernel-core and kernel-modules packages you'll see they actually provide 'kernel-core-uname-r' and 'kernel-modules-uname-r'.