On Tue, May 20, 2008 at 01:44:35PM -0700, Shivkumar Chandrasekaran wrote:
> Thanks for all your efforts. I am waiting for omake to appear on
> testing-updates.
Yeah, this is not very cool. I've just asked a question about why
this package is still stuck after 3 days ...
https://www.redhat.com/archives/fedora-devel-list/2008-May/msg01428.html
> In the meantime I have a question. I am very used to Godi. So, for
> example, to use the camlimages library, I know that when I compile
> against it I can just use ocamlfind and give a single -package argument
> to link to it properly.
>
> If I install the findlib package in Core 9 will I get similar
> functionality? My impression is no.
Answer is yes ... for some packages.
When I published the second set of OCaml packaging guidelines[1] I
made the use of a META file for findlib mandatory. So all new library
packages should be findlib compatible, and 'ocamlfind -package ...'
should just work. This is also in alignment with Debian's packaging
policy.
However there are still some old packages which don't conform to this
guideline, and it seems like ocaml-camlimages is one of those. I've
just filed a bug[2]. If you find any other packages like this, please
also file bugs and assign them to me.
This shouldn't stop you from using the package though. You can just
compile it like this:
ocamlfind ocamlc -package any,other,pkgs -I +camlimages foo.ml
ocamlfind ocamlc -package any,other,pkgs -linkpkg -I +camlimages \
ci_core.cma foo.cmo
It's a lot easier with proper findlib support though :-)
> What do you recommend as the best
> approach to using complex (as far as linking goes) librraies in Core 9.
> Camlimages itself recommends including their recommended file inside my
> Makefile. However that is not going to work easily with omake.
I'm afraid I don't know very much about omake, but I'm sure a command
such as the above would work.
Rich.
[1] http://fedoraproject.org/wiki/Packaging/OCaml#head-acc221f1e087bc5ce860356b…
[2] https://bugzilla.redhat.com/show_bug.cgi?id=447627
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
I rebuilt ocaml in Rawhide last week and that appears to have broken
everything. I'm not sure why because the basic ocaml module should
still exist. It might even just be an artifact which will sort itself
out. If anyone wants to take a look at this feel free, otherwise I'll
take a look on Monday.
Rich.
----- Forwarded message from buildsys(a)fedoraproject.org -----
Subject: Broken dependencies: ocaml-findlib
Date: Sat, 17 May 2008 10:14:15 +0000 (UTC)
From: buildsys(a)fedoraproject.org
To: rjones(a)fedoraproject.org
Cc:
X-Sieve: CMU Sieve 2.2
X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254
ocaml-findlib has broken dependencies in the development tree:
On ppc:
ocaml-findlib-1.2.1-3.fc10.ppc requires /bin/sh
On x86_64:
ocaml-findlib-1.2.1-3.fc10.x86_64 requires /bin/sh
On i386:
ocaml-findlib-1.2.1-3.fc10.i386 requires /bin/sh
On ppc64:
ocaml-findlib-1.2.1-3.fc10.ppc64 requires /bin/sh
On ppc:
ocaml-findlib-devel-1.2.1-3.fc10.ppc64 requires /usr/bin/ocamlrun
On x86_64:
ocaml-findlib-devel-1.2.1-3.fc10.x86_64 requires /usr/bin/ocamlrun
On i386:
ocaml-findlib-devel-1.2.1-3.fc10.i386 requires /usr/bin/ocamlrun
On ppc64:
ocaml-findlib-devel-1.2.1-3.fc10.ppc64 requires /usr/bin/ocamlrun
Please resolve this as soon as possible.
----- End forwarded message -----
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
I've just posted a list of packages here. The good news is we now
support 55 different (source) packages related to OCaml.
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora#Package_s…
This list isn't updated automatically, although I have a script to
regenerates it instantly, so if it gets out of date just ask me.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top