On Wed, Sep 3, 2008 at 10:58 AM, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > 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.
I have CC'd Richard Jones on this message. He has done the packaging for most of the available Fedora OCaml RPMs and can hopefully provide some input. Another option may be to add a "make ocaml-findlib-install" or similar OCaml specific target. The ocamlfind [1] tool provides a means to cleanly (un)install OCaml libraries and ease their use in compilation and linking of OCaml programs. This could potentially be useful both for people who have OCaml installed in a non-standard location and possibly for packagers as well. Or perhaps at least one of the OCaml packages in Fedora (the Cairo bindings) uses ocamlfind for installation of the package files according to the package SPEC file. My cmake knowledge is still extremely limited, but I would be happy to assist where I am able. Hez [1] - http://projects.camlcity.org/projects/findlib.html -- Hezekiah M. Carty Graduate Research Assistant University of Maryland Department of Atmospheric and Oceanic 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