[CentOS] build Centos source/rpms from scratch...

Sun Aug 20 16:47:08 UTC 2006
Stephen John Smoogen <smooge at gmail.com>

On 8/19/06, bruce <bedouglas at earthlink.net> wrote:
> hi...
>
> thanks for the reply... your comments are reasonable. but you have to
> understand.. this is for a project... to simply gain additional/further
> information.. i'm not looking to replace Centos/RH... i was simply looking
> for docs/instructions on how to build Centos from source in both the
> regular/debug mode... no more.. no less...
>
> in all honesty, it should be rather simple, as i should be able to
> essentually use the same cmnds that are used to build the source rpms..
>
> the difficulty/lack of information is coming as i can't find anything that
> appears to relate to the 'debug-kernel' issue...
>
>

I am guessing this is for some school project...

The debug kernel you mentioned was only upstream in 2.1. The 'code' to
create the kernel-debug is in that spec file ONLY. Red Hat changed its
way of doing things and put all the debugging information in
-debuginfo packages sometime during the Fedora packages (FC3 was
stabilized into RHEL-4.. so Centos-4 would be your best bet to
creating all the debuginfo pacakges.)

In your 'build' system you will want to make sure that the rpmmacros
files do not have
%debug_package %{nil}

so that the automatic debug packages are created.

What google will tell you:
http://vault.centos.org/debuginfo/
https://www.redhat.com/magazine/012oct05/features/oprofile/


-- 
Stephen J Smoogen. -- CSIRT/Linux System Administrator
How far that little candle throws his beams! So shines a good deed
in a naughty world. = Shakespeare. "The Merchant of Venice"