How to build kernel-sourcecode-2.6.8-1.525

Paul W. Frields paul at frields.com
Sat Aug 21 13:59:35 UTC 2004


On Sat, 2004-08-21 at 08:57, Martin Gansser wrote:
> Am Sa, den 21.08.2004 schrieb David Woodhouse um 14:42:
> > On Sat, 2004-08-21 at 14:14 +0200, Martin Gansser wrote:
> > > hi,
> > > 
> > > i tried to build kernel-sourcecode-2.6.8-1.525
> > > from src.rpm with the following command:
> > > 
> > > 
> > > rpmbuild --rebuild --target=i686-linux kernel-2.6.8-1.525.src.rpm
> > 
> > kernel-sourcecode is noarch.
> 
> sorry, but this is not a answer of my question.
> how do i get the sources from kernel-2.6.8-1.525.src.rpm,
> I remeber in the past, if I rebuild with the command
> 
> rpmbuild --rebuild --target=i686-linux kernel-2.6.8-1.525.src.rpm
> 
> a package kernel-sourcecode-2.6.xxx.noarch.rpm was build.

Actually, it *was* an answer, at least of sorts. If you read the .spec
file, you'll see that you need to e.g. give --target=noarch to build
kernel-sourcecode. It looks to me that the default %buildsource is 0
unless overridden, and that only happens %ifarch noarch. Corrections are
welcome.

-- 
Paul W. Frields, RHCE





More information about the fedora-devel-list mailing list