From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q280R4CN018067 for ; Thu, 8 Mar 2012 01:27:04 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArwDAJ/8V09KN1ZKlWdsb2JhbABEhTSwFwEBAQEJCwkJEimCNFY1AhgOAj8KCgwbiAAEB6dBkhmBL4EkjQYzYwSbEo0q X-IronPort-AV: E=Sophos;i="4.73,549,1325458800"; d="scan'208";a="134933602" Received: from mail6.webfaction.com (HELO smtp.webfaction.com) ([74.55.86.74]) by mail4-smtp-sop.national.inria.fr with ESMTP; 08 Mar 2012 01:26:44 +0100 Received: from heyho.local (13-234.197-178.cust.bluewin.ch [178.197.234.13]) by smtp.webfaction.com (Postfix) with ESMTP id E31DB207837A; Wed, 7 Mar 2012 18:26:41 -0600 (CST) Date: Thu, 8 Mar 2012 01:26:38 +0100 From: =?utf-8?Q?Daniel_B=C3=BCnzli?= To: caml-list Cc: Mehdi Dogguy Message-ID: <1991A512A37E49ACA5AAD30A38D628BF@erratique.ch> X-Mailer: sparrow 1.5 (build 1043.1) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [Caml-list] oasis packaging questions Hello, I'd like to support oasis in the various packages I distribute. Here are a few questions (using oasis v0.3.2~rc2). 1) All the packages I distribute are made of a single module. For now these were just installed as .cmo .cmx .cmxs. Now it seems oasis forces me to create a .mllib even if I have only one module. Is that correct ? 2) Will the change in 1) have any impact for downstream packagers and is setup.ml enough for them ? 3) The META plugin doesn't seem to generate the directives for plugins [1], is that right ? Does setup.ml support cmxs generation at all ? 4) I'm really not interested in oasis trying to generate my _tags and myocamlbuild.ml files. Is it ok to substitute my own or does setup.ml rely on these ? 5) One of the disadvantages of things like odb is that you may miss valuable information like a CHANGES file, proper documentation or sample programs. These are also things you actually would like to remove when you do a ocamlfind remove. Is there any general agreed on strategy for packages ? Best I think would be to install that along in the package directory with ocamlfind, it makes it relatively easy/evident to lookup. 6) Regarding 5) I tried to define documentation as follows : Document xmlm Title: "Xmlm documentation and module reference" Format: html Index: Xmlm.html Install: true InstallDir: $htmldir/xmlm DataFiles: README CHANGES doc/*.html, doc/*.css but ocaml setup -install doesn't seem to install it. Of course this is also certainly a wrong strategy since it would install it in some directory that wouldn't be removed by ocamlfind remove. So how do we achieve that ? 7) ocaml setup -install seems to install the modules' .mli, .cmi and .cmx by finding them in _build capitalizing the filenames even though they are not (cf. [2]). That works on my case insensitive filesystem, but it mustn't work on others, the original files are not capitalized !? Is that a bug ? Thanks, Daniel [1] http://groups.google.com/group/fa.caml/browse_thread/thread/460ba4d505e29c62 [2] > ocaml setup.ml -install I: Installing findlib library 'xmlm' I: Running command '/usr/local/bin/ocamlfind install xmlm src/META _build/src/Xmlm.cmx _build/src/Xmlm.cmi _build/src/xmlm.a _build/src/xmlm.cmxa _build/src/xmlm.cma src/Xmlm.mli' Installed /usr/local/lib/ocaml/site-lib/xmlm/Xmlm.mli Installed /usr/local/lib/ocaml/site-lib/xmlm/xmlm.cma Installed /usr/local/lib/ocaml/site-lib/xmlm/xmlm.cmxa Installed /usr/local/lib/ocaml/site-lib/xmlm/xmlm.a Installed /usr/local/lib/ocaml/site-lib/xmlm/Xmlm.cmi Installed /usr/local/lib/ocaml/site-lib/xmlm/Xmlm.cmx Installed /usr/local/lib/ocaml/site-lib/xmlm/META