caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Re: ~/.opam design
@ 2013-05-29 21:29 Florent Monnier
  2013-05-30  7:18 ` Sébastien Dailly
  0 siblings, 1 reply; 4+ messages in thread
From: Florent Monnier @ 2013-05-29 21:29 UTC (permalink / raw)
  To: caml-list

2013/05/29, Mr. Herr wrote:
[...]
> There are certainly advantages in the ~/.opam design decision, but I have
> yet to find out how to roll out my ~/.opam libraries for production.

I do like this design. It's very logic.
Install in the user's home is just the default behaviour.
Moreover if you want to install in the system you should login as
root, then just change the defaults for the root user to install in
the system.

For fun I've played with wrapping an opam package inside a rpm package.
I just have to tar.gz the package directory and in the .spec file, sed
the archive field for a file:// path (because not allowed to get
something from outside) seded with the archives in the SOURCES
directory of the rpm package. I init Opam and repo remove the internet
one (again nothing from outside), then install in the path that
rpmbuild wants.
There is still one detail that won't be able to be done by a script
it's when there's a C lib dependency, because Opam don't provide yet
any feature for this. But this will probably come for 2.0. So it's
potentially possible to create .rpm's for all Opam packages with
almost no or very few human work. This kind of rpm's won't fit the
Mageia packaging policy though, but we could change it to allow this,
or put an unofficial rpm repo somewhere else.

--

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-30  8:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29 21:29 [Caml-list] Re: ~/.opam design Florent Monnier
2013-05-30  7:18 ` Sébastien Dailly
2013-05-30  7:38   ` Thomas Gazagnaire
2013-05-30  8:14     ` Sébastien Dailly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).