From: Stefano Zacchiroli Date: Fri, 2 Jun 2006 16:53:27 +0000 (+0000) Subject: use &ocaml-sys-dir; to refer to the current ocamlc -where directory X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~641^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2c327e4db968f2381efc7a0bde58744170e0def0;p=ocaml.git use &ocaml-sys-dir; to refer to the current ocamlc -where directory --- diff --git a/chapter-generalities.xml b/chapter-generalities.xml index 2119131e..db03cc6e 100644 --- a/chapter-generalities.xml +++ b/chapter-generalities.xml @@ -58,7 +58,7 @@ 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/&ocaml-version;. It can be output + &ocaml-sys-dir;. It can be output by the OCaml compiler invoking it as ocamlc -where. diff --git a/chapter-libpack.xml b/chapter-libpack.xml index df5d691d..6469733c 100644 --- a/chapter-libpack.xml +++ b/chapter-libpack.xml @@ -56,7 +56,7 @@ Paths for libraries - Libraries should be installed in /usr/lib/ocaml/&ocaml-version;/ or in a subdirectory of this directory. This includes in particular bytecode libraries (*.cma), native libraries (*.cmxa), bytecode object files (*.cmo), native object files (*.cmx), static libraries (*.a) and META files. The only exception to this rule is for shared libraries (dll*.so) which should be installed in /usr/lib/ocaml/&ocaml-version;/stublibs, as can it be seen in the /usr/lib/ocaml/&ocaml-version;/ld.conf file. + Libraries should be installed in &ocaml-sys-dir;/ or in a subdirectory of this directory. This includes in particular bytecode libraries (*.cma), native libraries (*.cmxa), bytecode object files (*.cmo), native object files (*.cmx), static libraries (*.a) and META files. The only exception to this rule is for shared libraries (dll*.so) which should be installed in &ocaml-sys-dir;/stublibs, as can it be seen in the &ocaml-sys-dir;/ld.conf file. @@ -71,7 +71,7 @@
Handling dependencies on OCaml - Some parts of the package need to know the current version of OCaml. For example, libraries should be installed /usr/lib/ocaml/&ocaml-version;/. However, the current version of OCaml should never be hardcoded in the package (&ocaml-version; here). This would make a binNMU impossible when the version of OCaml changes. Instead .in files should be used where @OCamlABI@ is replaced at build-time by the current OCaml version. + Some parts of the package need to know the current version of OCaml. For example, libraries should be installed &ocaml-sys-dir;/. However, the current version of OCaml should never be hardcoded in the package (&ocaml-version; here). This would make a binNMU impossible when the version of OCaml changes. Instead .in files should be used where @OCamlABI@ is replaced at build-time by the current OCaml version. @@ -142,7 +142,7 @@ - For example, the META file for the lablgtk library is named META and has path /usr/lib/ocaml/&ocaml-version;/lablgtk/META, where /usr/lib/ocaml/&ocaml-version; is the main OCaml installation directory and lablgtk is the lablgtk library directory. + For example, the META file for the lablgtk library is named META and has path &ocaml-sys-dir;/lablgtk/META, where &ocaml-sys-dir; is the main OCaml installation directory and lablgtk is the lablgtk library directory. @@ -204,7 +204,7 @@ &camlp4; Actually, &camlp4; extensions are stored in - /usr/lib/ocaml/&ocaml-version;/camlp4/. In order to do something + &ocaml-sys-dir;/camlp4/. In order to do something cleaner, &ocaml-force; proposes to put this files in their own directory, even in their own package. It is not mandatory, but it could ease a lot by avoiding name clashes. @@ -214,7 +214,7 @@ You just have to consider a &camlp4; file just as a standard library, except that you prefix them with -syntax. For example: the syntax extension coming with libokey-ocaml-dev should be stored - in /usr/lib/ocaml/&ocaml-version;/okey-syntax/, the package + in &ocaml-sys-dir;/okey-syntax/, the package containing it should be called libokey-syntax-ocaml-dev.