On 11/21/2011 07:48 AM, Erik de Castro Lopo wrote: > I'm trying to roll a Debian package (on Ubuntu Lucid) for the latest > version ocaml-cairo which uses ocamlbuild. The debian/rules file, > boiled down to the core commands looks like this: > [...] > The problem is that ocamlfind which is not called directly from my > debian/rules file spits out the following error: > > ocamlfind: /usr/local/lib/ocaml/3.11.2/cairo2/cairo.mli: > > even though I specified /usr/ as the prefix. > > Any clues to get me going in the right direction?
We usually add these lines in Debian packages: DESTDIR=$(CURDIR)/debian/tmp include /usr/share/ocaml/ocamlvars.mk OCAMLFIND_DESTDIR=$(DESTDIR)/$(OCAML_STDLIB_DIR) export OCAMLFIND_DESTDIR See for example oasis for an oasis-based package. Cheers, -- Stéphane -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
