[ATrpms-users] How to build rpm for kernel that isn't in repo?
Craig Huff
huffcslists at gmail.com
Sat May 3 02:07:52 CEST 2008
On Sat, Mar 22, 2008 at 6:34 PM, Axel Thimm <Axel.Thimm at atrpms.net> wrote:
>
<snip>
>
> > Is the correct sequence:
> >
> > 1) Download the appropriate source rpm from the CentOS repository and
> > unpack it with rpm -i <downloaded file name>
> > 2) Download the closest Suspend2 source rpm from Matthias Hensler's
> > repository and unpack it with rpm -i <downloaded file name>
> > 3) Make a copy of the Suspend2 spec file installed by step 2 in
> > /usr/src/redhat/SPECS renamed to match the kernel version I want to
> > build
> > 4) Review and modify as required the new spec file
> > 5) Build the new kernel with "rpmbuild -ba --target=i686 <new kernel
> > version spec file name>"
> > 6) Return to step 4 if there are errors until the build produces no
> > error messages
>
<snip>
>
> --
> Axel.Thimm at ATrpms.net
>
Axel,
Clearly, since it has been over a month since the last post on this
thread, I don't have a lot of time on my hands this spring ;-(
I finally had a chance to look more closely at this and was reading
the man-page (or is it an info-page?) for rpmbuild. It raised a
question when it discussed the %install section of the .spec file
which I was hoping you could clarify. I want to build from sources
and create the .rpm and .src.rpm of a kernel that has additional
patches applied, but I **do not** want to install the kernel on the
system I am building the .rpm and .src.rpm on. I get the impression
that rpmbuild **will** install the kernel on this system. Is that
correct? If so, is there a way (command-line option I overlooked?)
which will tell rpmbuild to build but not install, or am I
misunderstanding the function of the %install section in the first
place?
Thanks again for your patience and help.
Craig.
More information about the atrpms-users
mailing list