| 1 |
OCaml for Debian |
| 2 |
---------------- |
| 3 |
|
| 4 |
1) The OCaml package has been split into different binary packages: |
| 5 |
|
| 6 |
o ocaml: contains the full OCaml suite |
| 7 |
o ocaml-base: contains the runtime stuff (ocamlrun + dlls) |
| 8 |
|
| 9 |
o ocaml-compiler-libs: contains several modules used internally by |
| 10 |
the OCaml compilers. They are not needed for normal OCaml |
| 11 |
development, but may be helpful in the development of certain |
| 12 |
applications. |
| 13 |
o ocaml-source: contains the full OCaml source for the (few) packages which |
| 14 |
need them at build time or for personal use (it should _not_ be used to |
| 15 |
build OCaml itself). |
| 16 |
|
| 17 |
o ocaml-mode: contains a major mode for editing OCaml files in Emacs. |
| 18 |
|
| 19 |
2) The caml include files are found under /usr/lib/ocaml/<ocaml_version>/caml. |
| 20 |
A symlink is provided from /usr/include/caml for convenience. If |
| 21 |
/usr/include/caml was previously a directory, for whatever reason, a warning |
| 22 |
will be issued and the file moved to /usr/include/caml.bad. This can be |
| 23 |
safely erased later on. |
| 24 |
|
| 25 |
3) User-installed stuff should not go under /usr/lib/ocaml/<ocaml_version>, |
| 26 |
but rather under /usr/local/lib/ocaml/<ocaml_version>. |
| 27 |
We will take no responsibility for people who break this rule and mess things |
| 28 |
up. |
| 29 |
|
| 30 |
4) Starting from OCaml 3.05, all dll.so files are now put into a common |
| 31 |
stublibs directory, so the ocaml-ldconf tool for handling the ld.conf |
| 32 |
file is not needed anymore, but we will still keep it around until all |
| 33 |
libraries are ported. As of OCaml 3.08, ocaml-ldconf is now deprecated |
| 34 |
and not available anymore. |
| 35 |
Notice that user-installed dll.so files should go into |
| 36 |
/usr/local/lib/ocaml/<ocaml_version>/stublibs which is searched before |
| 37 |
/usr/lib/ocaml/<ocaml_version>/stublibs. |
| 38 |
|
| 39 |
-- Ralf Treinen <[email protected]>, Fri, 15 Jul 2016 22:08:59 +0200 |
| 40 |
|
| 41 |
ocamldoc's LaTeX output |
| 42 |
----------------------- |
| 43 |
|
| 44 |
ocamldoc can generated documentation in LaTeX format which can be later on |
| 45 |
compiled using a LaTeX environment. The LaTeX sources generated by ocamldoc |
| 46 |
exploits the fullpage.sty style, which is not included in a default texlive |
| 47 |
installation (the Debian LaTeX environment of choice). |
| 48 |
|
| 49 |
In order to be able to compile ocamldoc generated LaTeX sources you will need |
| 50 |
to install the "texlive-latex-extra" package. |
| 51 |
|
| 52 |
-- Stefano Zacchiroli <[email protected]> Sun, 02 Sep 2007 18:22:14 +0200 |
| 53 |
|
| 54 |
Debug information produced by ocamlc |
| 55 |
==================================== |
| 56 |
|
| 57 |
In upstream OCaml, “ocamlc -custom” produces executables that cannot |
| 58 |
be stripped (more precisely, the bytecode, which is not part of the |
| 59 |
ELF data, is removed by strip). This Debian version is patched (and |
| 60 |
the patch has been rejected by upstream [1], but is available |
| 61 |
separately in debian/patches) so that the bytecode is embedded in the |
| 62 |
executable and can be stripped. This new behaviour is optional, and |
| 63 |
can be enabled by setting the OCAML_CUSTOM_EMBED environment variable |
| 64 |
to “y”. |
| 65 |
|
| 66 |
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=49;bug=256900 |
| 67 |
|
| 68 |
-- Stéphane Glondu <[email protected]>, Tue, 26 Jun 2012 07:27:05 +0200 |