* [Caml-list] ocamlbuild/ocamlfind weirdness
@ 2011-11-21 6:48 Erik de Castro Lopo
2011-11-21 11:57 ` Stéphane Glondu
0 siblings, 1 reply; 3+ messages in thread
From: Erik de Castro Lopo @ 2011-11-21 6:48 UTC (permalink / raw)
To: caml-list
Hi all,
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:
ocaml setup.ml -configure --prefix /usr
ocaml setup.ml -build
prefix=$(pwd)/debian/tmp/ ocaml setup.ml -install
with the idea that the software is configured to install in /usr
but that is actually gets installed in $(pwd)/debian/tmp/usr from
where it will get pulled into the package.
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?
Cheers,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] ocamlbuild/ocamlfind weirdness
2011-11-21 6:48 [Caml-list] ocamlbuild/ocamlfind weirdness Erik de Castro Lopo
@ 2011-11-21 11:57 ` Stéphane Glondu
2011-11-22 3:19 ` Erik de Castro Lopo
0 siblings, 1 reply; 3+ messages in thread
From: Stéphane Glondu @ 2011-11-21 11:57 UTC (permalink / raw)
To: Erik de Castro Lopo; +Cc: caml-list
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] ocamlbuild/ocamlfind weirdness
2011-11-21 11:57 ` Stéphane Glondu
@ 2011-11-22 3:19 ` Erik de Castro Lopo
0 siblings, 0 replies; 3+ messages in thread
From: Erik de Castro Lopo @ 2011-11-22 3:19 UTC (permalink / raw)
To: caml-list
Stéphane Glondu wrote:
> 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.
Thanks Stéphane. Looking at the oasis package helped a lot.
Cheers,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-22 3:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-21 6:48 [Caml-list] ocamlbuild/ocamlfind weirdness Erik de Castro Lopo
2011-11-21 11:57 ` Stéphane Glondu
2011-11-22 3:19 ` Erik de Castro Lopo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox