ocaml-cross / opam-cross-android

An OCaml cross-toolchain for Android and several useful libraries
105 stars 15 forks source link

OPAM 2 incompatibilities #44

Open yallop opened 4 years ago

yallop commented 4 years ago

Attempting to use this repository with recent OPAM (2.04) reveals a few problems. Here's a log, from the ctypes CI:

+opam remote add android git://github.com/whitequark/opam-cross-android
[android] Initialised
[WARNING] The repository 'android' at
          git://github.com/whitequark/opam-cross-android doesn't have a 'repo'
          file, and might not be compatible with this version of opam.
[WARNING] At /home/travis/.opam/repo/android/packages/csv-android.1.5/opam:2:0:
          This file is for version '1.5' but its 'version:' field advertises
          '1.3.4'.
[NOTE] Repository at git://github.com/whitequark/opam-cross-android doesn't
       define its version, assuming it's 1.2.
<><> Upgrading repositories from older opam format ><><><><><><><><><><><><><><>
Upgrading repository "android"...
[WARNING] At /home/travis/.opam/repo/android/packages/csv-android.1.5/opam:2:0:
          This file is for version '1.5' but its 'version:' field advertises
          '1.3.4'.
[ERROR] Unconvertible 'available:' disjunction in
        /home/travis/.opam/repo/android/packages/ocaml-android32.4.04.0/opam
[NOTE] Repository android has been added to the selections of switch
       4.04.0+32bit only.
       Run `opam repository add android --all-switches|--set-default' to use it
       in all existing switches, or in newly created switches, respectively.

The "Unconvertible 'available:' disjunction" is the only real problem here, but it'd be handy to have this repository upgraded for OPAM 2.

whitequark commented 4 years ago

IIRC that disjunction is actually pretty critical to the package, so someone would have to look into why it's not available yet. (But not me; I haven't worked with OCaml in years.)