[Rpm-maint] [rpm-software-management/rpm] update OCaml requires/provides to cover also cmx (#1070)

Olaf Hering notifications at github.com
Fri Feb 14 13:12:09 UTC 2020

Dependencies between OCaml files containing native code are also tracked
by hashes, just like their bytecode counter parts.

OCaml native code files end with cmx, the relevent info is in cmx, cmxa
and cmxs files. Unlike all other OCaml files, cmxs files have ELF format.

OCaml has two variants of dependency tracking:
  Interfaces, which are already tracked via "ocaml(MODULE) = HASH"
  They are included in cmi, cma, cmo, cmx, cmxa and cmxs files.

  Implementations, which are now tracked via "ocamlx(MODULE) = HASH"
  They are included in cmx, cmxa and cmxs files.

Just like Interfaces can be excluded from the dependency list with the
option -i MODULE, Implementations are excluded with the option -x MODULE.

Previously the final rpm package also got an extra dependency to the
used ocaml runtime version. This is not strictly required because the
hashes are unique. Therefore this dependency is no longer created. The
option -c, which excluded this dependency, is still recognized.

Fixes #913

Signed-off-by: Olaf Hering <olaf at aepfle.de>
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * update OCaml requires/provides to cover also cmx

-- File Changes --

    M fileattrs/ocaml.attr (7)
    M scripts/Makefile.am (4)
    D scripts/ocaml-find-provides.sh (56)
    D scripts/ocaml-find-requires.sh (68)
    A scripts/ocamldeps.sh (243)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200214/6a346ea8/attachment.html>

More information about the Rpm-maint mailing list