citrix-openstack/qa — pull request #38 by euanh (2013-10-10 15:52:36+00:00)
Title: xenserver-core-ubuntu: Work around ocaml-libvirt build problem

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