caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Wojciech Meyer <wojciech.meyer@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] OPAM conventions
Date: Wed, 12 Dec 2012 18:01:33 +0000	[thread overview]
Message-ID: <CAOg1smDGKO-x30Qeb19v4vhBOWkbUGX5AL8di+B7+oTJCzvnwQ@mail.gmail.com> (raw)
In-Reply-To: <70C3E286-D817-453A-AEBE-DE7B2C69C879@recoil.org>

On Wed, Dec 12, 2012 at 5:36 PM, Anil Madhavapeddy <anil@recoil.org> wrote:
> On 12 Dec 2012, at 14:47, Dario Teixeira <darioteixeira@yahoo.com> wrote:
>>    Good arguments can be made for and against each option.  Though this
>>    is largely a bike-shedding issue, I think the community should make
>>    a decision sooner rather than later.
>
> I generally don't like typing too much, and so prefer the shorter name.
> But converting packages names isn't really a big deal and can be done
> mechanically, so it's more important to build up the database first.

Indeed, but then dependent packages needs to be up-dated too!
We could have also virtual packages that could serve as a basis for
aliases when there is a strong reason to be compatible.
The good thing is that OPAM package definitions are detached from the
tarballs itself, so it's easy to up-date in a centralised way.

>> 3) Package removal
>>
>>    For most values of "foo", package "foo" will just declare ["ocamlfind"
>>    "remove" "foo"].  However, this approach seems a bit brittle to me.
>>    If the Makefile supports "uninstall" (which is the usually the case
>>    for OASIS packages), then I reckon that ["%{make}%" "uninstall"]
>>    should be preferred.
>>
>>    Having said that, it seems that ["%{make}%" "uninstall"] is currently
>>    not working (OPAM tries to download the package de novo upon removal!).
>>    Is this a bug or a feature?
>
> The issue with removal is that the package needs to be available to run
> make uninstall, hence the download.

Hmm, wouldn't be just better for OPAM to track the diff of the
repository, then just remove the files?
Possibly, having an open door for unnistall would be good for packages
like Ocsigen which might want to remove the configuration from the
system or shutdown the server.

>
> In the longer term, we've discussed letting the OPAM package declare
> which ocamlfind packages it installs, and having those automatically
> handled (i.e. the install phase asserts that the package exists as a
> post-condition, and the uninstall removes it and checks it's gone).
>
> But that's all post-OPAM-1.0! Basics first.
>
>> 4) Findlib dependency
>>
>>    Most packages do declare a dependency on ocamlfind.  However, this is
>>    not universal, even for packages that do register themselves with findlib.
>>    What should be the standard here: always declare a dependency, or omit
>>    it altogether since it is implied?
>
> If something uses ocamlfind and doesn't declare it explicitly, it's a bug.
> The continuous build system catches most of these, and in practise it doesn't
> matter as a dependent package will pull it in, but it's best to be explicit
> about it.

+1.

I'm also always convinced that ocamlfind should be taken into account
as an integral part of the system.

-Wojciech

      reply	other threads:[~2012-12-12 18:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-12 14:47 Dario Teixeira
2012-12-12 16:53 ` Markus Mottl
2012-12-12 17:36 ` Anil Madhavapeddy
2012-12-12 18:01   ` Wojciech Meyer [this message]

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=CAOg1smDGKO-x30Qeb19v4vhBOWkbUGX5AL8di+B7+oTJCzvnwQ@mail.gmail.com \
    --to=wojciech.meyer@gmail.com \
    --cc=anil@recoil.org \
    --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).