Bug 520788

Summary: missing scriptlet dependencies: /sbin/new-kernel-pkg
Product: [Fedora] Fedora Reporter: Stepan Kasal <kasal>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: itamar, kernel-maint, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-02 13:40:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stepan Kasal 2009-09-02 12:21:44 UTC
/sbin/new-kernel-pkg is required for %post, %preun, and %posttrans scriptlets.

But the only dependency in kernel.spec is
   Requires(pre): /sbin/new-kernel-pkg

Instead, to reflect the use in %post and %preun, it should be
   Requires(post): /sbin/new-kernel-pkg
   Requires(preun): /sbin/new-kernel-pkg

It does not seem to be possible to encode the %posttrans scriptlet dependency correctly, but I would suggest the following hack:
   Requires(postun): /sbin/new-kernel-pkg

Comment 1 Stepan Kasal 2009-09-02 12:22:57 UTC
The issue was discovered in:
http://bugzilla.redhat.com/show_bug.cgi?id=520426#c2

Comment 2 Dave Jones 2009-09-02 13:40:48 UTC
added to cvs. thanks.

Comment 3 Dave Jones 2009-09-02 13:40:59 UTC
added to cvs. thanks.