[ATrpms-users] How to build rpm for kernel that isn't in repo?

Craig Huff huffcslists at gmail.com
Sun Mar 23 03:05:13 CET 2008


On Sat, Mar 22, 2008 at 6:34 PM, Axel Thimm <Axel.Thimm at atrpms.net> wrote:
>  I think tuxonice for CentOS has great potential. Matthias is already
>  offering builds although not as regular as the Fedora ones (probably
>  because his working systems are mostly Fedora I guess).
>
>  So having someone to help Matthias on that who keeps a sharp eye on
>  CentOS/RHEL kernel releases will certainly help improve the picture at
>  CentOS. :)
>
Hopefully I can do some of that.

>
>  > 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
>
>  I think this is mostly the picture. Add a
>
>  4b or 5b) Communicate with Matthias and other suspend2/tuxonice pros
>           interested in the RHEL/Fedora world
>
Fair enough!

>
>  > Does the Suspend2 source rpm need to be unpacked each time a new
>  > CentOS kernel is unpacked (i.e. does the CentOS kernel source
>  > overwrite files from the Suspend2 source that are needed)?
>
>  I'm not sure what you mean - the suspend2 sources are actually patches
>  to the kernel, so they do overwrite in a defined manner. If the kernel
>  sources deviate too much from the previous ones you need to adjust the
>  patches of course.

Ahh!  As the light dawns, it sounds kinda like something from a Dr.
Seuss book -- I said what I meant but I didn't mean what I said.  As
far as step 2) in the sequence, I was talking about the srpms from
Matthias' repository which I think are ready-to-build <insert favorite
distro here> sources with Suspend2 patches and the appropriately
modified rpm spec file all in one package.  What I should be working
with (reading between the lines of your response) is the Suspend2
sources, which, I guess, I should be downloading from the
Suspend2/TuxOnIce website.  Is that correct?

Craig.



More information about the atrpms-users mailing list