How to build kernel-sourcecode-2.6.8-1.525
Marcel J.E. Mol
marcel at mesa.nl
Sat Aug 21 18:07:08 UTC 2004
On Sat, Aug 21, 2004 at 04:53:09PM +0200, Martin Gansser wrote:
>
> > > 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
Check the spec file again. From that I learned that a
'touch /etc/beehive-root' before the rpmbuild should do it.
-Marcel
--
======-------- Marcel J.E. Mol MESA Consulting B.V.
=======--------- ph. +31-(0)6-54724868 P.O. Box 112
=======--------- marcel at mesa.nl 2630 AC Nootdorp
__==== www.mesa.nl ---____U_n_i_x______I_n_t_e_r_n_e_t____ The Netherlands ____
They couldn't think of a number, Linux user 1148 -- counter.li.org
so they gave me a name! -- Rupert Hine -- www.ruperthine.com
More information about the fedora-devel-list
mailing list