This is for review the change i ndune.eclass The reason is that the new ocaml-4.12 compiler raise some warning that dune transform in fatal error The following changes is to build with profile release. That will change compiler warning to not raise fatal error during build
diff --git a/eclass/dune.eclass b/eclass/dune.eclass index 5e2c1fa1f7c4..02a8a870ef43 100644 --- a/eclass/dune.eclass +++ b/eclass/dune.eclass @@ -30,31 +30,31 @@ QA_FLAGS_IGNORED='.*' EXPORT_FUNCTIONS src_compile src_test src_install RDEPEND=">=dev-lang/ocaml-4:=[ocamlopt?] dev-ml/dune:=" case ${EAPI:-0} in 5|6) DEPEND="${RDEPEND} dev-ml/dune" ;; *) BDEPEND="dev-ml/dune dev-lang/ocaml" DEPEND="${RDEPEND}" ;; esac dune_src_compile() { - dune build @install || die + dune build @install --profile release || die } dune_src_test() { dune runtest || die } # @FUNCTION: dune-install # @USAGE: <list of packages> # @DESCRIPTION: # Installs the dune packages given as arguments. For each "${pkg}" element in # that list, "${pkg}.install" must be readable from "${PWD}/_build/default" dune-install() { local pkg for pkg ; do dune install \