From: "Stéphane Glondu" <steph@glondu.net>
To: Erik de Castro Lopo <mle+ocaml@mega-nerd.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] ocamlbuild/ocamlfind weirdness
Date: Mon, 21 Nov 2011 12:57:51 +0100 [thread overview]
Message-ID: <4ECA3CBF.5000705@glondu.net> (raw)
In-Reply-To: <20111121174805.c6ed2e57ee4f2da5b892ef33@mega-nerd.com>
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
next prev parent reply other threads:[~2011-11-21 11:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-21 6:48 Erik de Castro Lopo
2011-11-21 11:57 ` Stéphane Glondu [this message]
2011-11-22 3:19 ` Erik de Castro Lopo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ECA3CBF.5000705@glondu.net \
--to=steph@glondu.net \
--cc=caml-list@inria.fr \
--cc=mle+ocaml@mega-nerd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox