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
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Robin Broda (coderobe)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Toolybird (Toolybird) - Friday, 19 May 2023, 22:34 GMT
> virt-v2v

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
Comment by Jürgen Hötzel (juergen) - Saturday, 20 May 2023, 19:12 GMT
> Yup, I'd say so.

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.
Comment by solsTiCe (zebul666) - Wednesday, 24 May 2023, 13:26 GMT
the git migration is finished, right?
Comment by Jürgen Hötzel (juergen) - Thursday, 25 May 2023, 20:54 GMT
Status update:
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.



Comment by Jürgen Hötzel (juergen) - Saturday, 27 May 2023, 14:20 GMT
Just released libguestfs-1.48.6

Patches reported to upstream: https://listman.redhat.com/archives/libguestfs/2023-May/031639.html

Loading...