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

Re: ocamlfind issues



On Wed, Jan 22, 2003 at 06:08:19PM +0100, Stefano Zacchiroli wrote:
> On Wed, Jan 22, 2003 at 05:58:09PM +0100, Sven Luther wrote:
> > BTW, about ocamlfind, should you not test that /etc/ocamlfind exists
> > before opening the dialog about it ?
> 
> Uh? If you have findlib installed you have /etc/ocamlfind.conf
> 
> > BTW2, what about moving /etc/ocamlfind to /etc/ocaml/findlib ?
> 
> Well, you are right I have to do it, I will do it iff you put the latest
> META file I've sent here in the lablgtk package :-PPPPP

Mmm, Are you sure everyone agrees in linking gnome and glade in per
default ? I think last we discussed it we agreed not to do it. But then,
personnally i don't care, i don't use ocamlfind.

I have a package ready, which includes the following changes :

lablgtk (1.2.5-7+20021031) unstable; urgency=low

  * Rebuilt since /usr/bin/lablgtk was having problems with the more
    recent lablgl 0.99-1 package.
  * Changed META file to include now glade and gnome by default,
    courtesy of Stefano Zacchiroli. Also added a gtkgl predicate for
    linking lablgtkgl.
  * Added a little paragraph about Ocamlfind in the README file,
    thanks to Rémi Vanicat for this.

To note, the new META file is :

requires=""
version="1.2.5"
archive(byte)="lablgtk.cma lablgnome.cma lablglade.cma"
archive(byte,init)="lablgtk.cma lablgnome.cma lablglade.cma gtkInit.cmo"
archive(byte,gtkgl)="lablgtk.cma lablgnome.cma lablglade.cma lablgtkgl.cma"
archive(byte,init,gtkgl)="lablgtk.cma lablgnome.cma lablglade.cma lablgtkgl.cma gtkInit.cmo"
archive(native)="lablgtk.cmxa lablgnome.cmxa lablglade.cmxa"
archive(native,init)="lablgtk.cmxa lablgnome.cmxa lablglade.cmxa gtkInit.cmx"
archive(native,gtkgl)="lablgtk.cmxa lablgnome.cmxa lablglade.cmxa lablgtkgl.cmxa"
archive(native,init,gtkgl)="lablgtk.cmxa lablgnome.cmxa lablglade.cmxa lablgtkgl.cmxa gtkInit.cmx"
linkopts=""
directory="+lablgtk"

Could you please review it.

The README addition is the following :

--- lablgtk-1.2.5.orig/README
+++ lablgtk-1.2.5/README
@@ -271,6 +271,14 @@
   embedding).
   The xecutable must be linked with lablglade.cma.

+Ocamlfind suppor:
+  This package have a support for ocamlfind and lablgtk. It use the
+  following predicate :
+
+  - init : initialize gtk. Otherwise you have to do it in your code
+    before using any other lablgtk related function.
+  - gtkgl : adds support for gtkgl and the lablgl bindings.
+
 External prototyping tools:
   Two other tools are available for GUI prototyping
 
I removed the glade and gnome thingies, because of the new META file.

I will await your reaction and upload the package tomorrow.

Friendly,

Sven Luther



Reply to: