From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id pALBvwsB027218 for ; Mon, 21 Nov 2011 12:57:58 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj8DAIY8yk6K54gDgWdsb2JhbABDqjkiAQEWJiWBcgEBBTIBRQEQCxgJFg8JAwIBAgFFBg0BBwK7Q4NZhj4ElDyFPYxJ X-IronPort-AV: E=Sophos;i="4.69,547,1315173600"; d="scan'208";a="120170334" Received: from rouge.crans.org ([138.231.136.3]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 21 Nov 2011 12:57:52 +0100 Received: from localhost (localhost.crans.org [127.0.0.1]) by rouge.crans.org (Postfix) with ESMTP id 8A89E85D4; Mon, 21 Nov 2011 12:57:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at crans.org Received: from rouge.crans.org ([10.231.136.3]) by localhost (rouge.crans.org [10.231.136.3]) (amavisd-new, port 10024) with LMTP id E2249gHfbPTz; Mon, 21 Nov 2011 12:57:52 +0100 (CET) Received: from [152.81.3.42] (wencory.loria.fr [152.81.3.42]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by rouge.crans.org (Postfix) with ESMTPSA id 66B3885CD; Mon, 21 Nov 2011 12:57:52 +0100 (CET) Message-ID: <4ECA3CBF.5000705@glondu.net> Date: Mon, 21 Nov 2011 12:57:51 +0100 From: =?ISO-8859-1?Q?St=E9phane_Glondu?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20111010 Icedove/3.1.15 MIME-Version: 1.0 To: Erik de Castro Lopo CC: caml-list@inria.fr References: <20111121174805.c6ed2e57ee4f2da5b892ef33@mega-nerd.com> In-Reply-To: <20111121174805.c6ed2e57ee4f2da5b892ef33@mega-nerd.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [Caml-list] ocamlbuild/ocamlfind weirdness 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