From 6c79cee2e30ccfae6aee40c84e8c160f4b4fe76f Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Thu, 6 Jun 2019 15:08:42 +0200 Subject: gnu: ocaml-cmdliner: Fix non determinism. * gnu/packages/ocaml.scm (ocaml-cmdliner)[arguments]: Patch build.ml to fix a file ordering issue. --- gnu/packages/ocaml.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 08b4fcf2b0..492149af9a 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -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 -- cgit v1.2.3