On Tue, Mar 03, 2009 at 03:45:34PM -0500, Hezekiah M. Carty wrote:
> On Tue, Mar 3, 2009 at 2:36 PM, Andrew Ross <[email protected]> wrote:
> >
> > Hez (and any other interested parties),
> >
> > I notice that current plplot is installing the ocaml bindings in
> > ${CMAKE_INSTALL_PREFIX}/lib/${OCAML_VERSION}. This seems rather unwise.
> > There is no guarantee what the ocaml version will mean anything to anyone or
> > that it will not clash with another package. Far better, and consistent with
> > debian ocaml policy and other languages would be to install in, for example,
> > /usr/lib/ocaml/3.10.2/ . Unless anyone objects I propose making this change.
> >
> > Andrew
> >
>
> Andrew,
>
> I think this came up in the early integration of the OCaml bindings
> with PLplot. The argument against doing this, if I recall correctly,
> is that files are then installed outside of the CMAKE_INSTALL_PREFIX
> directory. If that is still a major concern, perhaps this could be
> changed with a configuration-time cmake flag?
>
> If this change is made (and I hope it is!), I think the best way to go
> is to use ocamlfind to install if it is available:
>
> ocamlfind install plplot list-of-files-to-install
>
> This command will put all of the files in the appropriate directory
> and should work (at least) on Debian, Fedora and GODI compiled OCaml
> installations. Here "list-of-files-to-install" is a space-separated
> list of files which should be installed for the OCaml bindings.
>
> Otherwise, if ocamlfind is not available, the command:
>
> `ocamlc -where`/plplot/
>
> will give an appropriate location for installing the OCaml libraries
> (/usr/lib/ocaml/3.10.2/plplot/ on Ubuntu or Debian with 3.10.2, for
> example). Though I imagine a more platform-neutral form of getting
> the output from that command is available with cmake. I think this
> is how Debian (and therefore Ubuntu) OCaml libraries are installed.
>
> Some example Debian package listings which may be of assistance as
> illustrations of the results of an installation like this:
>
> http://packages.debian.org/sid/amd64/libcairo-ocaml-dev/filelist
> http://packages.debian.org/sid/amd64/libpcre-ocaml-dev/filelist
>
> I think the findlib method is ideal, as that makes it very easy to get
> the right files in the right places. However, either method should
> work well.
>
> Does PLplot's cmake-generated Makefile provide an uninstallation
> target? If so, then ocamlfind-based installs can be removed by:
>
> ocamlfind remove plplot
>
> and non-ocamlfind installs can be removed by deleting the `ocamlc
> -where`/plplot/ directory and its contents.
>
> I hope this explains the process reasonably. Please let me know if it
> does not! A change of this sort would likely make things much easier
> on OCaml PLplot users.
Hi Hez,
Sorry - I know we went through all the ocamlfind arguments before. I wasn't
suggesting revisiting that! What I was suggesting was installing in
${CMAKE_INSTALL_PREFIX}/lib/ocaml/${OCAML_VERSION}
which is consistent with the "plplot" way of doing things, and will also put
it in the "correct" place on at least Debian systems.
I'll commit the change anyway.
Andrew
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel