FS#78555 - [libguestfs] ocaml binding problem with .cmi
Attached to Project:
Community Packages
Opened by solsTiCe (zebul666) - Friday, 19 May 2023, 16:37 GMT
Last edited by Jürgen Hötzel (juergen) - Saturday, 27 May 2023, 14:24 GMT
Opened by solsTiCe (zebul666) - Friday, 19 May 2023, 16:37 GMT
Last edited by Jürgen Hötzel (juergen) - Saturday, 27 May 2023, 14:24 GMT
|
Details
When trying to build virt-v2v, I got an error like:
``` Error: /usr/lib/ocaml/guestfs/guestfs.cmi is not a compiled interface for this version of OCaml. ``` I am not an ocaml expert but this seems to happen in every package build with ocaml 4 while we have now ocaml 5. On a user library, I can run `make clean` to force the rebuild of the .cmi file, but for a system package? I guess all ocaml packages or packages with ocaml bindings need to be rebuild Rant: Isn't the switch to ocaml 5 premature: "Owing to the large number of changes, the initial 5.0 release is more experimental than usual. It is recommended that all users wanting a stable release use the 4.14 release which will continue to be supported and updated while 5.x reaches feature and stability parity" At least, if it was thought of, and planned accordingly |
This task depends upon
Closed by Jürgen Hötzel (juergen)
Saturday, 27 May 2023, 14:24 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in libguestfs-1.48-6
Saturday, 27 May 2023, 14:24 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in libguestfs-1.48-6
To be clear, this is an AUR pkg
> I guess all ocaml packages or packages with ocaml bindings need to be rebuild
Yup, I'd say so.
Sidenote: @dvzrv, just in case you're not aware, latest libguestfs releases need [1]. I stuck it in the AUR and all is well with my local builds :)
[1] https://aur.archlinux.org/packages/ocaml-augeas
Indeed i missed this package in the OCaml 5.0.0 rebuild.
I have update hivex to 1.3.23 for OCaml 5.0.0 compatibility: https://gitlab.archlinux.org/bot-test/packages/hivex
and added a OCaml 5.0.0 patch for libguestfs: https://gitlab.archlinux.org/bot-test/packages/libguestfs
Both changes are only in the git test repo yet: We have to wait until the git migration is finished.
While the package builds fine using the OCaml 5.0.0 patch (also merged upstream) the package check() fails:
Fatal error: Fatal error during lock: Resource deadlock avoided
There seems to be an issue with recursive/invalid OCaml domain locking in the guestfs event loop. I'm still investigating the issue.
Any contribution is appreciated.
Patches reported to upstream: https://listman.redhat.com/archives/libguestfs/2023-May/031639.html