Bug 1733750

Summary: ocaml-lwt in Fedora 31 is probably being built wrong
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: ocaml-lwtAssignee: Richard W.M. Jones <rjones>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dingyichen, michel, rjones, rosser.bjr, scottt.tw
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-07 19:50:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1737063    
Bug Blocks:    

Description Richard W.M. Jones 2019-07-28 11:18:41 UTC
Description of problem:

I upgraded ocaml-lwt in Fedora 31 to the latest version (4.2.1).
It is built as a package, but it seems as if it is built wrongly
somehow.

In any case when I compile ocaml-curl which depends on LWT, it doesn't
detect LWT support:

checking for OCaml findlib package lwt.unix... not found
checking for OCaml findlib package lwt_ppx... not found

Version-Release number of selected component (if applicable):

ocaml-lwt-4.2.1-1.fc31

How reproducible:

?

Steps to Reproduce:
1. ?

This bug is really just a placeholder until someone can look into this.

Comment 1 Richard W.M. Jones 2019-07-28 11:19:18 UTC
Also the LWT package tests failed for reasons which were unclear, but which
might be related to this bug.

Comment 2 Ben Rosser 2019-07-29 00:03:58 UTC
That seems believable-- there were a bunch of new dependencies, including mmap (https://opam.ocaml.org/packages/mmap/), which doesn't seem to be packaged: https://opam.ocaml.org/packages/lwt/

Comment 3 Ben Rosser 2019-07-31 21:05:52 UTC
Looking at this in a bit more detail: lwt_ppx isn't found because it's available as a subpackage, ocaml-lwt-ppx(-devel). I did this because it's a separate opam package, despite sharing the same source tree:

https://opam.ocaml.org/packages/lwt_ppx/

Not sure about missing lwt.unix. That might be related to the missing mmap, although looking at mmap I see it just appears to be a compatibility layer.

Comment 4 Ben Rosser 2019-08-02 13:53:34 UTC
Yeah, it looks like that the unix module is the piece of lwt that requires mmap. I've filed a review request for ocaml-mmap, hopefully that should fix this.

Comment 5 Ben Rosser 2019-08-07 19:50:40 UTC
This should now be fixed:

http://koji.fedoraproject.org/koji/buildinfo?buildID=1348807