[opam-devel] the available field in 1.1.1
Louis Gesbert
gesbert at antislash.info
Mon Sep 1 10:00:39 BST 2014
Don't ask me why, but you can get it working with
available: [ ("%{preinstalled}%" = "false") & (ocaml-version = "4.02.0") ]
glad I rewrote the parser since then :)
Le dimanche 31 août 2014, 15:11:49 Anil Madhavapeddy a écrit :
> On 31 Aug 2014, at 15:03, Anil Madhavapeddy <anil at recoil.org> wrote:
>
> > On 31 Aug 2014, at 13:35, Thomas Gazagnaire <thomas at gazagnaire.org> wrote:
> >
> >>>> +available: [ !preinstalled & ocaml-version = "4.02.0" ]
> >>>>
> >>>> This works fine OPAM 1.2, but OPAM 1.1.1 complains with a parse error. Is there
> >>>> anything that'll work for both?
> >>>
> >>> The parser in 1.1.1 was a bit dumb, you need to add parenthesis:
> >>>
> >>> available: [ !preinstalled & (ocaml-version = "4.02.0")
> >>> ]
> >>
> >> Actually, 1.1.1 parser is very broken ... You should use:
> >> [ (preinstalled = false) & (ocaml-version = "4.02.0") ]
> >
> > Thanks, this is now pushed and building in the pull request (along with a help message to point people at camlp4 binaries).
>
> Can't get this to work, see below for two attempts:
>
> +available: [ (preinstalled = "false") & (ocaml-version = "4.02.0") ]
> To Build:
> atdgen
> camlp4
> build one: atdgen
> default Synchronizing with /home/travis/build/ocaml/opam-repository
> Updating ~/.opam/repo/compiler-index ...
> Updating ~/.opam/compilers/ ...
> Updating ~/.opam/repo/package-index ...
> Updating ~/.opam/packages/ ...
> Creating a cache of metadata in ~/.opam/state.cache ...
> [ERROR] 'preinstalled' has type bool, but a env element of type string was expected.
>
> +available: [ (preinstalled = false) & (ocaml-version = "4.02.0") ]
> To Build:
> atdgen
> camlp4
> build one: atdgen
> default Synchronizing with /home/travis/build/ocaml/opam-repository
> Updating ~/.opam/repo/compiler-index ...
> Updating ~/.opam/compilers/ ...
> Updating ~/.opam/repo/package-index ...
> Updating ~/.opam/packages/ ...
> Creating a cache of metadata in ~/.opam/state.cache ...
> [ERROR] 'false' has type bool, but a env element of type string was expected.
>
> (from the relevant Travis builds...)
>
> -anil
> _______________________________________________
> opam-devel mailing list
> opam-devel at lists.ocaml.org
> http://lists.ocaml.org/listinfo/opam-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/opam-devel/attachments/20140901/5d1b5eaa/attachment-0001.html>
More information about the opam-devel
mailing list