[opam-devel] Using binaries
Louis Gesbert
louis.gesbert at ocamlpro.com
Fri Jan 22 13:47:54 GMT 2016
Le vendredi 22 janvier 2016, 08:34:34 Gabriel Scherer a écrit :
> I would be interested in some more information on this. This seems very
> simple as you say it, but I had not thought about the fact that OPAM
> already has the capacities to act as a binary distribution platform -- I
> somehow thought that there would be an announcement of some new extra
> features at some point designed for binary distribution.
>
> Louis, you are saying that this is feasible. Are you aware of this actually
> having been done? For example, is anyone working on providing a, say, opam
> repository for x86-64 binaries corresponding to the packages available on
> opam-repository?
>
> I suppose that if people proposed that, they would probably pre-build
> binaries for only a subset of the possible packages or configurations.
> Would it work to mix a "binary repository" that provides only a subset of
> the packages, and the official source repository, and would package query
> solvers have a way to do the right thing there? Or would it be the
> responsibility of the alternate repository provider to include a
> source-only fallback for the non-distributed packages? (This would make it
> harder to have a single repository with binary packages for several
> architectures.)
`ocp-bin` was an experiment to provide such a cache of pre-built packages,
falling back to building from source when unavailable for the current setup.
With the official OCaml distribution, you would hit issues of relocation
though, although there are some hacks around that
(https://github.com/OCamlPro/ocp-reloc)
So although there are no real barriers in Opam for a binary repository, doing
something like a conversion from source repo to binary repo, especially with
OCaml, raises some challenges.
>
> On Fri, Jan 22, 2016 at 7:37 AM, Louis Gesbert <louis.gesbert at ocamlpro.com>
>
> wrote:
> > The package/compiler descriptions fetch an archive and run custom
commands
> > for
> > build and install, so although the standard repo only provides source
> > packages, you are free to build from source or just download and install
a
> > precompiled binary: Opam itself is agnostic in that regard.
> >
> > Hope this helps,
> > Louis Gesbert - OCamlPro
> >
> > Le jeudi 21 janvier 2016, 09:42:45 Edgar Aroutiounian a écrit :
> > > Greetings all,
> > >
> > > I’m trying to wrap up a compiler for opam, specifically this one
> > >
> > > http://psellos.com/ocaml/compile-to-iphone.html
> > > <http://psellos.com/ocaml/compile-to-iphone.html>
> > >
> > > Its an ocaml compiler ready for iOS. Right now I have the repo here,
> > >
> > > https://github.com/fxfactorial/opam-ios
> > > <https://github.com/fxfactorial/opam-ios>
> > >
> > > and its essentially in the same vein as:
> > >
> > > https://github.com/whitequark/opam-android
> > > <https://github.com/whitequark/opam-android>
> > >
> > > but I very much would like to avoid having to do though the process of
> > > building etc. Does opam not have to just be given a binary? This would
> >
> > make
> >
> > > it much easier methinks.
> > >
> > > -Edgar Aroutiounian
> >
> > _______________________________________________
> > opam-devel mailing list
> > opam-devel at lists.ocaml.org
> > http://lists.ocaml.org/listinfo/opam-devel
More information about the opam-devel
mailing list