Bug 5756

Summary: ENHANCEMENT PATCH for scripts/package/mkspec (binrpm-pkg)
Product: Other Reporter: Matthew Daniel (bugzilla)
Component: OtherAssignee: Sam Ravnborg (sam)
Status: REJECTED INVALID    
Severity: low    
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.14.4 Subsystem:
Regression: --- Bisected commit-id:
Attachments: Patch against scripts/package/mkspec

Description Matthew Daniel 2005-12-17 07:09:50 UTC
Distribution: Fedora Core 4 and all other RPM based distros
Problem Description: The mkspec script can be smarter about managing the 
lifecycle of an installed kernel.

There are two "bugs" addressed by this patch, and one enhancement that 
WorksForMe.

The RPM build should always clean its %buildroot ($RPM_BUILD_ROOT) because it is 
the one who fills it. If not, you ends up with two copies of the kernel, one in 
the rpm and one in %buildroot.

The RPM build should be smarter about detecting CONFIG_DRM, because a kernel can 
provide kernel-drm if the CONFIG_DRM=m as well.

The enhancement is to include %post and %postun scripts that run mkinitrd and 
grubby to register the new kernel with the system boot loader.

Steps to reproduce:
1. unpack kernel source
2. patch -p1 < mkspec.patch
3. make binrpm-pkg
4. enjoy

I'm sorry, I didn't see how to flag this as "request for enhancement".
Comment 1 Matthew Daniel 2005-12-17 07:11:11 UTC
Created attachment 6852 [details]
Patch against scripts/package/mkspec
Comment 2 Dave Jones 2007-05-31 11:29:28 UTC
This should go to linux-kernel@vger.kernel.org rather than bugzilla.

enhancements don't really get tracked here.