caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] is this an opam bug or something i'm doing wrong?
@ 2014-08-27  7:18 Martin DeMello
  2014-08-27  7:45 ` Martin DeMello
  0 siblings, 1 reply; 12+ messages in thread
From: Martin DeMello @ 2014-08-27  7:18 UTC (permalink / raw)
  To: OCaml List

[-- Attachment #1: Type: text/plain, Size: 1161 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1556 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Caml-list] is this an opam bug or something i'm doing wrong?
  2014-08-27  7:18 [Caml-list] is this an opam bug or something i'm doing wrong? Martin DeMello
@ 2014-08-27  7:45 ` Martin DeMello
  2014-08-27  7:59   ` Martin DeMello
  2014-08-27 12:53   ` Ashish Agarwal
  0 siblings, 2 replies; 12+ messages in thread
From: Martin DeMello @ 2014-08-27  7:45 UTC (permalink / raw)
  To: OCaml List

[-- Attachment #1: Type: text/plain, Size: 2478 bytes --]

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 <martindemello@gmail.com>
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
>
>

[-- Attachment #2: Type: text/html, Size: 4038 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Caml-list] is this an opam bug or something i'm doing wrong?
  2014-08-27  7:45 ` Martin DeMello
@ 2014-08-27  7:59   ` Martin DeMello
  2014-08-27  9:27     ` Daniel Bünzli
  2014-08-27 12:53   ` Ashish Agarwal
  1 sibling, 1 reply; 12+ messages in thread
From: Martin DeMello @ 2014-08-27  7:59 UTC (permalink / raw)
  To: OCaml List

[-- Attachment #1: Type: text/plain, Size: 2810 bytes --]

sorry for the noise, looks like a bug with the package itself :( should've
checked for that first

https://github.com/OCamlPro/ocp-indent/issues/142


On Wed, Aug 27, 2014 at 12:45 AM, Martin DeMello <martindemello@gmail.com>
wrote:

> 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 <martindemello@gmail.com>
> 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
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 4840 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Caml-list] is this an opam bug or something i'm doing wrong?
  2014-08-27  7:59   ` Martin DeMello
@ 2014-08-27  9:27     ` Daniel Bünzli
  2014-08-27 20:28       ` Martin DeMello
  0 siblings, 1 reply; 12+ messages in thread
From: Daniel Bünzli @ 2014-08-27  9:27 UTC (permalink / raw)
  To: Martin DeMello; +Cc: OCaml List

Le mercredi, 27 août 2014 à 08:59, Martin DeMello a écrit :
> sorry for the noise, looks like a bug with the package itself :( should've checked for that first
>  
> https://github.com/OCamlPro/ocp-indent/issues/142
This should be fixed but your opam may be in a state where it's not easy to apply the fix. Follow these instructions:  

https://github.com/ocaml/opam-repository/commit/55042c39fcef4f8b1c4e5db7b1120180bab05921#commitcomment-7540530

Daniel



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Caml-list] is this an opam bug or something i'm doing wrong?
  2014-08-27  7:45 ` Martin DeMello
  2014-08-27  7:59   ` Martin DeMello
@ 2014-08-27 12:53   ` Ashish Agarwal
  2014-08-27 20:26     ` Martin DeMello
  1 sibling, 1 reply; 12+ messages in thread
From: Ashish Agarwal @ 2014-08-27 12:53 UTC (permalink / raw)
  To: Martin DeMello; +Cc: OCaml List

[-- Attachment #1: Type: text/plain, Size: 670 bytes --]

On Wed, Aug 27, 2014 at 3:45 AM, Martin DeMello <martindemello@gmail.com>
wrote:

trying again drops me back to 0.1.0.
> ...
> which according to opam show shouldn't even be an option:
>
> $ opam show 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
>

Maybe you're saying this because 0.1.0 isn't listed in the
available-versions field, but that field filters out versions you already
have installed (in any switch). This always confuses me and think
available-versions should just list all versions.

[-- Attachment #2: Type: text/html, Size: 1702 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Caml-list] is this an opam bug or something i'm doing wrong?
  2014-08-27 12:53   ` Ashish Agarwal
@ 2014-08-27 20:26     ` Martin DeMello
  2014-08-27 22:55       ` Ashish Agarwal
  0 siblings, 1 reply; 12+ messages in thread
From: Martin DeMello @ 2014-08-27 20:26 UTC (permalink / raw)
  To: Ashish Agarwal; +Cc: OCaml List

[-- Attachment #1: Type: text/plain, Size: 435 bytes --]

On Wed, Aug 27, 2014 at 5:53 AM, Ashish Agarwal <agarwal1975@gmail.com>
wrote:

>
> Maybe you're saying this because 0.1.0 isn't listed in the
> available-versions field, but that field filters out versions you already
> have installed (in any switch). This always confuses me and think
> available-versions should just list all versions.
>

I'd definitely like to see that change! As a user the current way is very
confusing.

martin

[-- Attachment #2: Type: text/html, Size: 900 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Caml-list] is this an opam bug or something i'm doing wrong?
  2014-08-27  9:27     ` Daniel Bünzli
@ 2014-08-27 20:28       ` Martin DeMello
  2014-08-27 22:48         ` Anil Madhavapeddy
  0 siblings, 1 reply; 12+ messages in thread
From: Martin DeMello @ 2014-08-27 20:28 UTC (permalink / raw)
  To: Daniel Bünzli; +Cc: OCaml List

[-- Attachment #1: Type: text/plain, Size: 932 bytes --]

Thanks! I've had to start from scratch anyway since for some reason the
arch linux package had me stuck on the 1.0 version with a link to the wrong
default repo (I only realised this when I tried to install oasis 0.4 and
couldn't) and I messed something up trying to fix it in place, so I don't
mind deleting .opam once more.

martin


On Wed, Aug 27, 2014 at 2:27 AM, Daniel Bünzli <daniel.buenzli@erratique.ch>
wrote:

> Le mercredi, 27 août 2014 à 08:59, Martin DeMello a écrit :
> > sorry for the noise, looks like a bug with the package itself :(
> should've checked for that first
> >
> > https://github.com/OCamlPro/ocp-indent/issues/142
> This should be fixed but your opam may be in a state where it's not easy
> to apply the fix. Follow these instructions:
>
>
> https://github.com/ocaml/opam-repository/commit/55042c39fcef4f8b1c4e5db7b1120180bab05921#commitcomment-7540530
>
> Daniel
>
>
>

[-- Attachment #2: Type: text/html, Size: 1596 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Caml-list] is this an opam bug or something i'm doing wrong?
  2014-08-27 20:28       ` Martin DeMello
@ 2014-08-27 22:48         ` Anil Madhavapeddy
  2014-08-27 23:02           ` Martin DeMello
  0 siblings, 1 reply; 12+ messages in thread
From: Anil Madhavapeddy @ 2014-08-27 22:48 UTC (permalink / raw)
  To: Martin DeMello; +Cc: Daniel Bünzli, OCaml List, Vincent B.

According to the OPAM distributions list [1], Arch should be on OPAM 1.1.1, which points to the maintained default repo.

I'm afraid I've never used Arch to know where you might turn to for help, but if it's really installing OPAM 1.0 then I'd like to know so that we can prevent any more new installations of that version.

[1] https://github.com/ocaml/opam/wiki/Distributions

-anil

On 27 Aug 2014, at 21:28, Martin DeMello <martindemello@gmail.com> wrote:

> Thanks! I've had to start from scratch anyway since for some reason the arch linux package had me stuck on the 1.0 version with a link to the wrong default repo (I only realised this when I tried to install oasis 0.4 and couldn't) and I messed something up trying to fix it in place, so I don't mind deleting .opam once more.
> 
> martin
> 
> 
> On Wed, Aug 27, 2014 at 2:27 AM, Daniel Bünzli <daniel.buenzli@erratique.ch> wrote:
> Le mercredi, 27 août 2014 à 08:59, Martin DeMello a écrit :
> > sorry for the noise, looks like a bug with the package itself :( should've checked for that first
> >
> > https://github.com/OCamlPro/ocp-indent/issues/142
> This should be fixed but your opam may be in a state where it's not easy to apply the fix. Follow these instructions:
> 
> https://github.com/ocaml/opam-repository/commit/55042c39fcef4f8b1c4e5db7b1120180bab05921#commitcomment-7540530
> 
> Daniel
> 
> 
> 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Caml-list] is this an opam bug or something i'm doing wrong?
  2014-08-27 20:26     ` Martin DeMello
@ 2014-08-27 22:55       ` Ashish Agarwal
  0 siblings, 0 replies; 12+ messages in thread
From: Ashish Agarwal @ 2014-08-27 22:55 UTC (permalink / raw)
  To: Martin DeMello; +Cc: OCaml List

[-- Attachment #1: Type: text/plain, Size: 598 bytes --]

On Wed, Aug 27, 2014 at 4:26 PM, Martin DeMello <martindemello@gmail.com>
wrote:

> On Wed, Aug 27, 2014 at 5:53 AM, Ashish Agarwal <agarwal1975@gmail.com>
> wrote:
>
>>
>> Maybe you're saying this because 0.1.0 isn't listed in the
>> available-versions field, but that field filters out versions you already
>> have installed (in any switch). This always confuses me and think
>> available-versions should just list all versions.
>>
>
> I'd definitely like to see that change! As a user the current way is very
> confusing.
>

I submitted a feature wish:
https://github.com/ocaml/opam/issues/1660

[-- Attachment #2: Type: text/html, Size: 1567 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Caml-list] is this an opam bug or something i'm doing wrong?
  2014-08-27 22:48         ` Anil Madhavapeddy
@ 2014-08-27 23:02           ` Martin DeMello
  2014-08-28  6:55             ` Vincent B.
  0 siblings, 1 reply; 12+ messages in thread
From: Martin DeMello @ 2014-08-27 23:02 UTC (permalink / raw)
  To: Anil Madhavapeddy; +Cc: Daniel Bünzli, OCaml List, Vincent B.

[-- Attachment #1: Type: text/plain, Size: 1768 bytes --]

I managed to fix it by uninstalling opam-git and installing opam; the bug
seems to be that while the opam-git package did update to 1.1 it never
triggered an update to my installation.

martin


On Wed, Aug 27, 2014 at 3:48 PM, Anil Madhavapeddy <anil@recoil.org> wrote:

> According to the OPAM distributions list [1], Arch should be on OPAM
> 1.1.1, which points to the maintained default repo.
>
> I'm afraid I've never used Arch to know where you might turn to for help,
> but if it's really installing OPAM 1.0 then I'd like to know so that we can
> prevent any more new installations of that version.
>
> [1] https://github.com/ocaml/opam/wiki/Distributions
>
> -anil
>
> On 27 Aug 2014, at 21:28, Martin DeMello <martindemello@gmail.com> wrote:
>
> > Thanks! I've had to start from scratch anyway since for some reason the
> arch linux package had me stuck on the 1.0 version with a link to the wrong
> default repo (I only realised this when I tried to install oasis 0.4 and
> couldn't) and I messed something up trying to fix it in place, so I don't
> mind deleting .opam once more.
> >
> > martin
> >
> >
> > On Wed, Aug 27, 2014 at 2:27 AM, Daniel Bünzli <
> daniel.buenzli@erratique.ch> wrote:
> > Le mercredi, 27 août 2014 à 08:59, Martin DeMello a écrit :
> > > sorry for the noise, looks like a bug with the package itself :(
> should've checked for that first
> > >
> > > https://github.com/OCamlPro/ocp-indent/issues/142
> > This should be fixed but your opam may be in a state where it's not easy
> to apply the fix. Follow these instructions:
> >
> >
> https://github.com/ocaml/opam-repository/commit/55042c39fcef4f8b1c4e5db7b1120180bab05921#commitcomment-7540530
> >
> > Daniel
> >
> >
> >
>
>

[-- Attachment #2: Type: text/html, Size: 2727 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Caml-list] is this an opam bug or something i'm doing wrong?
  2014-08-27 23:02           ` Martin DeMello
@ 2014-08-28  6:55             ` Vincent B.
  2014-08-28  7:04               ` Martin DeMello
  0 siblings, 1 reply; 12+ messages in thread
From: Vincent B. @ 2014-08-28  6:55 UTC (permalink / raw)
  To: Martin DeMello, Anil Madhavapeddy; +Cc: Daniel Bünzli, OCaml List

On 28/08/2014 01:02, Martin DeMello wrote:
> I managed to fix it by uninstalling opam-git and installing opam; the bug seems
> to be that while the opam-git package did update to 1.1 it never triggered an
> update to my installation.
> 
> martin 
> 

Hi Martin,

On Archlinux git packages are not upgraded on a package upgrade, there is no way
AFAIK for the package manager to guess if a git package has been upgraded or not.

So this is normal.

I recommand using only the "opam-git" package on Archlinux until a new OPAM
version is released.

Cheers,

Vincent

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Caml-list] is this an opam bug or something i'm doing wrong?
  2014-08-28  6:55             ` Vincent B.
@ 2014-08-28  7:04               ` Martin DeMello
  0 siblings, 0 replies; 12+ messages in thread
From: Martin DeMello @ 2014-08-28  7:04 UTC (permalink / raw)
  To: Vincent B.; +Cc: Anil Madhavapeddy, Daniel Bünzli, OCaml List

[-- Attachment #1: Type: text/plain, Size: 846 bytes --]

On Wed, Aug 27, 2014 at 11:55 PM, Vincent B. <vb@luminar.eu.org> wrote:

> On 28/08/2014 01:02, Martin DeMello wrote:
> > I managed to fix it by uninstalling opam-git and installing opam; the
> bug seems
> > to be that while the opam-git package did update to 1.1 it never
> triggered an
> > update to my installation.
> >
> > martin
> >
>
> Hi Martin,
>
> On Archlinux git packages are not upgraded on a package upgrade, there is
> no way
> AFAIK for the package manager to guess if a git package has been upgraded
> or not.
>
> So this is normal.
>
> I recommand using only the "opam-git" package on Archlinux until a new OPAM
> version is released.


True; I'm not sure what exactly went wrong in my case but opam-git never
updated anything, that is, it never recompiled the latest version even when
there were pushes to the git repo.

martin

[-- Attachment #2: Type: text/html, Size: 1257 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-08-28  7:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-27  7:18 [Caml-list] is this an opam bug or something i'm doing wrong? Martin DeMello
2014-08-27  7:45 ` Martin DeMello
2014-08-27  7:59   ` Martin DeMello
2014-08-27  9:27     ` Daniel Bünzli
2014-08-27 20:28       ` Martin DeMello
2014-08-27 22:48         ` Anil Madhavapeddy
2014-08-27 23:02           ` Martin DeMello
2014-08-28  6:55             ` Vincent B.
2014-08-28  7:04               ` Martin DeMello
2014-08-27 12:53   ` Ashish Agarwal
2014-08-27 20:26     ` Martin DeMello
2014-08-27 22:55       ` Ashish Agarwal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).