On 2008-09-03 08:49+0100 Andrew Ross wrote:

> On Tue, Sep 02, 2008 at 10:58:52PM -0600, [EMAIL PROTECTED] wrote:
>> Looks like OCAML_INSTALL_DIR should be set to the output of "ocaml
>> -where".  This will allow for the differences in Debian and Fedora (and
>> other) install locations.
>>
>> Debian guidelines:
>>
>> 1.3.2. OCaml Location
>>
>>    The root of all installed OCaml libraries is the OCaml standard
>>    library directory, which is /usr/lib/ocaml/VERSION/, at the
>>    time of writing /usr/lib/ocaml/3.10.2. This location can be
>>    obtained from the OCaml compiler by invoking it as ocamlc
>>    -where.
>>
>>
>> Fedora:
>>
>> %{_libdir}/ocaml/foolib
>>
>> On x86_64:
>> mock-chroot> ocamlc -where
>> /usr/lib64/ocaml
>
> Orion,
>
> I discussed this with Hez when implementing the cmake support for ocaml.
> In my opinion a defaul build should have everything as a subdirectory of
> the install tree prefix (CMAKE_INSTALL_PREFIX). What if you are
> installing on a system without root access? What if you are testing
> different versions? This is what we do for all other languages.

I think a good compromise here is to use "ocamlc -where" results but with the
install prefix substituted for the system prefix.  IIRC, this is what we do
in the python case where we also have to deal with versioned and
distribution dependent install directories.

The result would be $prefix/lib/ocaml/3.10.2 on Debian
and $prefix/lib64/ocaml on Fedora so both sets of packagers get the
right result automatically when $prefix is /usr, and users who want/need
a non-root install prefix are allowed to have one.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to