Re: Bug#143415: META file for lablgl
On Mon, Apr 22, 2002 at 10:44:32AM +0200, Stefano Zacchiroli wrote:
> On Sat, Apr 20, 2002 at 03:12:17PM +0200, Sven wrote:
> > > 2) We can put them in another directory and add it to the path in
> > > /etc/ocamlfind.conf. In this case, findlib helps again: you
> > > can add a "metadir" entry in /etc/ocamlfind.conf; when you do
> > > findlib install, findlib will automatically install the META file
> > > in the metadir.
> >
> > This would have been the /usr/lib/ocaml/meta dir solution ?
>
> Sure, anyway after a rapid look to the FHS, the best place will be
> /usr/share, now we can choose between /usr/share/ocaml/findlib,
> /usr/share/ocaml/meta, /usr/share/ocaml-findlib or whatever you want.
/usr/share/ocaml/meta or /usr/share/ocaml/findlib would be the best choices
(but again, this is a post woody thing, which would need to be documented in
the ocaml policy, would you care to contribute a small paragraph about those
things ?).
> > Does the actual findlib package does this kind of thing ? i just checked and
> > it doesn't do it like that. What is the format of this exactly ?
>
> Which kind of things? I can't follow you here. Ocamlfind have a "path"
> variable and use it, looking rapidly at the source code I find out that
Well, we would need to change the path variable in /etc/ocamlfind.conf
(BTW, /etc/ocaml/findlib.conf would be a better name).
> the path separator is OS dependent and on unix systems the standard ":"
Ok, ...
> separator is used. I haven't checked if multiple paths are looked for,
> but if this is not the case, we have found a bug!
:)))
Also, claudio told me that it uses the OCAMLPATH env var, but this is not a
findlib specific variable, and could cause problems.
> > > 3) We can add /usr/lib/ocaml/lablgtk to the path in /etc/ocamlfind.conf
> > > and leave META.* into lablgtk.
> >
> > An ugly solution, since we will finish adding a lot of paths everywhere.
> >
> > Maybe going for the 2nd solution would be the best solution, but it will be a
> > post woody thing.
>
> IMO, solution (2) is the good one. I will look at it, but some reminders
> from this list are helpful :-), after the woody release.
Yes, after the woody release. I would prefer :
put things into /usr/share/ocaml/meta.
have the conf dir be /etc/ocaml/findlib.conf and having a path variable
pointing to "/usr/share/ocaml/meta:/usr/lib/ocaml" (the later for backward
compatibility with self installed stuff.
Friendly,
Sven Luther
--
To UNSUBSCRIBE, email to debian-ocaml-maint-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: