[PlanetCCRMA] kernel source confusion: enlightened

Frode Petersen fropeter@online.no
Wed Mar 15 11:37:01 2006


Thank you very much, Fernando! That helped.

In case someone else needs the information, here's what I had to 
change/did wrong:

Fernando Lopez-Lezcano wrote:
> On Wed, 2006-03-15 at 15:28 +0100, Frode Petersen wrote:
>>I'm trying to install the kernel source using the 
>>2.6.14-0.10.rrt.src.rpm file.

>>Then, as instructed in the FC3 release notes (pasted at the bottom), I 
>>run (from the /usr/src/redhat/SPECS):
>>
>>	rpmbuild -bp --target=i386 kernel.spec
>>

There is no i386 target. My kernel is built against an i686 target, as 
the kernel package name indicates. ( I just thought i386 vs x86_64)

>>which gave the following output:
>>
>>Building target platforms: i386
>>Building for target i386
>>error: line 194: Dependency tokens must begin with alpha-numeric, '_' or 
>>'/': Prereq: %{kernel_prereq}
>>[root@x SPECS]#
>>
>>I don't know whether it's helpful, but here are the lines in question:
>>
>>194: Prereq: %{kernel_prereq}
>>
>>referring to:
>>
>>177: %{?fc4:%define kernel_prereq  fileutils, module-init-tools, 
>>initscripts >= 5.83, mkinitrd >= 4.2.15-1}
> 
> Hmm, sorry, "fc4" is not defined by default - I use it for my build
> system. Change "%{?fc4:xxxx}" to just "xxxx". 
> 
> -- Fernando
> 

Line 177:
Remove "%{?fc4:" at the beginning and the final '}' at the end, and do 
the same on line 158 (where package_conflicts is defined).
I commented out the two lines referring to fc3, but that is probably not 
necessary.

Would it be a good idea to define "fc4" instead? If so: how?

Frode