hcarty/ocamlbrew

opam requires gmake in BSD systems

Closed this issue · 3 comments

C.f. http://opam.ocamlpro.com/doc/Advanced_Install.html

To make ocamlbrew -r work on FreeBSD I had to change lines 457, 458

        build)
            say Building opam
            gmake SHELL=bash
            gmake install  SHELL=bash

Maybe this could be detected or passed through an option/variable?
(and also the fact that gmake is required should be documented)

This is an opam requirement. Is there a nice, portable way of detecting which make binary to use on a BSD system? I don't have anything BSD available to test locally.

I don't know.
At least, on FreeBSD and OpenBSD when I install GNU-make with the default pkg_add I get the executable called gmake.

For now maybe just having a variable OCAMLBREW_MAKE (with default to make) could be enough?

The referenced commit should provide what you're looking for. Please give this a test and re-open this bug or create a new one if you still have trouble. Thanks for the report!