[CentOS-devel] kernel-sourcecode RPM?

Johnny Hughes mailing-lists at hughesjr.com
Tue Nov 22 04:46:16 UTC 2005


On Mon, 2005-11-21 at 23:34 -0500, Charlie Brady wrote:
> I notice that CentOS 4.2 has no kernel-sourcecode RPM, unlike 4.0 and 4.1. 
> Is that intentional or an oversight?
> 
> ---
> Charlie

I was intentional

The kernel-sourcecode package has been changed by RH so as to be
absolutely worthless :)

It is a noarch rpm now, which means that none of the arch specfic
patches are installed when it is created.

It therefore creates kernels that are not like the actual kernels.

Better way to get a real (and patched) kernel source tree is to install
the kernel source RPM

rpm -Uvh kernel-xxxxx.src.rpm

then to go to the SPEC directory ... normally /usr/src/redhat/SPECS ...
and do this:

rpmbuild -bp --target i686 kernel-2.6.spec

(or i586, x86_64, etc.)

Then go to the BUILD directory ... normally /usr/src/redhat/BUILD ...
and the patched tree is there.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.centos.org/pipermail/centos-devel/attachments/20051121/f5a02fee/attachment.bin


More information about the CentOS-devel mailing list