Created attachment 391812 [details] buildlogetc.tar.bz2 Hi, the latest libguestfs ebuild doesn't work for me when using the ocaml use flag. The new updated code seems to use features introduced in ocaml 4 such as List.iteri and List.mapi. Yet, the ebuild only specifies ocaml (without a version) as a dependency.
Comment on attachment 391812 [details] buildlogetc.tar.bz2 Please attach separate text files next time.
Actually I think it's better to fix this upstream. I have pushed this patch which removes the dependency on OCaml >= 4.00. https://github.com/libguestfs/libguestfs/commit/d375b7818a506e011b5f61c9a42c801180636201
(In reply to Richard Jones from comment #2) > Actually I think it's better to fix this upstream. I > have pushed this patch which removes the dependency on > OCaml >= 4.00. > > https://github.com/libguestfs/libguestfs/commit/ > d375b7818a506e011b5f61c9a42c801180636201 Seems like a good idea, the file output_libvirt.ml in the same directory contains a reference to List.mapi which should then also be replaced by mapi. By manually editing the two files, the build succeeded for me - Thanks!
I've made that second change upstream too: https://github.com/libguestfs/libguestfs/commit/47d909808aa8cd285f46cab5ea08c7971f8f2f85
FYI libguestfs 1.28.5 contains both of these patches. http://libguestfs.org/download/1.28-stable/
+*libguestfs-1.28.5 (19 Dec 2014) + + 19 Dec 2014; Yixun Lan <dlan@gentoo.org> +libguestfs-1.28.5.ebuild: + version bump, solved ocaml dep, bug 532698, thanks Richard Jones +