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

Re: Using graphivz's bindings



Stefano Zacchiroli <zack@debian.org> (10/09/2007):
> That would be wonderful. What about you draft the initial packaging
> and then ask here for a review of the OCaml part? I'll be able to take
> care of the review ...

Hi back — at last!

Here is where I came to.

ocaml package:
| $ dpkg --contents ../libgv-ocaml_2.12-5_i386.deb  | grep /lib/
| drwxr-xr-x root/root         0 2007-10-18 19:56 ./usr/lib/
| drwxr-xr-x root/root         0 2007-10-18 19:56 ./usr/lib/ocaml/
| drwxr-xr-x root/root         0 2007-10-18 19:56 ./usr/lib/ocaml/3.10.0/
| drwxr-xr-x root/root         0 2007-10-18 19:56 ./usr/lib/ocaml/3.10.0/METAS/
| -rw-r--r-- root/root       148 2007-10-18 19:56 ./usr/lib/ocaml/3.10.0/METAS/META.gv
| drwxr-xr-x root/root         0 2007-10-18 19:56 ./usr/lib/ocaml/3.10.0/stublibs/
| -rw-r--r-- root/root     80580 2007-10-18 19:56 ./usr/lib/ocaml/3.10.0/stublibs/dllgv.so
| drwxr-xr-x root/root         0 2007-10-18 19:56 ./usr/lib/ocaml/3.10.0/gv/
| -rw-r--r-- root/root      2774 2007-10-18 19:56 ./usr/lib/ocaml/3.10.0/gv/gv.cmx
| -rw-r--r-- root/root     25897 2007-10-18 19:56 ./usr/lib/ocaml/3.10.0/gv/gv.cmo
| -rw-r--r-- root/root     30976 2007-10-18 19:56 ./usr/lib/ocaml/3.10.0/gv/gv.cma
| -rw-r--r-- root/root      6203 2007-10-18 19:56 ./usr/lib/ocaml/3.10.0/gv/gv.cmi
| -rw-r--r-- root/root       377 2007-10-18 19:56 ./usr/lib/ocaml/3.10.0/gv/gv.cmxa

-dev package:
| $ dpkg --contents ../libgraphviz3-dev_2.12-5_i386.deb  | grep /ocaml/
| drwxr-xr-x root/root         0 2007-10-18 19:56 ./usr/lib/ocaml/
| drwxr-xr-x root/root         0 2007-10-18 19:56 ./usr/lib/ocaml/3.10.0/
| drwxr-xr-x root/root         0 2007-10-18 19:56 ./usr/lib/ocaml/3.10.0/gv/
| -rw-r--r-- root/root      3015 2007-10-18 19:55 ./usr/lib/ocaml/3.10.0/gv/gv.mli
| -rw-r--r-- root/root     22672 2007-10-18 19:55 ./usr/lib/ocaml/3.10.0/gv/gv.ml

I'm able to do the following:
| $ ocaml
|         Objective Caml version 3.10.0
| 
| # #use "topfind";;
| - : unit = ()
| Findlib has been successfully loaded. Additional directives:
|   #require "package";;      to load a package
|   #list;;                   to list the available packages
|   #camlp4o;;                to load camlp4 (standard syntax)
|   #camlp4r;;                to load camlp4 (revised syntax)
|   #predicates "p,q,...";;   to set these predicates
|   Topfind.reset();;         to force that packages will be reloaded
|   #thread;;                 to enable threads
| 
| - : unit = ()
| # #require "gv";;
| /usr/lib/ocaml/3.10.0/gv/gv.cma: loaded

But then I'm totally clueless on the how-to-use-it topic. I tried some
things using gv.* stuff, but nothing sounded like wanting to be friendly
to me, that's why I'm asking for a review of the current state of the
package, which you can find in git [1] (Usage: just clone it an put the
files of the .orig.tar.gz in the same folder). A .dsc is also available
on alioth [2]. The diff enabling the bindings is available at [3]. The
debian/rules is far suboptimal, but I wanted to keep things in a single
place at the moment, before forging a patch against upstream, or doing
it in a clean way.

 1. http://git.debian.org/?p=collab-maint/graphviz.git;a=summary
 2. http://alioth.debian.org/~kibi-guest/graphviz/graphviz_2.12-5.dsc
 3. http://git.debian.org/?p=collab-maint/graphviz.git;a=commitdiff;h=1c9edb5927234a080571ebc877bb89cb0053cb9d

I've still to read again about the *.cm* files in the policy, but I'm
really happy to now be able to load the lib from the interpreter that
I'm asking you right now. :-)

If there are no strong objections, I'll upload the package with these
files, since the upload is far overdue. Some cleanup will happen first
(e.g. the clean rules, a double-build would fail), but it sounds to me
that this set of files is more useful than the previous.

Thanks for any help.

Cheers,

-- 
Cyril Brulebois

Attachment: signature.asc
Description: Digital signature


Reply to: