Red Hat Bugzilla – Bug 144529
rpmbuild from kernel-2.6.9-1.724_FC3.src.rpm fails
Last modified: 2015-01-04 17:15:01 EST
Description of problem:
One can't execute rpmbuild -bp with kernel-2.6.9-1.724_FC3.src.rpm.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rpm -ivh kernel-2.6.9-1.724_FC3.src.rpm
2. rpmbuild -bp --target=i686 kernel-2.6.spec
rpmbuild dies running oldconfig over all the config files.
Specifically make ARCH=i386 nonint_oldconfig trys to assign many nonexistent
cf. attached build log
Created attachment 109502 [details]
log from a failed rpmbuild
it's complaining about the lack of CONFIG_MEGARAID_LEGACY. (The other warnings
are just informational, and won't cause any problems).
Why it's doing that I'm not sure, as it's definitly defined here...
The problem no longer exists with kernel-2.6.10-1.737_FC3.src.rpm
FWIW, I think the problem was simply in the packaging. After I submitted the
bug, I noticed that the spec file, towards the end of pre, was iterating
oldconfig over a list of directories that it had generated by reading from the
BUILD tree on disc. Unfortunately, there was a spurious i386 subdirectory that
sent rpmbuild off trying to config an i386 kernel, which hasn't been supported
for some time.
In any case, a) the rpmbuild failure nonetheless left me with the bits I needed
to (attempt to) build a custom kernel for my Pentium M laptop (which wouldn't
compile with the tweaks i wanted anyway), and b) the latest kernel src.rpm
doesn't suffer from the problem (and I built my custom kernel w/o problems).