On 2021/01/21 06:43, Bjorn Ketelaars wrote: > On Wed 20/01/2021 21:42, Jeremie Courreges-Anglas wrote: > > On Wed, Jan 20 2021, Bjorn Ketelaars <b...@openbsd.org> wrote: > > > (Maintainer timeout) > > > > > > ocaml is currently a RDEP for all ports that are build with it. This is > > > unnecessary for a couple of them, i.e. net/unison. > > > > As far as I know, programs written in OCaml should run without the OCaml > > runtime installed on ${OCAML_NATIVE_ARCHS}, currently i386 and amd64. > > Except for OCaml programs that make direct use of the OCaml runtime, of > > course... But the rundep is still needed on non-native archs. > > > > > I would like to > > > propose the addition of MODOCAML_RUNDEP and MODOCAML_BUILDDEP, which are > > > modelled on python.port.mk. > > > > > > Default behaviour is not changed. Setting MODOCAML_RUNDEP=No in a > > > Makefile excludes ocaml as RDEP. > > > > > > OK? > > > > Your diff makes sense I think, but you can't just use it to > > disable the run-dep in net/unison: you'd break unison installs on > > non-native archs. > > Oops, I didn't think about the above. > > I will look further for a fitting, clean solution that serves all > arches. >
Maybe allow MODOCAML_RUNDEP=yes/no/nonative or some similar thing? It would be nice to handle the arch detection in ocaml.port.mk rather than in any port using this.