On Monday 24 October 2005 23:44, Bernard Li wrote:
> > REMEMBER: We decided to make OS_Detect be, quite literally, the 
> > gatekeeper for all OSCAR supported systems.  Specifically, if 
> > OS_Detect 
> > says that this is an unsupported system, then install_cluster will 
> > refuse to run.  Hence, the modules in OS_Detect must be 
> > updated when we 
> > include support for a new system (e.g., write a short 
> > CentOS.pm and/or 
> > ScientificLinux.pm and/or ...).
> 
> I remember when we discussed this previously, we wanted to be able to
> allow the user to say well CentOS is similar to RHEL4, and since RHEL4
> is supported, then CentOS should work too...  how should we handle these
> cases?  Would the user be required to write a .pm file for the
> framework?

I suggest we add a field which shows to which distros we aer compatible.
So Centos.pm would create:
    linux_distro => "centos",
    linux_distro_version => $centos_release,
and (NEW)
    compat_distro => "redhat",
    compat_distro_version => $centos_release,

compat_distro_version might need some "translation". The generic-setup thing
would then use the compat_distro, and if it doesn't find it, the linux_distro
entry. Or the other way round.

Actually I'd prefer to split up Fedora.pm into Fedora3.pm, Fedora4.pm,
etc. When we remove support for a distro, we simply remove the .pm file. Same
for Redhat, instead of building complicated ifdefs into the .pm file (for
recognising the different version strings), it is easier to split them up
across the single files like rhel3.pm, rhel4.pm. The if-block is implicitly
built into the OCA framework, no need to make the distro files recognize more
than one main version. If someone wants code reusage, we can easilly integrate
the common code into OS_Detect and simplify the distro.pm files later.

Regards,
Erich



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to