From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 325387EE89 for ; Mon, 31 Oct 2016 22:38:32 +0100 (CET) Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=hez@0ok.org; spf=None smtp.mailfrom=hez@0ok.org; spf=None smtp.helo=postmaster@homiemail-a58.g.dreamhost.com Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of hez@0ok.org) identity=pra; client-ip=208.113.200.129; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="hez@0ok.org"; x-sender="hez@0ok.org"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of hez@0ok.org) identity=mailfrom; client-ip=208.113.200.129; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="hez@0ok.org"; x-sender="hez@0ok.org"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@homiemail-a58.g.dreamhost.com) identity=helo; client-ip=208.113.200.129; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="hez@0ok.org"; x-sender="postmaster@homiemail-a58.g.dreamhost.com"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3ACNEDeBBiFCoBZcKnhTjLUyQJP3N1i/DPJgcQr6Af?= =?us-ascii?q?oPdwSP78ocbcNUDSrc9gkEXOFd2CrakV0ayJ4uu5BT1IyK3CmUhKSIZLWR4BhJ?= =?us-ascii?q?detC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBy?= =?us-ascii?q?brysXNWD1YLohqvrp8ybSj4LrQL1Wal1IhSyoFeZnegtqqwmFJwMzADUqGBDYe?= =?us-ascii?q?VcyDAgD1uSmxHh+pX4p8Y7oGx48sgs/M9YUKj8Y79wDfkBVGxnYCgJ45jXtR7G?= =?us-ascii?q?RBDHyXIOW2oQmxtSDkCR8BH9W57qmiTzpONy3iCbJ8CwSqo7D2eM9aBuHVXIhT?= =?us-ascii?q?UKND8w8CnyzIRbhbhHsVjp8xxy0aaMZ4LTM+BxKPCONegGTHZMC54CHxdKBZmx?= =?us-ascii?q?Os5WV7IM?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0DGAACXuRdYbYHIcdBdHAEBBAEBCgEBF?= =?us-ascii?q?wEBBAEBCgEBgkg3AQEBAQF3faMRAQEBBoEblD6CByiFewKCUhMBAQEBAQEBAQE?= =?us-ascii?q?BARINCwkHHzCCMwQBFQEEghEBAQMBEhEdOQEECwsEBzcCAiISAQUBHAYTCBqIK?= =?us-ascii?q?ggOmTKBMj8yi0aEUIgkAQEBAQEBBAEBAQEBAQEBAQEBFAMFhXKFIIQkUIJXgly?= =?us-ascii?q?aHQGGL4oAkASNEYJAMYERIAGBE4UScoVSbYFKAQEB?= X-IPAS-Result: =?us-ascii?q?A0DGAACXuRdYbYHIcdBdHAEBBAEBCgEBFwEBBAEBCgEBgkg?= =?us-ascii?q?3AQEBAQF3faMRAQEBBoEblD6CByiFewKCUhMBAQEBAQEBAQEBARINCwkHHzCCM?= =?us-ascii?q?wQBFQEEghEBAQMBEhEdOQEECwsEBzcCAiISAQUBHAYTCBqIKggOmTKBMj8yi0a?= =?us-ascii?q?EUIgkAQEBAQEBBAEBAQEBAQEBAQEBFAMFhXKFIIQkUIJXglyaHQGGL4oAkASNE?= =?us-ascii?q?YJAMYERIAGBE4UScoVSbYFKAQEB?= X-IronPort-AV: E=Sophos;i="5.31,428,1473112800"; d="scan'208,217";a="198752284" Received: from sub5.mail.dreamhost.com (HELO homiemail-a58.g.dreamhost.com) ([208.113.200.129]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 31 Oct 2016 22:37:55 +0100 Received: from homiemail-a58.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a58.g.dreamhost.com (Postfix) with ESMTP id 0B9F2600412F for ; Mon, 31 Oct 2016 14:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=0ok.org; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=0ok.org; bh=6shbt3UTkJMVShpgF8uAUquFlJo=; b=3mX y8NHefa1T33M8Gjns34tLHpz1agZBUfQxFXBXwhBeQU8XRwViC0uMum3ru0K6k2s ofjVxC/r8IrP3tkI2JKYB792g0qJfbzOMNYlPYqF52f4aYQtVeM+LTgWy0KzWDqw K/+q8HcM1NuUFgdDWOYKnU5ntvp4xfLgqQUEyN7w= Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: hez@0ok.org) by homiemail-a58.g.dreamhost.com (Postfix) with ESMTPSA id E9569600412B for ; Mon, 31 Oct 2016 14:37:51 -0700 (PDT) Received: by mail-qk0-f181.google.com with SMTP id o68so179329045qkf.3 for ; Mon, 31 Oct 2016 14:37:51 -0700 (PDT) X-Gm-Message-State: ABUngvdyra+5isYFvtTLdXJgIlyScm6lSbzTdQnUJk0GguKM06Zc7ig6C/+1WRAO/rm2J6xTqv365TYChojqNw== X-Received: by 10.55.179.131 with SMTP id c125mr24696686qkf.14.1477949871286; Mon, 31 Oct 2016 14:37:51 -0700 (PDT) MIME-Version: 1.0 References: <95A490A3-072E-4F6B-A889-2B3DA1FF3B3A@gazagnaire.org> In-Reply-To: <95A490A3-072E-4F6B-A889-2B3DA1FF3B3A@gazagnaire.org> From: "Hezekiah M. Carty" Date: Mon, 31 Oct 2016 21:37:40 +0000 X-Gmail-Original-Message-ID: Message-ID: To: Thomas Gazagnaire Cc: caml-list@inria.fr Content-Type: multipart/alternative; boundary=94eb2c06568e12fe950540300509 Subject: Re: [Caml-list] Running an Opam Cache? --94eb2c06568e12fe950540300509 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Oct 31, 2016 at 2:25 PM Thomas Gazagnaire wrote: > > I understand that packages can be pinned locally using each package=E2= =80=99s > Git repo and this would work if each package also includes its opam files. > I am looking for a way to populate the cache with the tar/zip files that > the Opam packages point to. > > There are various ways to do it, the easiest one would be to use > `opam-admin`: > > ``` > $ git clone https://github.com/ocaml/opam-repository > $ cd opam-repository > $ opam-admin make --resolve [an optional list of packages to limit the > size of the cache] > $ opam remote add local-cache . > ``` > Is there an existing automated tool to do the same for compilers? Or just download the source + edit the compilers/*/*/*.comp files by hand/script? This will, I suspect, be simpler with opam 2.0 and compilers-as-packages. Thanks, Hez --94eb2c06568e12fe950540300509 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Mon, Oct 31= , 2016 at 2:25 PM Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
> I understand that packages can be pinned locally using each pa= ckage=E2=80=99s Git repo and this would work if each package also includes = its opam files. I am looking for a way to populate the cache with the tar/z= ip files that the Opam packages point to.

There are various ways to do it, the easiest one would be to use `opam-admi= n`:

```
$ git clone https://github.com/ocaml/opa= m-repository
$ cd opam-repository
$ opam-admin make --resolve [an optional list of packages to limit the size= of the cache]
$ opam remote add local-cache .
```

Is there an existing automated tool to do the same for= compilers?=C2=A0 Or just download the source=C2=A0+=C2=A0edit the compiler= s/*/*/*.comp files by hand/script?

This will, I suspect, be simpler = with opam 2.0 and compilers-as-packages.

Thanks,

Hez=C2=A0
--94eb2c06568e12fe950540300509--