[opam-devel] [Caml-list] [rfc] deprecating opam 1.2.0

David Allsopp dra-news at metastack.com
Sat Jun 3 16:04:06 BST 2017


Evgeny Roubinchtein wrote:
> One annoyance is that well-behaved ports are only supposed to
> access network during the "fetch" stage, so one would need to
> replicate in the FreeBSD port's Makefile the targets from the
> opam source tree that download various things during opam's 
> build (I think it's mostly things in src_ext).  That isn't an
> insurmountable obstacle, by any means, but just a bit of work
> that needs to be done.

See https://github.com/ocaml/opam/pull/2956/commits/13fdc7e4707d16748b9994cd6299bc259b4dd6da (which is in the process of being merged) and https://github.com/dra27/opam/commit/0f22342962d18aff4da4da0f206fb3a0aa278742 (which will head in a similar direction soon).

13fdc7e gives you make -C src_ext cache-archives which will download all the src_ext tarballs to src_ext/archives
If you then explicitly download the ocaml sources tarball to src_ext/archives/, then 0f2234 ensures that make cold uses it

HTH,


David



More information about the opam-devel mailing list