* [gentoo-dev] dune.eclass change to build release
@ 2021-10-02 7:41 Alfredo Tupone
0 siblings, 0 replies; only message in thread
From: Alfredo Tupone @ 2021-10-02 7:41 UTC (permalink / raw
To: gentoo-dev, ml
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 \
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-02 7:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-02 7:41 [gentoo-dev] dune.eclass change to build release Alfredo Tupone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox