[CentOS-devel] testing centos 5 kernels

Wed Mar 11 16:16:41 UTC 2009
Akemi Yagi (toracat) <toracat at centos.org>

On Wed, Mar 11, 2009 at 7:05 AM, Farkas Levente <lfarkas at lfarkas.org> wrote:
> Alan Bartlett wrote:
>> On 08/03/2009, Farkas Levente <lfarkas at lfarkas.org> wrote:

>>>  + make ARCH=i386 nonint_oldconfig
>>>  CONFIG_PATA_ISAPNP
>>>  make[1]: *** [nonint_oldconfig] Error 1
>>>  make: *** [nonint_oldconfig] Error 2

> ok so let me clarify this.
> imho keep the diff from rh's spec as little as possible is a good goal.
> on page sec 4:
> http://wiki.centos.org/HowTos/Custom_Kernel
> you wrote to delete/comment out the
> "if a rhel kernel, apply the rhel config options"
> part which is imho unnecessary, what's more wrong.

Levente,

Here's a bit of history on this subject.

When RHEL 5.0 came out, Johnny Hughes noticed that the centosplus
kernel could not be built any more using his usual procedure.  With
his great wisdom, he soon figured out what was causing the problem.
The spec file in RHEL5 had been rewritten in such a way that it now
applies RHEL's template to the config, which knocked off all the
changes he made to his config file.

So, his remedy for the issue was to remove that particular section you
are referencing, and at (almost) the same time he updated the Wiki
article with this new piece of information (to remove the offending
section).

I have built centosplus 5.3 kernels -128 and -128.1.1 with that block
removed without any issues.

Regarding the error you encountered, I have one suggestion/question
for you.  After running rpmbuild -bp, go to the BUILD directory
(appropriate place to run make), get the .config that you are going to
use (your customized version) and issue the command "make oldconfig".
Would it finish without prompting you to enter something?  Whenever I
modify the config, I run this test and make sure this command does not
require human intervention.  This is because, if it pauses and waits
for your input, then rpmbuild chokes at the step shown in your log
(make ARCH=i386 nonint_oldconfig).

I hope I provided some useful information for you.

Akemi