From Alfredo Tupone@21:1/5 to All on Sat Oct 2 09:50:01 2021
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
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 \