Bug 1735476

Summary: ocaml-re requires (new package?) ocaml-seq
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: ocaml-reAssignee: Richard W.M. Jones <rjones>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: rjones, rosser.bjr
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ocaml-re-1.9.0-5.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-01 17:40:46 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: 1735629    
Bug Blocks:    

Description Richard W.M. Jones 2019-07-31 22:25:35 UTC
Description of problem:

See 
https://github.com/ocaml/ocaml-re/commit/9791b31f968124a5844e1bd17082e4c922fbd9c6

This leads to compilation errors like:

ocamlfind: Package `seq' not found - required by `re'

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

ocaml-re-1.9.0-3.fc31.x86_64

How reproducible:

100%

Additional info:

We can work together to get this new one packaged.

Really really need to autoencode dependencies from the
jbuild/dune files into BuildRequires, sort of like
cpan2spec for Perl.

Comment 1 Richard W.M. Jones 2019-07-31 22:26:39 UTC
This breaks ocaml-dose3, and from there about 10 other Fedora ocaml packages.

Comment 2 Richard W.M. Jones 2019-07-31 22:28:42 UTC
Link to seq package: https://github.com/c-cube/seq
Has no dependencies apart from findlib & ocamlbuild.

Comment 3 Ben Rosser 2019-07-31 23:52:53 UTC
Eep. Somehow it built without it (I guess similar to whatever's going on with lwt, because it seems to be another compatibility layer...)

I can put together a spec within the next ~day for seq, will update here when I do.

Comment 4 Ben Rosser 2019-07-31 23:55:09 UTC
And yeah, I've been thinking some kind of opam2rpm (in analogy to pyp2rpm or cpan2spec) would be a really nice tool to have! Probably written in OCaml using opam-file-format? https://github.com/ocaml/opam-file-format

Sadly, I have not had the time to actually *write* such a thing... but I'd be willing to contribute.

Comment 5 Richard W.M. Jones 2019-08-01 07:44:10 UTC
I filed a review request here: https://bugzilla.redhat.com/show_bug.cgi?id=1735629

(It's a bit rough at the moment, only spent 10 mins putting it together)

Comment 6 Richard W.M. Jones 2019-08-01 17:40:46 UTC
https://koji.fedoraproject.org/koji/taskinfo?taskID=36738626

Comment 7 Richard W.M. Jones 2019-08-01 18:05:57 UTC
Previous package was broken.  The actual fix is in the -5 package.