gnu: ocaml-cmdliner: Fix non determinism.

* gnu/packages/ocaml.scm (ocaml-cmdliner)[arguments]: Patch build.ml to
fix a file ordering issue.
This commit is contained in:
Julien Lepiller 2019-06-06 15:08:42 +02:00
parent 38f06188df
commit 6c79cee2e3
No known key found for this signature in database
GPG Key ID: 43111F4520086A0C
1 changed files with 7 additions and 1 deletions

View File

@ -1627,7 +1627,13 @@ spans without being subject to operating system calendar time adjustments.")
"/lib/ocaml/site-lib/cmdliner"))
#:phases
(modify-phases %standard-phases
(delete 'configure))))
(delete 'configure)
(add-before 'build 'fix-source-file-order
(lambda _
(substitute* "build.ml"
(("Sys.readdir dir")
"let a = Sys.readdir dir in Array.sort String.compare a; a"))
#t)))))
(home-page "http://erratique.ch/software/cmdliner")
(synopsis "Declarative definition of command line interfaces for OCaml")
(description "Cmdliner is a module for the declarative definition of command