On May 21, 2005, at 4:30 PM, Bernard Li wrote:

Perhaps it would make sense to maintain the RPMs for different distroes separately - i.e. have Requires for Red Hat like systems and not for Mandrake systems.� I checked the Requires for the 'official' LAM RPM for Fedora systems and they have explicit requires for libaio, libaio-devel and libaio.so.1, see:
http://www.rpmfind.net//linux/RPM/fedora/devel/i386/lam-7.1.1 -3.i386.html

We *do* maintain different RPMs for different distros.

I think what you meant to say was that we should maintain different .spec files for different distros. I am against this. We already maintain a different .spec file for OSCAR vs. the normal LAM/MPI .specfile, and it's a real PITA. I don't want to add *more* unique .spec files to the mix (and therefore have to maintain all of them).

P.S. Actually, can't you add some code in the SPEC file to only add the Requires if it's a Red Hat like system?

It's not just if it's a RH system -- it's whether the system has libaio or no (having configuration tests based on the type/version of the system is almost always a Bad Idea; it is far better to test for the specific behavior and/or characteristics that are in question -- thereby leading to future portability to unforseen systems). Whether a system has libaio or not is determined by LAM's configure -- I don't know how that would be propagated back to the .spec file (because, by definition, we're already building the RPM).

I can imagine an elaborate system that looks for libaio and builds a .spec file for that system, but that a) is a PITA, and b) won't work for simple "rpmbuild --rebuild lam...src.rpm".

--
{+} Jeff Squyres
{+} [EMAIL PROTECTED]
{+} http://www.lam-mpi.org/



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=click
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to