[ocaml-platform] opam show problem

Louis Gesbert meta at antislash.info
Mon Nov 21 13:58:27 GMT 2016


Le 2016-11-21 14:55, Immanuel Litzroth a écrit :
> The problem with
> opam list -i <package>
> is that it doesn't seem to do versions.
> 
> $ opam list -i spreadgenerator
> # Installed packages for BUILDSYSTEM:
> spreadgenerator  6.0.0.1
> $ opam list -i spreadgenerator=6.0.0.1

using "spreadgenerator.6.0.0.1" instead should work!

query operations are known to be somewhat lacking in 1.2.2 and have been 
thoroughly improved for the upcoming 2.0 version.

> No packages found.
> 
> Which opam show has no problems with. I need to check if a version of
> a package is
> installed (version optionally passed with =x.x...).
> Immanuel
> 
> -------------------------
> 
> FROM: Louis Gesbert <meta at antislash.info>
> SENT: Monday, November 21, 2016 2:15:16 PM
> TO: Immanuel Litzroth
> CC: platform at lists.ocaml.org
> SUBJECT: Re: [ocaml-platform] opam show problem
> 
> This is indeed unclear, and has been already improved in the 2.0 alpha
> 
> builds: the output is now separated in two sections, showing that the
> details printed are specific to a given version (chosen from installed
> 
> or latest):
> 
>      $ opam show lwt
> 
>      =-=- lwt: information on all versions
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>      name                   lwt
>      all-installed-versions 2.4.8 [4.02.1 4.01.0+ocp1-20150202]  2.5.2
> 
> [system 4.02.3 4.04]
>                             2.6.0 [4.03.0]
>      all-versions           2.3.2  2.4.0  2.4.1  2.4.2  2.4.3  2.4.4
> 2.4.5  2.4.6  2.4.7  2.4.8
>                             2.5.0  2.5.1  2.5.2  2.6.0
> 
>      =-=- Version-specific details
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>      version       2.6.0
>      repository    default
>      url.src:      https://github.com/ocsigen/lwt/archive/2.6.0.tar.gz
> [1]
>      [etc]
> 
> `--where` only show where the metadata was found, it doesn't relate to
> 
> the contents of the package itself. `opam list` is the right tool if
> you
> want just to check whether the package is installed.
> 
> Best,
> Louis Gesbert -- OCamlPro
> 
> Le 2016-11-21 11:10, Immanuel Litzroth a écrit :
>> opam show documentation says:
>> "
>> 
>>    The information block consists of the name of the package, the
>>        installed version if this package is installed in the
> currently
>> 
>>        selected compiler,.."
>> 
>> I have a switch BUILDSYSTEM that does not contain lwt.
>> 1) it's not under ~/.opam/BUILDSYSTEM/lib
>> 2) linking with the package lwt in this switch does not work.
>> Still "opam show lwt" does give me a version as in it's output:
>>>>> 
>> 
>> opam show lwt
>>              package: lwt
>>              version: 2.6.0
>> ...
>>>>> 
>> ocaml show where lwt does show this:
>>>>> 
>> 
>> opam show --where lwt
>> /home/immanuel/.opam/repo/default/packages/lwt/lwt.2.6.0/opam
>>>>> 
>> I do have it installed in other switches.
>> 
>> Are my expectations wrong, or is this a bug?
>> Thanks in advance,
>> Immanuel
>> 
>> Western Digital Corporation (and its subsidiaries) E-mail
>> Confidentiality Notice & Disclaimer:
>> This e-mail and any files transmitted with it may contain
> confidential
>> or legally privileged information of WDC and/or its affiliates, and
>> are intended solely for the use of the individual or entity to which
>> they are addressed. If you are not the intended recipient, any
>> disclosure, copying, distribution or any action taken or omitted to
> be
>> taken in reliance on it, is prohibited. If you have received this
>> e-mail in error, please notify the sender immediately and delete the
>> e-mail in its entirety from your system.
>> _______________________________________________
>> Platform mailing list
>> Platform at lists.ocaml.org
>> http://lists.ocaml.org/listinfo/platform
> 
> Western Digital Corporation (and its subsidiaries) E-mail
> Confidentiality Notice & Disclaimer:
> This e-mail and any files transmitted with it may contain confidential
> or legally privileged information of WDC and/or its affiliates, and
> are intended solely for the use of the individual or entity to which
> they are addressed. If you are not the intended recipient, any
> disclosure, copying, distribution or any action taken or omitted to be
> taken in reliance on it, is prohibited. If you have received this
> e-mail in error, please notify the sender immediately and delete the
> e-mail in its entirety from your system.
> 
> Links:
> ------
> [1] https://github.com/ocsigen/lwt/archive/2.6.0.tar.gz


More information about the Platform mailing list