[CentOS-devel] kernel-sourcecode RPM?

Tue Nov 22 10:48:02 UTC 2005
Karanbir Singh <mail-lists at karan.org>

Charlie Brady wrote:
>> The kernel-sourcecode package has been changed by RH so as to be
>> absolutely worthless :)
>>
>> rpmbuild -bp --target i686 kernel-2.6.spec
>>
>> (or i586, x86_64, etc.)
> 
> 
> [Arch shouldn't matter for -bp, as %prep is architecture agnostic.]

Have you actually tried this out before ?

try this :
-------------
rpmbuild -bp --target i686 kernel-2.6.spec
mv ../BUILD/kernel-2.6.9 ../BUILD/kernel-2.6.9.i686

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

cd ../BUILD
diff -uNr kernel-2.6.9.i686 kernel-2.6.9 | wc -l
15431
-------------

Can we, therefore, safely assume that source setup after a '-bp' is not 
that arch independent really?

> Is the kernel-sourcecode RPM you built anywhere that I can get it?

There is no kernel-sourcecode built by the CentOS buildsystem by default 
( anymore ).

If you really need it - go grab the .src.rpm and rebuild to suite your 
role / application requirement.


-- 
Karanbir Singh : http://www.karan.org/ : 2522219 at icq