Inconsistency with ocaml's stdlib breaks dependent package builds (rebuild required)

Description:

There seems to have been a problem with the rebuild order for ocaml 5.1.1, as ocaml complains about inconsistencies between ocaml's included stdlib and ocaml-cmdliner when building a package that depends on this one:

ocamlfind ocamlopt -linkpkg -g -package unix -package cmdliner -I src -I test src/uutf.cmx test/utftrip.cmx -o test/utftrip.native
+ ocamlfind ocamlopt -linkpkg -g -package unix -package cmdliner -I src -I test src/uutf.cmx test/utftrip.cmx -o test/utftrip.native
File "_none_", line 1:
Error: Files /usr/lib/ocaml/cmdliner/cmdliner.cmxa
       and /usr/lib/ocaml/stdlib.cmxa
       make inconsistent assumptions over implementation Stdlib__String

Rebuilding ocaml-cmdliner manually fixes this and enables the build of the dependent package to go through.

Additional info:

$ pacman -Q ocaml ocaml-cmdliner 
ocaml 5.1.1-1
ocaml-cmdliner 1.2.0-3

Steps to reproduce:

  1. Try to build ocaml-uutf from the AUR
  2. Observe the build failure
  3. Rebuild ocaml-cmdliner manually
  4. Try to rebuild ocaml-uutf from the AUR
  5. Observe the build success
  6. Profit
Edited by Daniel Peukert