Get rid of calls to opam when using opam#61
Conversation
|
This seems like the best workaround for now. We could add an |
|
This looks like a bug in opam 2.1~alpha (did you report it upstream?). This mechanism will go away in mirage4 so I'm not sure we really want to workaround that bug. |
|
I agree with @samoht here, that |
|
What is the status of this and the related mirage/ocaml-solo5#79? Do I understand this correctly, namely that functionality Mirage has been relying on (and will continue to rely on, at least for the lifetime of Mirage 3.x), i.e. the use of |
|
Calling opam during build is still permitted (with |
|
I'll close this PR. With #79, |
configure: fix 4.08+ case; support >= 4.08.1+rc3
Currently using opam 2.1~alpha (this is probably a bug but it might break in the future), mirage-solo5 fails to install because it uses
opam config varwhile already being inside opam.This PR gets rid of the issue by using dune variables. However I didn't found a way to directly get the
PREFIX(e.g.~/.opam/<switch>/) with dune other than relying on the "hack"%{lib:pkgconfig:}/../pkgconfig, so I'm tagging this PR as a draft for now to start a discussion. cc @jeremiedimino @rgrinberg is there a cleaner way to get the opam prefix with dune?