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

Sun Aug 20 20:03:01 UTC 2006
bruce <bedouglas at earthlink.net>

stephen/smooge!

thanks for the reply...

not a school project, a machine is having intermittent crashes, and i want
to know more detailed information.. so i need to have a debug kernel in
order to keep testing.

the issue with the kernel-debuginfo, is that it appears to essentially be
the OS with the debug/symbolic information. you apparently don't actually
run the rpm/app after it's installed.. but it gives the 'crash' app the
ability to match/resolve symbolic information in the event of a crash/hang
within the OS....

you supplied me with info that i had eventually found after hours of
searching... i had created debug kernel scenarios years ago, but needed to
be sure things hadn't changed...

thanks



-----Original Message-----
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org]On
Behalf Of Stephen John Smoogen
Sent: Sunday, August 20, 2006 9:47 AM
To: CentOS mailing list
Subject: Re: [CentOS] build Centos source/rpms from scratch...


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"
_______________________________________________
CentOS mailing list
CentOS at centos.org
http://lists.centos.org/mailman/listinfo/centos