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 ESMTPS id 98D9E5D6 for ; Thu, 8 Aug 2019 01:39:03 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.64,358,1559512800"; d="scan'208,217";a="394788461" Received: from sympa.inria.fr ([193.51.193.213]) by mail2-relais-roc.national.inria.fr with ESMTP; 08 Aug 2019 03:39:02 +0200 Received: by sympa.inria.fr (Postfix, from userid 20132) id 3FD4E828BC; Thu, 8 Aug 2019 03:39:02 +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 A996D828BA for ; Thu, 8 Aug 2019 03:38:52 +0200 (CEST) Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=rudi.grinberg@gmail.com; spf=Pass smtp.mailfrom=rudi.grinberg@gmail.com; spf=None smtp.helo=postmaster@mail-ot1-f45.google.com IronPort-PHdr: =?us-ascii?q?9a23=3AVMbvaRdm1FW+cjOP/E16cojslGMj4u6mDksu8pMi?= =?us-ascii?q?zoh2WeGdxcW/Zx7h7PlgxGXEQZ/co6odzbaP6ea5ADBLuMfJmUtBWaQEbwUCh8?= =?us-ascii?q?QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6?= =?us-ascii?q?OPn+FJLMgMSrzeCy/IDYbxlViDanbr5+MQu6oR/MusULjoZuJbs9xx/UqXZUZu?= =?us-ascii?q?pawn9lK0iOlBjm/Mew+5Bj8yVUu/0/8sNLTLv3caclQ7FGFToqK2866tHluhnF?= =?us-ascii?q?VguP+2ATUn4KnRpSAgjK9w/1U5HsuSbnrOV92S2aPcrrTbAoXDmp8qlmRAP0hC?= =?us-ascii?q?oBKjU293zZitFrjKJDvh2uuwB/zYDTYIGQLvV+f6Xdds4eSWdOWstdUipMCZ6+?= =?us-ascii?q?YYQSFeoMJelXr4f/qFUOoxWwBhSiCv3zxTJTnHD6wbc33v49HQ3a3gEtGc8Fvn?= =?us-ascii?q?TOrNXyMacfSfy7zLTVwjXCcvhY2C396InOch86v/6MR71wetfWxEk1CgPKk1SQ?= =?us-ascii?q?pZbqPzOP1+QNtXOU4PR6VeKgkGMnpARxrSKuxscokIXGmoUVylXd+Ch/3Y07K9?= =?us-ascii?q?q4SEthbt6lFptdrzmaOJFqQsMiWW1ovCE6xaEctp6/ZCQF1JMnxxvaa/OddYiH?= =?us-ascii?q?/wjvVOKWIThknn1lfKqziAi08Ui+0+H8WMi00FJUoSZfltnMsWwC2AbX6sSfT/?= =?us-ascii?q?t9+UCh2TGV2w/P7eFEJFg4la3GK5492r4wi4YTvV3NHi/3nEX5krWadkEj+ue0?= =?us-ascii?q?8evnZq3qpp6AN451kA3+NqMuldClDuQ8NAUFQmuV+fyk2bH94UH0RK9Gg/42n6?= =?us-ascii?q?XDrpzWONgXqrS2DgJV1Iso9gyxAC280NsCmHkKNFJFdwyDj4juI1zOJer3Dfa7?= =?us-ascii?q?g1i1lzdr2+3KMqTvApjCLnXPirjhfbF6605TzAo808pT6I5TCrEEOP7zW0nxu8?= =?us-ascii?q?LEDhIhLQC43+LqBM9+244eQ26DHLKVPL/IvVKH5u8jO+yMa5UUuDb5Jfgl/fnu?= =?us-ascii?q?jXohlF8HYKmmwJoXZGq3HvR8IkWZZ2HjjckbEWcFpQc+Q+nqh0eDUT5XfXq9Q6?= =?us-ascii?q?U85jQjBIK8EYjDXpytgKCG3CqjApJZfGVGClSVHXfsdoWEQOsMZTmJIs5hlzwE?= =?us-ascii?q?TaKuR5Ug1RGorg/6yqBoIvDa+i0C5trf041U7uubpxA38DFuCs2bmzWMU3NcgG?= =?us-ascii?q?4SVnky26dkrEhsjFCZ3v4rreZfEIlp+v9IGiggNJjWwvZ1Q4ToRw7AONiTSVCs?= =?us-ascii?q?T8+pKT40R9M1hdQJZhAuSJ2Zkhnf0n/yUPcunLuRCcloo/uNjUi0HN50zjP97I?= =?us-ascii?q?dkilAnRsVVMmj/3/xw8gHSA8jClEDLzv/3J5RZ5zbE8SK49UTLvExcV1QtA6DM?= =?us-ascii?q?XHRaYVeP6NqluwXNSLihDblhOQxEm5bbdvl6L+bxhFADf8/NfczEajvoyWi1DB?= =?us-ascii?q?eMgLiLadiydg=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0DuAQAvfEtdfy3SVdFmHAEBAQQBAQcEA?= =?us-ascii?q?QGBZ4MFgQQqhB6BHYJei02CD4peiCaIAgkBAwEMGxQBAYQ/AoJSGwcBBDQTAQQ?= =?us-ascii?q?BAQQBAQMBAwcBEwEBCQsLCCeFMAyCOgyDBAEBAQMBIx0BGxILAQMBCwYDAgsDC?= =?us-ascii?q?ioCAiIBEQEFARwGE4MjgWkBAw4Pj3KQDzyLIYEVBQEXgnsFhE0KGScNXwOBPQI?= =?us-ascii?q?HEoEii2SBVz+BEYMSPodPglgEjCeJKG2UcAcCgh5dBIV8jUYbgjBthkGOVKVaD?= =?us-ascii?q?yGBHCqBeU0jUDGCOwmCOYNxhlGEDjYwjykBAQ?= X-IPAS-Result: =?us-ascii?q?A0DuAQAvfEtdfy3SVdFmHAEBAQQBAQcEAQGBZ4MFgQQqhB6?= =?us-ascii?q?BHYJei02CD4peiCaIAgkBAwEMGxQBAYQ/AoJSGwcBBDQTAQQBAQQBAQMBAwcBE?= =?us-ascii?q?wEBCQsLCCeFMAyCOgyDBAEBAQMBIx0BGxILAQMBCwYDAgsDCioCAiIBEQEFARw?= =?us-ascii?q?GE4MjgWkBAw4Pj3KQDzyLIYEVBQEXgnsFhE0KGScNXwOBPQIHEoEii2SBVz+BE?= =?us-ascii?q?YMSPodPglgEjCeJKG2UcAcCgh5dBIV8jUYbgjBthkGOVKVaDyGBHCqBeU0jUDG?= =?us-ascii?q?COwmCOYNxhlGEDjYwjykBAQ?= X-IronPort-AV: E=Sophos;i="5.64,358,1559512800"; d="scan'208,217";a="315882410" X-MGA-submission: =?us-ascii?q?MDGucbsw+oKi+DgKXMZaxz3t4Fv125y3tssd7W?= =?us-ascii?q?4dQP8RmLGxlAH++zSc1UmfYfJdsbupSREr7GTvwofVjdjnDVfbM2R7Jv?= =?us-ascii?q?8Xx8ln6t2zvZD5rOTIzLwjygaigu1mnSCE9w237+1x7bEcUYgq3XiiGQ?= =?us-ascii?q?Bktw8MmRoF/2BqOXRiDklC0w=3D=3D?= Received: from mail-ot1-f45.google.com ([209.85.210.45]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 08 Aug 2019 03:38:51 +0200 Received: by mail-ot1-f45.google.com with SMTP id n5so112282059otk.1 for ; Wed, 07 Aug 2019 18:38:51 -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=i3I5Wdw/nGH7uEfbTuBr8ACTIdLekIYpXCyQ4FNaw5Y=; b=CA5VWmi1b/gmJpPuLeJPsdPtrygV+Ia9NoeUeAmjSgA22pAwtKlbTPzgSqzma0kUq/ 4ohwwa/ajajrkMMQ5/NbNT7lRptLmYdiJfK8cuNjYBR8oIrkR/Pu56xNu+/AZimNaaK3 kFXcwlbYC2qO4KHeWnMxLRK2JMFWZRXkw6VPOMxZvyJ65DGFoejt9Ty6pHSY7ilaQqjZ ajJQq1dEZ3ZIyOAmw9YhMP+fsMG/aO5Q5SBayus4jTN2WTMsMphZc4YbG5an9XCcR19d 57P5UzPN5qUQOeZ0n2MwTfVV8XMytJVyeRoD834QqnaFmqWt+12yh2yqy+F+10GR6h5/ eg9w== 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=i3I5Wdw/nGH7uEfbTuBr8ACTIdLekIYpXCyQ4FNaw5Y=; b=AjkIVPyI0EaFGHf9wJs/d55m5aTYEpw80VzKiistn08v6vq5InPjoR5wV7EiKOWvMA ttDzBn4aHpMd2mYlmk1TFvzVbKmt3zmUtNPvinuUe91+9j+q7f4EckPj1fhut4aO+oE0 R21fZk/19yATMl+MTIWZhO82AwQ3YLWHAgu+HQTfWSob9g8JkTAQEZFoIxHmlAF+r9sn oYjaw9tRuNWpP4YzzZUZq+SIgrn0J1hJBxBFfOvpXTi3qWnBYml1cIEAjSHVN+EZc0Zx a4Ppw9F13zsF0R7wCQkQgNIQ2WI+BDhA3Z+ZSAbLqz8Qo+45ZXovRk+dS0D3BV47ESMI BSIw== X-Gm-Message-State: APjAAAVdKujvQ+gY4tbsd2jHC2shsTwXMaxEm2f88320p3+GXOu+VMrT 4FBkkh2B0sM9RV53I0tasL6wAN78Afxap774cbQ= X-Google-Smtp-Source: APXvYqxf9HPgrFNGdis2PAxA5UURCn+P5NrisE1WoRrHg06TgVqUa9ZTZ+EsTDsIcZ3zpxOXMuHJVbkQNjeS1BgcxMU= X-Received: by 2002:a6b:7208:: with SMTP id n8mr10944881ioc.151.1565228329595; Wed, 07 Aug 2019 18:38:49 -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: Rudi Grinberg Date: Thu, 8 Aug 2019 08:38:38 +0700 Message-ID: To: Ian Zimmerman Cc: caml-list@inria.fr Content-Type: multipart/alternative; boundary="00000000000093f91f058f911ea8" Subject: Re: [Caml-list] opam and dune [Was: How to use -map] Reply-To: Rudi Grinberg X-Loop: caml-list@inria.fr X-Sequence: 17742 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: --00000000000093f91f058f911ea8 Content-Type: text/plain; charset="UTF-8" For now the .opam file needs to be in version control. It's not ideal that we need to check in generated files, so hopefully this problem will be addressed in opam. If this truely bothers you, you can always disable the opam file generation and write your opam file manually. On Thu, Aug 8, 2019 at 3:33 AM 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. > --00000000000093f91f058f911ea8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
For now the .opam file needs to be in version contro= l. It's not ideal that we need to check in generated files, so hopefull= y this problem will be addressed in opam. If this truely bothers you, you c= an always disable the opam file generation and write your opam file manuall= y.

On Thu, Aug 8, 2019 at 3:33 AM Ian Zimmerman <itz@very.loosely.org> 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.=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.
--00000000000093f91f058f911ea8--