From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by c5ff346549e7 (Postfix) with ESMTP id C10375D6 for ; Thu, 8 Aug 2019 18:05:32 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.64,362,1559512800"; d="scan'208,217";a="394883767" Received: from sympa.inria.fr ([193.51.193.213]) by mail2-relais-roc.national.inria.fr with ESMTP; 08 Aug 2019 20:05:31 +0200 Received: by sympa.inria.fr (Postfix, from userid 20132) id D57E47ED24; Thu, 8 Aug 2019 20:05:31 +0200 (CEST) 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 A3DA57EC74 for ; Thu, 8 Aug 2019 20:05:26 +0200 (CEST) Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=yawar.amin@gmail.com; spf=Pass smtp.mailfrom=yawar.amin@gmail.com; spf=None smtp.helo=postmaster@mail-ot1-f43.google.com IronPort-PHdr: =?us-ascii?q?9a23=3A1s7Hvxb0cmXZ2iGGcg7d4Lb/LSx+4OfEezUN459i?= =?us-ascii?q?sYplN5qZrsu5bnLW6fgltlLVR4KTs6sC17OM9fm5BCdZu87JmUtBWaQEbwUCh8?= =?us-ascii?q?QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6?= =?us-ascii?q?OPn+FJLMgMSrzeCy/IDYbxlViDanbr5+MQu6oR/MusULgYZuJbs9xgXVrnBVZ+?= =?us-ascii?q?lY2GRkKE6JkR3h/Mmw5plj8ypRu/Il6cFNVLjxcro7Q7JFEjkoKng568L3uxbN?= =?us-ascii?q?SwuP/WYcXX4NkhVUGQjF7Qr1UYn3vyDnq+dywiiaPcnxTbApRTSv6rpgRRH0hC?= =?us-ascii?q?sbMTMy7XragdJsgq1FvB2hpgR/w4/Kb4GTKPp+Zb7WcdcDSWZcQspdSylND4W7?= =?us-ascii?q?YIUSEuoBJv5YoJfhqFsSoxW+AgysC/nuyj9Om3T62aI33uAkHQzAwQcuHc8BsG?= =?us-ascii?q?7Modr6OqcdU+C7wqfLwzvecf1ZxSzw55LUfh07u/yAQa58fMjXxEIyFw3FlFKQ?= =?us-ascii?q?qYn9MjyXzOsMvXKU7/B9Xu+zjm4nqgdxqSWoy8YskIbIiJgaykre+SpjxYY1JN?= =?us-ascii?q?u4RVV0Yd6hCpRQtiWaO5FqTcMlRmFloSA3waAIt568eSgF0pUnxxjHZvyfaYeI?= =?us-ascii?q?/hLjWPyVITd/mH1qYra/iw6u/kinz+38U9O70FBXoSZfltnMsWwC2AbX6sSfVP?= =?us-ascii?q?R9+Fmh1S+B1wDS7uFLP1o4la7cK5E92LEwkoIfsUHEHi/xn0X6lrOZdkIh+uSw?= =?us-ascii?q?7OTnf6nmpoeBN49okw3+PKUumsihDugiNggOWHSU9v641LH7/E35XLRLgucykq?= =?us-ascii?q?nerJ/VP8Abq6ikCAFWyoYu8wizAyui3dgCnnQKLEhJdAyag4T1IV3DL/71APGi?= =?us-ascii?q?iFq2ijhr3erJPrj5D5XNMHfDlLDhcK5460FGyQozyclT55VICr0cOf7zVED8ud?= =?us-ascii?q?LCAh82NAy0xOnnCNFj2Y8ERW2PBaqZPLvTsV+O+O0vP/GBaJEJtDv5MfQo5P7j?= =?us-ascii?q?gWUnlVMAYaWlx5QaZX6gEvRjOUqZYH7sgtkbEWcNuwozVOzrh0eMUDFJfXa+Rb?= =?us-ascii?q?gz5jQ6CIKgForDSYWtj6aA3Ce/BJFZemdGClWUHXfya4qEQ+sMaD6VIsJ5jjML?= =?us-ascii?q?T72hS4s42RGqtQ/60KZnI/HP+iwYsJLjzMJ66/fSlRE07zx0Dt6S33uDT2FuzS?= =?us-ascii?q?s0QGoX1aY3k014z1qZ1KF+y6hZCc57+f5TQ0E+MpnHwuhrTdfoVVSSUM2OTQOX?= =?us-ascii?q?S8qvG3kYS9M3i4sfall0AZOrixHF9yWvCr4R0beMAcpnoernw3HtKpMlmD7936?= =?us-ascii?q?47ggxjH5IWaD+Ww5Vn/g2WPLbn1kWUk6HwKPYZ1S/JsWCflC+A4BoeXwl3XqHI?= =?us-ascii?q?G3sYYxmO9IWr1gb5V7arTI8fHE5EwM+GJLFNb4Sw31pDTfbnft/ZZjDowjviNV?= =?us-ascii?q?Oz3rqJKbHSVSAFxiyEURoLlgkS+TCNMg1sXio=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CbAQDnY0xdgCvSVdFmHAEBAQQBAQcEA?= =?us-ascii?q?QGBZ4MFUTMqhB6BHYJeiyqCD4pgiCaIAwkBAwEMGxQBAYQ/AoJWGwcBBDQTAQQ?= =?us-ascii?q?BAQQBAQQBAwcBEwEBCQ0JCCeFMAyCOimCZwEBAQECASMdARsSCwEDAQsGAwILA?= =?us-ascii?q?woqAgIiAREBBQEcBhODI4FpAQMOD5AnkA88iyGBFQUBF4J7BYRNChknDV8DgT0?= =?us-ascii?q?CBxKBIotkgVc/gRGDEj6HT4JYBIwriheUeAcCgh9eBIV9jUobgjBthkKOV6ViD?= =?us-ascii?q?yGBHCqBeTMaI1AxgjsJgjmDcYZRhB4mMI0TAQE?= X-IPAS-Result: =?us-ascii?q?A0CbAQDnY0xdgCvSVdFmHAEBAQQBAQcEAQGBZ4MFUTMqhB6?= =?us-ascii?q?BHYJeiyqCD4pgiCaIAwkBAwEMGxQBAYQ/AoJWGwcBBDQTAQQBAQQBAQQBAwcBE?= =?us-ascii?q?wEBCQ0JCCeFMAyCOimCZwEBAQECASMdARsSCwEDAQsGAwILAwoqAgIiAREBBQE?= =?us-ascii?q?cBhODI4FpAQMOD5AnkA88iyGBFQUBF4J7BYRNChknDV8DgT0CBxKBIotkgVc/g?= =?us-ascii?q?RGDEj6HT4JYBIwriheUeAcCgh9eBIV9jUobgjBthkKOV6ViDyGBHCqBeTMaI1A?= =?us-ascii?q?xgjsJgjmDcYZRhB4mMI0TAQE?= X-IronPort-AV: E=Sophos;i="5.64,362,1559512800"; d="scan'208,217";a="315958296" X-MGA-submission: =?us-ascii?q?MDEvbRthskWMYLdJv2YgSf+pXju0qE25GxNdjz?= =?us-ascii?q?uS4v+Q/No9rzmGrfTOvmcEDRfjiB50nc42cCqGQl+Ui5+pJKPC/IcwJo?= =?us-ascii?q?pEYRBueCk5/UI1CtWM5lO6OcwjB8MA0oOfXJj4b5TEgTnSvcY1B1am8k?= =?us-ascii?q?VeEOtwF802P1EJHm/xXXr+zA=3D=3D?= Received: from mail-ot1-f43.google.com ([209.85.210.43]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 08 Aug 2019 20:05:25 +0200 Received: by mail-ot1-f43.google.com with SMTP id j11so21794613otp.10 for ; Thu, 08 Aug 2019 11:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ej/GT+cm+qzMUEAlsho84/lNoi7XT0CZf37q3puyoHg=; b=d0lY7TU35QV1BFY5MsvCL3tFVufQd9WL8sYNidCQDZ69lOXi3LMctF3DKBgtAwTZSl hHzOmPARV1zgzBL9zBwNQGKeV3fpaXn5Nbq1TTPyQjY95mdWM0sHL93jowXCzEVFN4I7 Rt1yFkfuQbwvw6bcJBgWf0J04J9xH3HJLdniSnyLrZk7NasIxQqo+14Vq0hx74gwpJkY 7rHdcwKCoH9jr6hZe+PoTeJqz/GW0g1cD6FqrEJuplM5neZ0kfzie7o5hZB5zQtevYnO sJvO25bOqr4OuUIKYwX8g0VCpHfJXmwugTuCZNZrzDiSptuGIoIpBX1gixIOpNvbaopV LPSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ej/GT+cm+qzMUEAlsho84/lNoi7XT0CZf37q3puyoHg=; b=UyROtlLyb4ASGrjNtBRVKaYUaaONnKj1TCVbwSZ3gjS4jeaYxdcSdHKDm/G9njXqya lMlqgY3jXcyXHLp/ZsJOuK9MnPFocZAqdPxzgsoGKsDjK5yV/eRUrzxWHkVltVsrXSCP asAgMOzmqv5eSk4llhzOcqdAif4Vi2mexuygAAxruoX3L4wMdtGgq/NO03A29Ho+bnjY OakbrYl6TLSoz7fIyEv/FVBB/C+jQAPNiJr8jouLDwzIDC4i78WB/JZSR2m/rA7u6UMa 54dM280maVfjGpo1FwLhfFotinYSa/AVQmSFmj5HYWdgErqY8bYN0pllOhlwtoGM8XYI 3rbw== X-Gm-Message-State: APjAAAVselNR0TPp2d5mBEVt7b9ISj425eAbDF145rGQpl+s9G79SLbk FOmjJrH/iTIdnlBYhs1KIiuyCPCIPzBxX7Dqk13E/k8= X-Google-Smtp-Source: APXvYqwq7rsBHLxizlo/vtZXoeYf5wM8WTJQngQdirCE+N2FhWheIzAbm1tPz3Ug+DbylEYdqbdawSoODZDSO2JGiqk= X-Received: by 2002:a05:6602:219a:: with SMTP id b26mr16555213iob.55.1565287524288; Thu, 08 Aug 2019 11:05:24 -0700 (PDT) MIME-Version: 1.0 References: <20190731211816.x5vj472m34cshifj@matica.foolinux.mooo.com> <20190806184710.7zlxt2amae2tsg3w@matica.foolinux.mooo.com> <20190807203214.6jkj2ygi5vcad4to@matica.foolinux.mooo.com> In-Reply-To: <20190807203214.6jkj2ygi5vcad4to@matica.foolinux.mooo.com> From: Yawar Amin Date: Thu, 8 Aug 2019 14:05:13 -0400 Message-ID: To: Ian Zimmerman Cc: Ocaml Mailing List Content-Type: multipart/alternative; boundary="000000000000db5237058f9ee6b9" Subject: Re: [Caml-list] opam and dune [Was: How to use -map] Reply-To: Yawar Amin X-Loop: caml-list@inria.fr X-Sequence: 17746 Errors-to: caml-list-owner@inria.fr Precedence: list Precedence: bulk Sender: caml-list-request@inria.fr X-no-archive: yes List-Id: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --000000000000db5237058f9ee6b9 Content-Type: text/plain; charset="UTF-8" Checking in generated build system files is fairly common practice now. Lots of build systems/package managers have 'lockfiles' that are generated to help with reproducible builds. These need to be checked in. In fact I think opam has two different ways of generating 'lockfiles'. Regards, Yawar On Wed, Aug 7, 2019 at 4:32 PM Ian Zimmerman wrote: > On 2019-08-06 11:47, Ian Zimmerman wrote: > > > So, for now, I'm sticking with Makefiles. :-P > > I decided to give dune a try, mostly to give myself an excuse to > procrastinate with other projects. After some rough going but being > able to figure it out, I hit what seems like an impassable strait. > > dune generates the $package.opam file, therefore that file should not be > on version control. _But_ then "opam pin ." insists on getting that > very file from the version control repo, instead of using the local one: > > matica!179 aaa$ opam pin . > [NOTE] Package aaa is already pinned to > git+file:///home/itz/git/aaa#master (version 0.0.8~dev). > [aaa.0.0.8~dev] no changes from git+file:///home/itz/git/aaa#master > [WARNING] aaa's opam file has uncommitted changes, using the versioned one > aaa is now pinned to git+file:///home/itz/git/aaa#master (version > 0.0.8~dev) > The following actions will be performed: > - install aaa 0.0.8~dev* > Do you want to continue? [Y/n] y > [aaa.0.0.8~dev] synchronised from git+file:///home/itz/git/aaa#master > > <><> Processing actions > <><><><><><><><><><><><><><><><><><><><><><><><><><><><> > [ERROR] The compilation of aaa failed at > "/home/itz/.local/packages/opam/opam-init/hooks/sandbox.sh build dune > subst". > > #=== ERROR while compiling aaa.0.0.8~dev > ======================================# > # context 2.0.4 | linux/x86_64 | ocaml-base-compiler.4.07.1 | > pinned(git+file:///home/itz/git/aaa#master#193ad3bd) > # path > ~/.local/packages/opam/default/.opam-switch/build/aaa.0.0.8~dev > # command ~/.local/packages/opam/opam-init/hooks/sandbox.sh build dune > subst > # exit-code 1 > # env-file ~/.local/packages/opam/log/aaa-10257-b76d46.env > # output-file ~/.local/packages/opam/log/aaa-10257-b76d46.out > ### output ### > # Error: No .opam files found. > > > > <><> Error report > <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> > +- The following actions failed > | - build aaa 0.0.8~dev > +- > - No changes have been performed > > So how do you get around this? > > -- > Please don't Cc: me privately on mailing lists and Usenet, > if you also post the followup to the list or newsgroup. > To reply privately _only_ on Usenet and on broken lists > which rewrite From, fetch the TXT record for no-use.mooo.com. > --000000000000db5237058f9ee6b9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Checking in generated build system files is fairly common = practice now. Lots of build systems/package managers have 'lockfiles= 9; that are generated to help with reproducible builds. These need to be ch= ecked in. In fact I think opam has two different ways of generating 'lo= ckfiles'.

Regards,

Yawar

On Wed, Aug 7, 2019 at 4:32 PM Ian Zimmerman <itz@very.loosely.org> wrote:
On 2019-08-06 11:47, Ian Zimmerman wro= te:

> So, for now, I'm sticking with Makefiles. :-P

I decided to give dune a try, mostly to give myself an excuse to
procrastinate with other projects.=C2=A0 After some rough going but being able to figure it out, I hit what seems like an impassable strait.

dune generates the $package.opam file, therefore that file should not be on version control.=C2=A0 _But_ then "opam pin ." insists on gett= ing that
very file from the version control repo, instead of using the local one:
=C2=A0matica!179 aaa$ opam pin .
[NOTE] Package aaa is already pinned to git+file:///home/itz/git/aaa#master= (version 0.0.8~dev).
[aaa.0.0.8~dev] no changes from git+file:///home/itz/git/aaa#master
[WARNING] aaa's opam file has uncommitted changes, using the versioned = one
aaa is now pinned to git+file:///home/itz/git/aaa#master (version 0.0.8~dev= )
The following actions will be performed:
=C2=A0 - install aaa 0.0.8~dev*
Do you want to continue? [Y/n] y
[aaa.0.0.8~dev] synchronised from git+file:///home/itz/git/aaa#master

<><> Processing actions <><><><><>= ;<><><><><><><><><>&l= t;><><><><><><><><><&= gt;<><><><>
[ERROR] The compilation of aaa failed at "/home/itz/.local/packages/op= am/opam-init/hooks/sandbox.sh build dune
=C2=A0 =C2=A0 =C2=A0 =C2=A0 subst".

#=3D=3D=3D ERROR while compiling aaa.0.0.8~dev =3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D#
# context=C2=A0 =C2=A0 =C2=A02.0.4 | linux/x86_64 | ocaml-base-compiler.4.0= 7.1 | pinned(git+file:///home/itz/git/aaa#master#193ad3bd)
# path=C2=A0 =C2=A0 =C2=A0 =C2=A0 ~/.local/packages/opam/default/.opam-swit= ch/build/aaa.0.0.8~dev
# command=C2=A0 =C2=A0 =C2=A0~/.local/packages/opam/opam-init/hooks/sandbox= .sh build dune subst
# exit-code=C2=A0 =C2=A01
# env-file=C2=A0 =C2=A0 ~/.local/packages/opam/log/aaa-10257-b76d46.env
# output-file ~/.local/packages/opam/log/aaa-10257-b76d46.out
### output ###
# Error: No <package>.opam files found.



<><> Error report <><><><><><&= gt;<><><><><><><><><>= <><><><><><><><><><= ;><><><><><><>
+- The following actions failed
| - build aaa 0.0.8~dev
+-
- No changes have been performed

So how do you get around this?

--
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.
--000000000000db5237058f9ee6b9--