Summary: | app-emulation/libguestfs-1.28.3 USE=ocaml should depend on >=dev-lang/ocaml-4 - File "output_qemu.ml", line 81, characters 4-14: Error: Unbound value List.iteri | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Fabian Ohler <fabian.ohler1> |
Component: | Current packages | Assignee: | Andreis Vinogradovs ( slepnoga ) <andreis.vinogradovs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | maksbotan, proxy-maint, rich |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | buildlogetc.tar.bz2 |
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 + |
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.