Bug 5756 - ENHANCEMENT PATCH for scripts/package/mkspec (binrpm-pkg)
Summary: ENHANCEMENT PATCH for scripts/package/mkspec (binrpm-pkg)
Status: REJECTED INVALID
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: i386 Linux
: P2 low
Assignee: Sam Ravnborg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-17 07:09 UTC by Matthew Daniel
Modified: 2007-05-31 11:29 UTC (History)
0 users

See Also:
Kernel Version: 2.6.14.4
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
Patch against scripts/package/mkspec (1005 bytes, patch)
2005-12-17 07:11 UTC, Matthew Daniel
Details | Diff

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.

Note You need to log in before you can comment on or make changes to this bug.