Bug 1737414 - missing OCaml libraries
Summary: missing OCaml libraries
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ocaml-dune
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Andy Li
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-05 10:35 UTC by Pino Toscano
Modified: 2019-08-15 18:09 UTC (History)
3 users (show)

Fixed In Version: ocaml-dune-1.7.3-2.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-15 18:09:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pino Toscano 2019-08-05 10:35:03 UTC
Description of problem:
dune ships few OCaml libraries in addition to the tool itself; they are used to help with the interaction with C/system bits, as also briefly explained here:
https://dune.readthedocs.io/en/latest/configurator.html

I guess a ocaml-dune-devel is needed with the development bits, while the actual libraries shipped in ocaml-dune itself.

Version-Release number of selected component (if applicable):
ocaml-dune-1.7.3-1.fc30.x86_64

Comment 1 Richard W.M. Jones 2019-08-05 12:01:44 UTC
Which libraries are we missing exactly?  Can you show me an example program which
fails (eg to compile) with our dune package?  Just trying to get an idea of
how much work this involves.

Comment 2 Pino Toscano 2019-08-05 12:49:21 UTC
(In reply to Richard W.M. Jones from comment #1)
> Which libraries are we missing exactly?

The whole Dune.Configurator, although I suspect it requires a bigger internal library.
For comparison, check the content of libdune-ocaml-dev in Debian:
https://packages.debian.org/sid/amd64/libdune-ocaml-dev/filelist

> Can you show me an example program which
> fails (eg to compile) with our dune package?

One is mentioned in the Configuration documentation:
https://dune.readthedocs.io/en/latest/configurator.html
Another one is mentioned w.r.t use pkg-config for discover C dependencies:
https://dune.readthedocs.io/en/latest/quick-start.html#defining-a-library-with-c-stubs-using-pkg-config

Comment 3 Ben Rosser 2019-08-06 18:17:13 UTC
So the problem here is pretty simple: dune/jbuilder requires (or required-- it might be different now) opam-installer to install itself, which itself is *built* using dune/jbuilder.

Thus in the "install" section of the package, we install everything by hand. So when we wrote this originally, there were no libraries to install, and the spec was never updated to install them.

I think this should be pretty simple to fix. Will work at getting it working in Rawhide and then update the Fedora 30 package too.

Comment 4 Fedora Update System 2019-08-06 19:10:45 UTC
FEDORA-2019-aeca13759e has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-aeca13759e

Comment 5 Fedora Update System 2019-08-07 01:07:54 UTC
ocaml-dune-1.7.3-2.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-aeca13759e

Comment 6 Fedora Update System 2019-08-15 18:09:40 UTC
ocaml-dune-1.7.3-2.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.