From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 702D97EE51 for ; Wed, 29 May 2013 23:29:14 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of monnier.florent@gmail.com) identity=pra; client-ip=74.125.82.169; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="monnier.florent@gmail.com"; x-sender="monnier.florent@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of monnier.florent@gmail.com designates 74.125.82.169 as permitted sender) identity=mailfrom; client-ip=74.125.82.169; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="monnier.florent@gmail.com"; x-sender="monnier.florent@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-we0-f169.google.com) identity=helo; client-ip=74.125.82.169; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="monnier.florent@gmail.com"; x-sender="postmaster@mail-we0-f169.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At0BAIZyplFKfVKpjWdsb2JhbABaxj8IFg4BAQEBBwsLCRIGJIJqARseAxIFCyMBOQERAQUBPYdyAQMPmQWCeYw/gn2EbwoZJw1YiCIBBQyPIAEDg0EDlzuPWxYphDc6gS4HFw X-IPAS-Result: At0BAIZyplFKfVKpjWdsb2JhbABaxj8IFg4BAQEBBwsLCRIGJIJqARseAxIFCyMBOQERAQUBPYdyAQMPmQWCeYw/gn2EbwoZJw1YiCIBBQyPIAEDg0EDlzuPWxYphDc6gS4HFw X-IronPort-AV: E=Sophos;i="4.87,766,1363129200"; d="scan'208";a="16124647" Received: from mail-we0-f169.google.com ([74.125.82.169]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 29 May 2013 23:29:13 +0200 Received: by mail-we0-f169.google.com with SMTP id q55so7009128wes.28 for ; Wed, 29 May 2013 14:29:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=5KLbHCEPsZt9pDBszzaq4+HvsMpn25N+q2gF7QPNDeQ=; b=rNuUaEZpkBMq4FvOnhFcSwX4DrtoTgq8spIsrfaJVf754PBsO2rt83DdSuHZqK1cvS BfANRsFvVZWlhQo0h+BqAMFNPRmchrI43G0XswFW14wZ+M8ozlO8DMV8Q2k9N1fKXzKd QhTL4PbP349ovpms6zWVEHNJR2QRyqZvWg8HI4X1LkIdrVi5vZ+hQTg/yQ9TvxmuN8qH gJvBFZnNIefCduzlQgJrks1Mmg1Da09ZNzSGRARcyHEQBHpD7Kk+DA3nFsY8dZk2o2QW uxyzTP0R27108ZJTBq7iFo1X7yWUxaca1Z308o2mOssrGRDw3cafaACquIVFz4hJ3g3c a9UA== MIME-Version: 1.0 X-Received: by 10.180.79.200 with SMTP id l8mr2232567wix.60.1369862953427; Wed, 29 May 2013 14:29:13 -0700 (PDT) Received: by 10.194.31.2 with HTTP; Wed, 29 May 2013 14:29:13 -0700 (PDT) Date: Wed, 29 May 2013 23:29:13 +0200 Message-ID: From: Florent Monnier To: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 X-Validation-by: monnier.florent@gmail.com Subject: [Caml-list] Re: ~/.opam design 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. --