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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 9DBE97F75C for ; Wed, 27 Aug 2014 09:45:37 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of martindemello@gmail.com) identity=pra; client-ip=209.85.213.42; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="martindemello@gmail.com"; x-sender="martindemello@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of martindemello@gmail.com designates 209.85.213.42 as permitted sender) identity=mailfrom; client-ip=209.85.213.42; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="martindemello@gmail.com"; x-sender="martindemello@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-yh0-f42.google.com) identity=helo; client-ip=209.85.213.42; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="martindemello@gmail.com"; x-sender="postmaster@mail-yh0-f42.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Al4EAHCL/VPRVdUqm2dsb2JhbABbg2BXBIJ4rHycIkeHTAGBCAgWEAEBAQEBBgsLCRQphAQBAQMBEhEdARseAwELBgMCCzcCAiEBAREBBQEcBhMIGogLAQMJCA2OS5Ana4srgXKDEIkqChknDWaEWREBAQQOjRGCKQuCeYFTBYsqijKEbIIQjmCERRgphS8dLwEBgk0BAQE X-IPAS-Result: Al4EAHCL/VPRVdUqm2dsb2JhbABbg2BXBIJ4rHycIkeHTAGBCAgWEAEBAQEBBgsLCRQphAQBAQMBEhEdARseAwELBgMCCzcCAiEBAREBBQEcBhMIGogLAQMJCA2OS5Ana4srgXKDEIkqChknDWaEWREBAQQOjRGCKQuCeYFTBYsqijKEbIIQjmCERRgphS8dLwEBgk0BAQE X-IronPort-AV: E=Sophos;i="5.04,409,1406584800"; d="scan'208";a="91628763" Received: from mail-yh0-f42.google.com ([209.85.213.42]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 27 Aug 2014 09:45:36 +0200 Received: by mail-yh0-f42.google.com with SMTP id a41so13268481yho.29 for ; Wed, 27 Aug 2014 00:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=zTQoMohVqral5YVsw4oNC3STgGMb8arrNBd8sQ9mQs0=; b=obOdL9qnKNbRXNsKZOPfPfuIBXRcu3YOyGxniUhJQFDI63S6qbHvV0InIxj4NbTKRo C7TbHesm/3z/Jpqll+L/2RS0E4JzJR3LgaKedM4r//8tkU8X7o1g4wUV0DshH1Deiuun xEmiPKqRANrJCJpuc/sh+aDCvcqftl+YLGJ3qgK4To6/DP2Ct0IxOf3BjdVY0DkmtXF0 M1bymVtcRiYijrECaVek+ZXBzxar6ynRir5hmCKAwpsdmzvX3DwOeLHW/rUNPXZ2udbp hwJbs6B5FKTLdC8INZVoZPs/cttK/PRjNBWb+eLnr9WVW3VWWHdP76fkoTCHsoEtr39e aqcg== MIME-Version: 1.0 X-Received: by 10.220.247.3 with SMTP id ma3mr15538496vcb.29.1409125535193; Wed, 27 Aug 2014 00:45:35 -0700 (PDT) Received: by 10.220.3.78 with HTTP; Wed, 27 Aug 2014 00:45:35 -0700 (PDT) In-Reply-To: References: Date: Wed, 27 Aug 2014 00:45:35 -0700 Message-ID: From: Martin DeMello To: OCaml List Content-Type: multipart/alternative; boundary=089e013c6ecaf820060501979aac Subject: Re: [Caml-list] is this an opam bug or something i'm doing wrong? --089e013c6ecaf820060501979aac Content-Type: text/plain; charset=UTF-8 Looks like 0.6.1 is the latest version that doesn't have a "depends" field, which would at least hint at why that one in particular got picked. but switching to 4.02.0+rc1 and trying again drops me back to 0.1.0. $ opam list Installed packages for 4.02.0+rc1: base-bigarray base Bigarray library distributed with the OCaml compiler base-threads base Threads library distributed with the OCaml compiler base-unix base Unix library distributed with the OCaml compiler ocp-indent 0.1.0 A simple tool to indent OCaml programs which according to opam show shouldn't even be an option: $ opam show ocp-indent package: ocp-indent version: 0.1.0 upstream-url: https://github.com/OCamlPro/ocp-indent/archive/0.1.0.tar.gz upstream-kind: http upstream-checksum: d8f4050700a12f77c0d157ac931cac5f homepage: https://github.com/OCamlPro/ocp-indent installed-version: ocp-indent.0.1.0 [4.02.0+rc1] available-versions: 0.6.0, 0.6.1, 0.6.2, 0.9.0, 0.9.2, 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.1 description: A simple tool to indent OCaml programs martin On Wed, Aug 27, 2014 at 12:18 AM, Martin DeMello wrote: > I installed opam from a fresh start (reinstalled opam itself, deleted my > .opam), ran "opam switch 4.01.0", and then tried to install ocp-indent, > which installed version 0.1.0. So I tried opam upgrade, which wanted to > install 0.6.1 even though there are later versions available: > > $ opam upgrade > The following actions will be performed: > - upgrade ocp-indent.0.1.0 to 0.6.1 > 0 to install | 0 to reinstall | 1 to upgrade | 0 to downgrade | 0 to remove > > =-=-= Removing Packages =-=-= > Removing ocp-indent.0.1.0. > ./configure --prefix=/home/martin/.opam/4.01.0 > make uninstall > > =-=-= Installing ocp-indent.0.6.1 =-=-= > > ..... > > $ opam install ocp-indent > [NOTE] Package ocp-indent is already installed (current version is 0.6.1). > > $ opam install ocp-indent.1.4.1 > The following actions will be performed: > - install ocamlfind.1.5.2 [required by ocp-indent] > - install cmdliner.0.9.5 [required by ocp-indent] > - install typerex.1.99.6-beta [required by ocp-indent] > - install ocp-build.1.99.6-beta [required by ocp-indent] > - upgrade ocp-indent.0.6.1 to 1.4.1 > 4 to install | 0 to reinstall | 1 to upgrade | 0 to downgrade | 0 to remove > Do you want to continue ? [Y/n] y > > --089e013c6ecaf820060501979aac Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Looks like 0.6.1 is the latest version that doesn't ha= ve a "depends" field, which would at least hint at why that one i= n particular got picked. but switching to 4.02.0+rc1 and trying again drops= me back to 0.1.0.

$ opam list
Installed packages for 4.02.= 0+rc1:
base-bigarray =C2=A0 base =C2=A0Bigarray library distribut= ed with the OCaml compiler
base-threads =C2=A0 =C2=A0base =C2=A0T= hreads library distributed with the OCaml compiler
base-unix =C2=A0 =C2=A0 =C2=A0 base =C2=A0Unix library distributed wit= h the OCaml compiler
ocp-indent =C2=A0 =C2=A0 0.1.0 =C2=A0A simpl= e tool to indent OCaml programs

which accord= ing to opam show shouldn't even be an option:

$ opam show = ocp-indent
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0package: ocp-indent
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0version: 0.1.0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 upst= ream-url: https://github.com/OCamlPro/ocp-indent/archive/0.1.0.tar.gz
=C2=A0 =C2=A0 =C2=A0 =C2= =A0upstream-kind: http
=C2=A0 =C2=A0upstream-checksum: = d8f4050700a12f77c0d157ac931cac5f
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 homepage: https://github.com/OCamlPro/ocp-in= dent
=C2=A0 =C2=A0installed-version: = ocp-indent.0.1.0 [4.02.0+rc1]
=C2=A0 available-versions: 0.6.0, 0.6.1, 0.6.2, 0.9.0, 0.9.2, 1.0= .0, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1= .4.1
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0description: A simple tool to indent OCaml programs

martin

On Wed, Aug 27, 2014 at 12:18 AM, Martin DeMello <martindemello@gmai= l.com> wrote:
I installed opam from a fresh start (reinstalled= opam itself, deleted my .opam), ran "opam switch 4.01.0", and th= en tried to install ocp-indent, which installed version 0.1.0. So I tried o= pam upgrade, which wanted to install 0.6.1 even though there are later vers= ions available:

$ opam upgrade
The following actions wi= ll be performed:
=C2=A0- upgrade ocp-indent.0.1.0 to 0.6.1
<= div>0 to install | 0 to reinstall | 1 to upgrade | 0 to downgrade | 0 to re= move

=3D-=3D-=3D Removing Packages =3D-=3D-=3D
Rem= oving ocp-indent.0.1.0.
=C2=A0 ./configure --prefix=3D/home/marti= n/.opam/4.01.0
=C2=A0 make uninstall

=3D= -=3D-=3D Installing ocp-indent.0.6.1 =3D-=3D-=3D

.....

$ opam install= ocp-indent
[NOTE] Package ocp-indent is already installed (c= urrent version is 0.6.1).

$ opam install ocp-inden= t.1.4.1
The following actions will be performed:
=C2=A0- install oca= mlfind.1.5.2 [required by ocp-indent]
=C2=A0- install cmdliner.0.= 9.5 [required by ocp-indent]
=C2=A0- install typerex.1.99.6-beta = [required by ocp-indent]
=C2=A0- install ocp-build.1.99.6-beta [required by ocp-indent]
=C2=A0- upgrade ocp-indent.0.6.1 to 1.4.1
4 to install | 0 to = reinstall | 1 to upgrade | 0 to downgrade | 0 to remove
Do you wa= nt to continue ? [Y/n] y


--089e013c6ecaf820060501979aac--