caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Francois Berenger <berenger@riken.jp>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Library installation procedure (for use with OPAM)?
Date: Tue, 10 Dec 2013 10:12:53 +0900	[thread overview]
Message-ID: <52A66A95.2060809@riken.jp> (raw)
In-Reply-To: <CAN=ouMSoV3vEocR8FRrhhoaTFrS9Gb31=Gm7azmWWoKo=q3asQ@mail.gmail.com>

On 12/10/2013 06:36 AM, Anthony Tavener wrote:
> Thanks for the input, everyone! I see there's not quite one-true-way.
> This was part of my confusion when I tried searches and looking at
> existing packages. It helps to know that OCamlMakefile or ocamlbuild use
> ocamlfind, but hide this detail. From my perspective when this is hidden
> it just looks like there are even more packaging mechanisms.
>
> I can understand Daniel's tact: choose one sensible method. This helps
> to force an evolution rather than building up cruft. Certainly making a
> META file along with descr/opam/url is somewhat redundant. Isn't it?
>
> For now though, I'll do my install steps with ocamlfind using a META file.

OASIS can automatically generate the META file for you, if I remember well.

> It wasn't clear to me that ocamlfind is appropriate for installation, or
> even how you would use it. Searching, I mostly get matches for using
> ocamlfind to install existing packages, not make something installable.
> The "install" subsection of ocamlfind really gives the impression of an
> end-user tool, not for a library creator. References are made to the
> META file but no description of this file.
>
> Searching for the META file related to OCaml doesn't fare too well
> either. Then I realized "man META" actually gives me exactly what I was
> looking for. I didn't expect that, since I'd expect other systems could
> have a configuration file called META.
>
> Anyway, thanks! If there isn't an explanation of packaging libraries
> somewhere, maybe I'll make a blog post: "How to share your library".
> It's the kind of thing which might seem like nothing once you know it.
>
>   -Tony
>
>
> On Mon, Dec 9, 2013 at 2:04 PM, Daniel Bünzli
> <daniel.buenzli@erratique.ch <mailto:daniel.buenzli@erratique.ch>> wrote:
>
>
>
>     Le lundi, 9 décembre 2013 à 21:22, Stéphane Glondu a écrit :
>
>      > Yes, but the existing stuff too. And the packaging work is
>     (should be)
>      > mainly adding metadata and integrating with the other packages,
>     which is
>      > hardly automatable. What you are talking about is package building,
>      > which can already be automated with the standard "./configure &&
>     make &&
>      > sudo make install" interface.
>
>     Why not but then provide me *convenient and easily understandable*
>     tools that allow me to implement this interface in a reliable way. I
>     don't want to replicate install logic in my twelve and growing
>     packages, I used to do that but it's too costly in terms of
>     maintenance. I now found a way of delegating the install logic to a
>     tool in what I suppose is the main distribution channel for my
>     packages (and that shouldn't be too hard for other distribution
>     channels to use), I'm not going back unless something better and as
>     convenient emerges.
>
>      > > > http://xkcd.com/927/
>      > > So what's your proposal then ?
>      >
>      > I am not proposing anything new. You are.
>
>     Joke for joke. Besides I'm not proposing anything, I responded to
>     the original poster's question on how I proceed to install libraries
>     with OPAM.
>
>     Best,
>
>     Daniel
>
>
>
>     --
>     Caml-list mailing list.  Subscription management and archives:
>     https://sympa.inria.fr/sympa/arc/caml-list
>     Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>     Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>


-- 
Best regards,
Francois Berenger.

  reply	other threads:[~2013-12-10  1:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-08 20:55 Anthony Tavener
2013-12-09  9:23 ` Stéphane Glondu
2013-12-09 11:13 ` John Whitington
2013-12-09 15:04 ` Daniel Bünzli
2013-12-09 15:23   ` Sebastien Mondet
2013-12-09 15:57     ` Daniel Bünzli
2013-12-09 16:39       ` Sebastien Mondet
2013-12-09 17:37         ` Daniel Bünzli
2013-12-09 19:41           ` Stéphane Glondu
2013-12-09 20:04             ` Daniel Bünzli
2013-12-09 20:22               ` Stéphane Glondu
2013-12-09 21:04                 ` Daniel Bünzli
2013-12-09 21:36                   ` Anthony Tavener
2013-12-10  1:12                     ` Francois Berenger [this message]
2013-12-10 14:50       ` Daniel Bünzli
2013-12-10 16:49         ` [Caml-list] [ANN] opam-installer (beta) (was Re: Library installation procedure (for use with OPAM)?) Louis Gesbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52A66A95.2060809@riken.jp \
    --to=berenger@riken.jp \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).