caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <xavier.leroy@inria.fr>
To: skaller <skaller@users.sourceforge.net>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] autocompile
Date: Mon, 12 Apr 2004 18:38:45 +0200	[thread overview]
Message-ID: <20040412183845.A1527@pauillac.inria.fr> (raw)
In-Reply-To: <1081681298.20677.396.camel@pelican>; from skaller@users.sourceforge.net on Sun, Apr 11, 2004 at 09:01:39PM +1000

> I have this annoying problem sometimes:
> 
> The files /usr/local/lib/ocaml/pervasives.cmi
> and /usr/local/lib/ocaml/lablgtk2/gdk.cmi make inconsistent assumptions
> over interface Pervasives
>
> Of course the problem is that I installed a new version
> of Ocaml from a CVS build, but didn't rebuild lablgtk2.

Rejoice that this error is caught rather than crashing randomly
later (as can happen with library upgrades in C or C++).

> Obviously, just saying 'reinstall lablgtk2' isn't
> an answer: it's in the standard distribution location,
> the installation process should handle that automatically.

Sorry for nit-picking, but lablgtk2 is not part of the core OCaml
distribution, so there is no way installing the latter can
recompile the former.

But more generally you've just hit the reason why package management is
needed for OCaml.  Transitively rebuild and reinstall packages that
depend on an updated package is exactly the job of a package manager.

> I was thinking: why not build the dependencies
> into the compiled files, so if a compiled file is
> out of date it can be rebuilt automatically?

I don't think this is sufficient.  What if the corresponding source
file was erased after installation?  What if that source file is
generated?  You can need to download sources again, and do a full
rebuild of the package.  That's what a package manager can automate.

> Does findlib already do this kind of thing?

I doubt it.  This sounds more like the job of GODI (Gerd Stolpmann's
experimental package manager).

- Xavier Leroy

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2004-04-12 16:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-11 11:01 skaller
2004-04-12 16:38 ` Xavier Leroy [this message]
2004-04-12 17:38   ` skaller

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=20040412183845.A1527@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=skaller@users.sourceforge.net \
    /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).