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

Re: ocamlfind and ocamldestdir



On 07-02-2009, Guillaume Yziquel <guillaume.yziquel@citycable.ch> wrote:
> Sylvain Le Gall a écrit :
>> Hello,
>> 
>>> It's probably the use of debuild that I do not quite get, but I'd like 
>>> to know in more detail how you guys get to do this.
>>>
>> 
>> Take example on other packages, e.g. ocaml-libvirt:
>> http://git.debian.org/?p=pkg-ocaml-maint/packages/ocaml-libvirt.git
>
> Thanks.
>
> By the way,
>
> http://pkg-ocaml-maint.alioth.debian.org/ocaml_packaging_policy.html/x565.html
>
> is not up to date.
>
>> You can also take a look at various build log:
>> http://buildd.debian.org/pkg.cgi?pkg=ocaml-libvirt
>> 
>> (see the use of OCAMLDESTDIR which is a findlib variable added to make
>> invocation)
>
> Yes, I finally noticed that. I took my example from the inotify 
> bindings. But somehow, I get the following statement:
>
>> ocamlfind install -destdir /home/yziquel/src/pgocaml/deb/ocaml-pgocaml-1.1/debian/libpgocaml-ocaml-dev//usr/lib/ocaml/3.10.2 pgocaml META pgocaml.a pgocaml.cma pgocaml.cmxa pGOCaml.cm[ix] pa_pgsql.cmo
>> ocamlfind: Bad configuration: Cannot mkdir /home/yziquel/src/pgocaml/deb/ocaml-pgocaml-1.1/debian/libpgocaml-ocaml-dev//usr/lib/ocaml/3.10.2/pgocaml because a path component does not exist or is not a directory
>
> This seems weird to me, since I do not see a similar complaint, or a 
> similar folder being created when I run debuild -i -us -uc -b on the 
> inotify package.
>

You must create this directory yourself (or ask dh to do it). This is
the meaning of @OCamlStdlibDir@ in debian/libinotify-ocaml-dev.dirs.in
(which get replaced when running some CDBS target). 

Regards,
Sylvain Le Gall


Reply to: