[OpenAFS-devel] [PATCH] change OpenAFS-1.2.10 SRPM to work better with RedHat

David Howells dhowells@redhat.com
Mon, 18 Aug 2003 14:01:04 +0100


> > That really only leaves the other question: can we, after these changes,
> > still build for other than just the most recent kernel version whose
> > source is installed?
> 
> It sounded like it would work, but not "automatically"..  If I were to
> incorporate this change back into the SPEC file I use then I'd make
> sure it did iterate through all the kernels and build them all.

With the extra change I've suggested (plus a couple more that might be useful
to make building more controllable), this can be automated very easily - from
outside of the spec file - which is the correct place to do it IMO.

Another reason for stripping that building against multiple kernel sources is
that it RPM can't do prerequisite dependency properly otherwise. And not being
able to do that renders automated package delivery more difficult.

Although it might be nice to have the spec file generate an arbitrary list of
RPMs for the various kernels that it can only find out about by listing
/lib/modules, I don't think it's possible from within the spec file.

David