[opam-devel] opam binary snapshot
anil at recoil.org
Fri Nov 1 08:29:11 GMT 2013
On 31 Oct 2013, at 13:24, Jon Ludlam <Jonathan.ludlam at eu.citrix.com> wrote:
> One slightly odd thing about tarring up the .opam directory is that it's
> usually something that lives in a user's home directory. I wonder if any
> of the packages might have hard-coded paths in there which would mean
> having to install it into exactly the same place - so requiring the same
> user. I guess a quick grep through the .opam dir would tell you this.
The main culprit for this is the OCaml compiler itself, which is not directly
relocatable due to the standard library path being hardcoded (`ocamlc -where`).
However, the system switch might get pretty far...we would just need to check
if ocamlfind has hardcoded paths or if it can be keyed off some environment
variable (which can be set in a custom OPAM switch).
More information about the opam-devel