How to build kernel-sourcecode-2.6.8-1.525

Martin Gansser mgansser at ngi.de
Sat Aug 21 14:53:09 UTC 2004


> > 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

rpmbuild --rebuild --target=noarch kernel-2.6.8-1.525.src.rpm

builds only:

Wrote:/usr/src/redhat/RPMS/noarch/kernel-doc-2.6.8-1.525.root.noarch.rpm


now i found a solution:

first i exstract the spec file 

- rpmbuild --rebuild --target=i686-linux kernel-2.6.8-1.525.src.rpm
- edit the kernel spec file: kernel-2.6.spec
  set %define buildsource 0 to %define buildsource 1

rebuild:

rpmbuild -ba --target=noarch kernel-2.6.spec


my last question, why is the name of the rpm 

kernel-sourcecode-2.6.8-1.525.root.noarch.rpm
                              ^^^^ 
is it possible to get a name like this ?
kernel-sourcecode-2.6.8-1.525.noarch.rpm


-- 
mfg. Martin





More information about the fedora-devel-list mailing list