caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Opam problem: cannot upgrade yojson
@ 2013-07-22  8:53 Alan Schmitt
  2013-07-22 10:59 ` Jonathan Protzenko
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Schmitt @ 2013-07-22  8:53 UTC (permalink / raw)
  To: OCaml List

Hello,

I cannot seem to upgrade yojson using opam, because I'm stuck with a
version I cannot remove:

,----
| $ opam info yojson
|              package: yojson
|              version: 1.1.3
|              depends: ocamlfind & cppo & easy-format & biniou <= 1.0.3
|    installed-version: yojson.1.1.3 [4.00.1]
|   available-versions: 1.0.3, 1.1.6
|          description: Yojson is an optimized parsing and printing library for the JSON format 
| 
| It addresses a few shortcomings of json-wheel including 2x speedup,
| polymorphic variants and optional syntax for tuples and variants.
| 
| ydump is a pretty-printing command-line program provided with the
| yojson package.
| 
| The program atdgen can be used to derive OCaml-JSON serializers and
| deserializers from type definitions.
| 
| $ opam remove yojson
| 
| $ opam info yojson
|              package: yojson
|              version: 1.1.3
|              depends: ocamlfind & cppo & easy-format & biniou <= 1.0.3
|    installed-version: yojson.1.1.3 [4.00.1]
| ...
| 
| $ opam upgrade
| The following actions will be performed:
|  - install yojson.1.1.6
| 1 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
| 
| =-=-= Installing yojson.1.1.6 =-=-=
| The archive for yojson.1.1.6 is in the local cache.
| Extracting /Users/schmitta/.opam/archives/yojson.1.1.6+opam.tar.gz.
| Building yojson.1.1.6:
|   make
|   make install
| The compilation of yojson.1.1.6 failed.
| Uninstalling yojson.1.1.6:
|   ocamlfind remove yojson
| 
| 
| ==== ERROR [while installing yojson.1.1.6] ====
| # opam-version    1.0.0
| # os              darwin
| # command         make install
| # path            /Users/schmitta/.opam/4.00.1/build/yojson.1.1.6
| # exit-code       2
| # env-file        /Users/schmitta/.opam/4.00.1/build/yojson.1.1.6/yojson-ffb3fd.env
| # stdout-file     /Users/schmitta/.opam/4.00.1/build/yojson.1.1.6/yojson-ffb3fd.out
| # stderr-file     /Users/schmitta/.opam/4.00.1/build/yojson.1.1.6/yojson-ffb3fd.err
| ### stdout ###
| test ! -f ydump || cp ydump /Users/schmitta/.opam/4.00.1/bin/
| test ! -f ydump.exe || cp ydump.exe /Users/schmitta/.opam/4.00.1/bin/
| ocamlfind install yojson META \
|           $(ls yojson.mli yojson_biniou.mli yojson.cmi yojson_biniou.cmi yojson.cmo yojson_biniou.cmo yojson.cmx yojson_biniou.cmx yojson.o yojson_biniou.o)
| ### stderr ###
| ocamlfind: Package yojson is already installed
|  - (file /Users/schmitta/.opam/4.00.1/lib/yojson/META already exists)
| make: *** [install] Error 2
| 
| 'opam upgrade' failed.
`----

Am I doing something wrong here, or is this a bug?

Thanks,

Alan

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

* Re: [Caml-list] Opam problem: cannot upgrade yojson
  2013-07-22  8:53 [Caml-list] Opam problem: cannot upgrade yojson Alan Schmitt
@ 2013-07-22 10:59 ` Jonathan Protzenko
  2013-07-22 12:16   ` Alan Schmitt
  2013-07-22 13:16   ` Anil Madhavapeddy
  0 siblings, 2 replies; 4+ messages in thread
From: Jonathan Protzenko @ 2013-07-22 10:59 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: OCaml List

I've had the same error on two different computers, removing yojson 
from ~/.opam/<your-version>/installed.roots and manually doing 
ocamlfind remove yojson fixed it.

I may have filed a bug about that.

jonathan

On Mon 22 Jul 2013 04:53:31 PM SGT, Alan Schmitt wrote:
> Hello,
>
> I cannot seem to upgrade yojson using opam, because I'm stuck with a
> version I cannot remove:
>
> ,----
> | $ opam info yojson
> |              package: yojson
> |              version: 1.1.3
> |              depends: ocamlfind & cppo & easy-format & biniou <= 1.0.3
> |    installed-version: yojson.1.1.3 [4.00.1]
> |   available-versions: 1.0.3, 1.1.6
> |          description: Yojson is an optimized parsing and printing library for the JSON format
> |
> | It addresses a few shortcomings of json-wheel including 2x speedup,
> | polymorphic variants and optional syntax for tuples and variants.
> |
> | ydump is a pretty-printing command-line program provided with the
> | yojson package.
> |
> | The program atdgen can be used to derive OCaml-JSON serializers and
> | deserializers from type definitions.
> |
> | $ opam remove yojson
> |
> | $ opam info yojson
> |              package: yojson
> |              version: 1.1.3
> |              depends: ocamlfind & cppo & easy-format & biniou <= 1.0.3
> |    installed-version: yojson.1.1.3 [4.00.1]
> | ...
> |
> | $ opam upgrade
> | The following actions will be performed:
> |  - install yojson.1.1.6
> | 1 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
> |
> | =-=-= Installing yojson.1.1.6 =-=-=
> | The archive for yojson.1.1.6 is in the local cache.
> | Extracting /Users/schmitta/.opam/archives/yojson.1.1.6+opam.tar.gz.
> | Building yojson.1.1.6:
> |   make
> |   make install
> | The compilation of yojson.1.1.6 failed.
> | Uninstalling yojson.1.1.6:
> |   ocamlfind remove yojson
> |
> |
> | ==== ERROR [while installing yojson.1.1.6] ====
> | # opam-version    1.0.0
> | # os              darwin
> | # command         make install
> | # path            /Users/schmitta/.opam/4.00.1/build/yojson.1.1.6
> | # exit-code       2
> | # env-file        /Users/schmitta/.opam/4.00.1/build/yojson.1.1.6/yojson-ffb3fd.env
> | # stdout-file     /Users/schmitta/.opam/4.00.1/build/yojson.1.1.6/yojson-ffb3fd.out
> | # stderr-file     /Users/schmitta/.opam/4.00.1/build/yojson.1.1.6/yojson-ffb3fd.err
> | ### stdout ###
> | test ! -f ydump || cp ydump /Users/schmitta/.opam/4.00.1/bin/
> | test ! -f ydump.exe || cp ydump.exe /Users/schmitta/.opam/4.00.1/bin/
> | ocamlfind install yojson META \
> |           $(ls yojson.mli yojson_biniou.mli yojson.cmi yojson_biniou.cmi yojson.cmo yojson_biniou.cmo yojson.cmx yojson_biniou.cmx yojson.o yojson_biniou.o)
> | ### stderr ###
> | ocamlfind: Package yojson is already installed
> |  - (file /Users/schmitta/.opam/4.00.1/lib/yojson/META already exists)
> | make: *** [install] Error 2
> |
> | 'opam upgrade' failed.
> `----
>
> Am I doing something wrong here, or is this a bug?
>
> Thanks,
>
> Alan
>

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

* Re: [Caml-list] Opam problem: cannot upgrade yojson
  2013-07-22 10:59 ` Jonathan Protzenko
@ 2013-07-22 12:16   ` Alan Schmitt
  2013-07-22 13:16   ` Anil Madhavapeddy
  1 sibling, 0 replies; 4+ messages in thread
From: Alan Schmitt @ 2013-07-22 12:16 UTC (permalink / raw)
  To: Jonathan Protzenko; +Cc: OCaml List

jonathan.protzenko@gmail.com writes:

> I've had the same error on two different computers, removing yojson 
> from ~/.opam/<your-version>/installed.roots and manually doing 
> ocamlfind remove yojson fixed it.

Thanks, I had to remove it from "installed" as well, and I was able to
install the more recent version.

Alan

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

* Re: [Caml-list] Opam problem: cannot upgrade yojson
  2013-07-22 10:59 ` Jonathan Protzenko
  2013-07-22 12:16   ` Alan Schmitt
@ 2013-07-22 13:16   ` Anil Madhavapeddy
  1 sibling, 0 replies; 4+ messages in thread
From: Anil Madhavapeddy @ 2013-07-22 13:16 UTC (permalink / raw)
  To: Jonathan Protzenko; +Cc: Alan Schmitt, OCaml List

On 22 Jul 2013, at 11:59, Jonathan Protzenko <jonathan.protzenko@gmail.com> wrote:

> I've had the same error on two different computers, removing yojson 
> from ~/.opam/<your-version>/installed.roots and manually doing 
> ocamlfind remove yojson fixed it.
> 
> I may have filed a bug about that.

Yep, you did:
https://github.com/OCamlPro/opam-repository/issues/788

For the record, this should be fixed in OPAM 1.1 when it's out soon soon. There
are a number of nits in the various use-cases (pinning, upgrades, compiler
updates) that have been shaken out after the first release.

(And please do keep recording bug reports like this in the tracker.  It really
helps us figure out how people are using OPAM).

-anil


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

end of thread, other threads:[~2013-07-22 13:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-22  8:53 [Caml-list] Opam problem: cannot upgrade yojson Alan Schmitt
2013-07-22 10:59 ` Jonathan Protzenko
2013-07-22 12:16   ` Alan Schmitt
2013-07-22 13:16   ` Anil Madhavapeddy

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).