xapi-project/xenserver-core — pull request #257 by euanh (2013-10-10 16:15:31+00:00)
Title: configure: Install ocaml to work around spec files which build opt targe...

...ts conditionally

makedeb.py expands the spec file %build recipe on the host,
not in a chroot. The opt target in the %build recipe of some
spec files, such as ocaml-libvirt, is conditional on the existence
of %{_bindir}/ocamlopt. If ocaml isn't installed on the host,
the opt target won't be included, even though ocamlopt is available
in the chroot.

Installing ocaml on the build host is a quick workaround; the proper
fix is either to override the check for %{_bindir}/ocamlopt in the
spec file (harder than you might think to do this neatly) or to
run makedeb in the chroot (slow, but accurate).

Signed-off-by: Euan Harris