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

Bug#735884: RFS: ocp-indent -- OCaml indentation tool for emacs and vim



Hi Stéphane,

Quoting Stéphane Glondu (2014-03-06 13:41:53)
> Why do you add libocp-indent-lib-ocaml as explicit dependency to ocp-indent?
> Isn't the one inferred by dh_ocaml enough?

the one inferred by dh_ocaml is enough. That was some leftover cruft from when
I did not yet know that dh_ocaml would do this kind of thing for me.

> If you put META and $foo.cma in a runtime package, there should also be
> $foo.cmxs there (on native architectures). Otherwise, not having a runtime
> package at all is fine for pure OCaml libraries.
> 
> There are no *.cmx files installed. Do you know if that's intentional?

I patched (not pushed to git yet) upstream Makefile to also build and install
cmxs and cmx files. I will ask upstream to integrate that patch into their next
release.

I dont remember from where I got the splitting into libocp-indent-lib-ocaml
(with META and cma) and libocp-indent-lib-ocaml-dev (with all the rest) but now
that I search for it I can see some packages which do it that way (for example
libxen-ocaml or libatd-ocaml or libben-ocaml or libfindlib-ocaml).

Are you also saying that I do not need to create the two packages
libocp-indent-lib-ocaml and libocp-indent-lib-ocaml-dev but that only
libocp-indent-lib-ocaml-dev with all the files is enough? From reading [1] it
seems that splitting it into a lib and a dev package is only advised if a
shared library is involved which is not the case here.

cheers, josch

[1] http://pkg-ocaml-maint.alioth.debian.org/ocaml_packaging_policy.html/c305.html


Reply to: