[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#143415: META file for lablgl



On Fri, Apr 19, 2002 at 10:44:12AM +0200, Claudio Sacerdoti Coen wrote:
> > I also belive that it would be clearer if the directories that contain
> > the META file where somwhere else (say /usr/share/findlib or something
> > like that) but this may need to modify findlib, and i don't know if this
> > is usefull.
> > 
> > > Any comment on those ? Remi, Stefano, Claudio, Gerd ?
> 
>  We already asked Gerd for the modfication some monthes ago and he did it.
>  These are the rules followed by findlib to get the META file for a
>  library foo:
> 
>  * Search in OCAMLPATH a directory that have a subdirectory foo in which
>    there is a META file.
>  * Search in OCAMLPATH a file META.foo. In this case, in the META file
>    there must be the entry "directory" that specifies where the library
>    is actually installed
> 
>  OCAMLPATH can be set as a shell variable; otherwise it reflects
>  the entry path in /etc/ocamlfind.conf.

Ok, ...

So a better solution would be to have (for example) :

META.lablgtkgl in /usr/lib/ocaml (OCAMLPATH)

BTW, will there be no conflict between the findlib use of OCAMLPATH and other
packages (most notably perhaps ocaml) using the same variable for sometihng
else ?

>  So:
> 
>  1) We can put all the META.lablgtk, META.lablglade, META....
>     directly in /usr/lib/ocaml

Ugly solution ...

>  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 ?

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 ?

path="/usr/lib/ocaml:/usr/lib/ocaml/meta" ?

>  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. 

Friendly,

Sven Luther
> 
> 
>  For more informations on /etc/ocamlfind.con:
> 
>  http://www.ocaml-programming.de/packages/documentation/findlib/r1007.html
> 
> 
> 					Ciao!
> 					C.S.C.
> 
> -- 
> ----------------------------------------------------------------
> Real name: Claudio Sacerdoti Coen
> PhD Student in Computer Science at University of Bologna
> E-mail: sacerdot@cs.unibo.it
> http://caristudenti.cs.unibo.it/~sacerdot
> ----------------------------------------------------------------
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-ocaml-maint-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


-- 
To UNSUBSCRIBE, email to debian-ocaml-maint-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: