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 1486378

Summary: Provides and obsoletes added in 13-0.3 don't work
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: shim-signedAssignee: Peter Jones <pjones>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rawhideCC: dennis, kevin, mjg59, pjones, robatino
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: 2017-08-30 12:06:48 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: 1396702    

Description Adam Williamson 2017-08-29 15:27:43 UTC
The Provides: (for shim and shim-signed) and Obsoletes: (for shim-signed) that were added in the 13-0.3 build don't actually work:

[adamw@xps13k tmp]$ rpm -qp --provides shim-x64-13-0.3.x86_64.rpm 
warning: shim-x64-13-0.3.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f5282ee4: NOKEY
bundled(openssl) = 1.0.2j
shim-signed-x64 = 13-0.3
shim-x64 = 13-0.3
shim-x64(x86-64) = 13-0.3

[adamw@xps13k tmp]$ rpm -qp --obsoletes shim-x64-13-0.3.x86_64.rpm 
warning: shim-x64-13-0.3.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f5282ee4: NOKEY
shim < 13-0.3

I believe this is because (due to the define_pkg macro) they come after the subpackage description, which I think kinda 'closes' the subpackage metadata block. I think these Provides: and Obsoletes: would be applied to the main package (shim-signed), except we don't actually produce that package, so they just kinda...disappear into the ether. But I haven't actually checked this against the RPM documentation (hah) or whatever, it's just my guess.

This is a clear Fedora 27 Beta blocker, because it breaks UEFI installs: anaconda expects to install the package 'shim' for UEFI installs (through the bootloader class stuff), and there is nothing to provide 'shim', so it just dies.

Comment 1 Adam Williamson 2017-08-30 12:06:22 UTC
Confirmed fixed in 13-0.4 - https://koji.fedoraproject.org/koji/buildinfo?buildID=962873 .

Comment 2 Adam Williamson 2017-08-31 15:23:24 UTC
Update here: 13-0.4 was not actually tagged for anything. It was built after the Bodhi activation point for F27 so it didn't go into F27 directly, and Peter didn't tag it for Rawhide.

Kevin is going to just tag it for both (bypassing Bodhi for F27) and refire the composes.