Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
unreleased
----------

- Add OpenSUSE 15.4, deprecate OpenSUSE 15.3. (@MisterDA #138)
- Update to bubblewrap 0.7.0. (@MisterDA #131)
- Add Alpine 3.17 (3.16 is now tier 2 and 3.15 is deprecated). Remove
libexecinfo-dev from the list of apk packages as it is no longer
Expand Down
40 changes: 29 additions & 11 deletions src-opam/distro.ml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ type distro =
| `V36
| `V37 ]
| `OracleLinux of [ `V7 | `V8 ]
| `OpenSUSE of [ `V42_1 | `V42_2 | `V42_3 | `V15_0 | `V15_1 | `V15_2 | `V15_3 ]
| `OpenSUSE of
[ `V42_1 | `V42_2 | `V42_3 | `V15_0 | `V15_1 | `V15_2 | `V15_3 | `V15_4 ]
| `Ubuntu of
[ `V12_04
| `V14_04
Expand Down Expand Up @@ -316,7 +317,15 @@ type t =
| `Latest ]
| `OracleLinux of [ `V7 | `V8 | `Latest ]
| `OpenSUSE of
[ `V42_1 | `V42_2 | `V42_3 | `V15_0 | `V15_1 | `V15_2 | `V15_3 | `Latest ]
[ `V42_1
| `V42_2
| `V42_3
| `V15_0
| `V15_1
| `V15_2
| `V15_3
| `V15_4
| `Latest ]
| `Ubuntu of
[ `V12_04
| `V14_04
Expand Down Expand Up @@ -432,6 +441,7 @@ let distros : t list =
`OpenSUSE `V15_1;
`OpenSUSE `V15_2;
`OpenSUSE `V15_3;
`OpenSUSE `V15_4;
`OpenSUSE `Latest;
`Ubuntu `V12_04;
`Ubuntu `V14_04;
Expand Down Expand Up @@ -535,7 +545,7 @@ let resolve_alias (d : t) : distro =
| `Debian `Stable -> `Debian `V11
| `Fedora `Latest -> `Fedora `V37
| `OracleLinux `Latest -> `OracleLinux `V8
| `OpenSUSE `Latest -> `OpenSUSE `V15_3
| `OpenSUSE `Latest -> `OpenSUSE `V15_4
| `Ubuntu `Latest -> `Ubuntu `V22_10
| `Ubuntu `LTS -> `Ubuntu `V22_04
| `Cygwin (#win10_ltsc as v) -> `Cygwin (resolve_ltsc v)
Expand All @@ -550,7 +560,8 @@ let resolve_alias (d : t) : distro =
( `V21 | `V22 | `V23 | `V24 | `V25 | `V26 | `V27 | `V28 | `V29 | `V30
| `V31 | `V32 | `V33 | `V34 | `V35 | `V36 | `V37 )
| `OracleLinux (`V7 | `V8)
| `OpenSUSE (`V42_1 | `V42_2 | `V42_3 | `V15_0 | `V15_1 | `V15_2 | `V15_3)
| `OpenSUSE
(`V42_1 | `V42_2 | `V42_3 | `V15_0 | `V15_1 | `V15_2 | `V15_3 | `V15_4)
| `Ubuntu
( `V12_04 | `V14_04 | `V15_04 | `V15_10 | `V16_04 | `V16_10 | `V17_04
| `V17_10 | `V18_04 | `V18_10 | `V19_04 | `V19_10 | `V20_04 | `V20_10
Expand Down Expand Up @@ -589,9 +600,10 @@ let distro_status (d : t) : status =
`Deprecated
| `Fedora (`V36 | `V37) -> `Active `Tier2
| `OracleLinux (`V7 | `V8) -> `Active `Tier3
| `OpenSUSE (`V42_1 | `V42_2 | `V42_3 | `V15_0 | `V15_1 | `V15_2) ->
| `OpenSUSE (`V42_1 | `V42_2 | `V42_3 | `V15_0 | `V15_1 | `V15_2 | `V15_3)
->
`Deprecated
| `OpenSUSE `V15_3 -> `Active `Tier2
| `OpenSUSE `V15_4 -> `Active `Tier2
| `Ubuntu `V18_04 -> `Active `Tier3
| `Ubuntu (`V20_04 | `V22_04 | `V22_10) -> `Active `Tier2
| `Ubuntu
Expand Down Expand Up @@ -758,6 +770,7 @@ let builtin_ocaml_of_distro (d : t) : string option =
| `OpenSUSE `V15_1 -> Some "4.05.0"
| `OpenSUSE `V15_2 -> Some "4.05.0"
| `OpenSUSE `V15_3 -> Some "4.05.0"
| `OpenSUSE `V15_4 -> Some "4.05.0"
| `OracleLinux `V7 -> Some "4.01.0"
| `OracleLinux `V8 -> Some "4.07.0"
| `Cygwin _ -> None
Expand Down Expand Up @@ -913,6 +926,7 @@ let tag_of_distro (d : t) =
| `OpenSUSE `V15_1 -> "opensuse-15.1"
| `OpenSUSE `V15_2 -> "opensuse-15.2"
| `OpenSUSE `V15_3 -> "opensuse-15.3"
| `OpenSUSE `V15_4 -> "opensuse-15.4"
| `OpenSUSE `Latest -> "opensuse"
| `Cygwin v -> "cygwin-" ^ win10_release_to_string v
| `Windows (`Mingw, v) -> "windows-mingw-" ^ win10_release_to_string v
Expand Down Expand Up @@ -1002,6 +1016,7 @@ let distro_of_tag x : t option =
| "opensuse-15.1" -> Some (`OpenSUSE `V15_1)
| "opensuse-15.2" -> Some (`OpenSUSE `V15_2)
| "opensuse-15.3" -> Some (`OpenSUSE `V15_3)
| "opensuse-15.4" -> Some (`OpenSUSE `V15_4)
| "opensuse" -> Some (`OpenSUSE `Latest)
| s when String.is_prefix ~affix:"cygwin-" s ->
win10_of_tag "cygwin-" s (fun v -> `Cygwin v)
Expand Down Expand Up @@ -1085,6 +1100,7 @@ let human_readable_string_of_distro (d : t) =
| `OpenSUSE `V15_1 -> "OpenSUSE 15.1 (Leap)"
| `OpenSUSE `V15_2 -> "OpenSUSE 15.2 (Leap)"
| `OpenSUSE `V15_3 -> "OpenSUSE 15.3 (Leap)"
| `OpenSUSE `V15_4 -> "OpenSUSE 15.4 (Leap)"
| `Cygwin v -> "Cygwin " ^ win10_release_to_string v
| `Windows (`Mingw, v) -> "Windows mingw " ^ win10_release_to_string v
| `Windows (`Msvc, v) -> "Windows mingw " ^ win10_release_to_string v
Expand Down Expand Up @@ -1162,11 +1178,11 @@ let rec bubblewrap_version (t : t) =
| `Ubuntu `V22_10 -> Some (0, 6, 2)
| `Debian `V7 -> None (* Not actually checked *)
| `Debian `V8 -> None (* Not actually checked *)
| `Debian `V9 -> Some (0, 3, 1)
| `Debian `V9 -> Some (0, 1, 7)
| `Debian `V10 -> Some (0, 3, 1)
| `Debian `V11 -> Some (0, 4, 1)
| `Debian `Testing -> Some (0, 5, 0)
| `Debian `Unstable -> Some (0, 5, 0)
| `Debian `Testing -> Some (0, 7, 0)
| `Debian `Unstable -> Some (0, 7, 0)
| `CentOS `V6 -> None
| `CentOS `V7 -> None
| `CentOS `V8 -> Some (0, 4, 0)
Expand Down Expand Up @@ -1202,15 +1218,16 @@ let rec bubblewrap_version (t : t) =
| `Alpine `V3_14 -> Some (0, 4, 1)
| `Alpine `V3_15 -> Some (0, 5, 0)
| `Alpine `V3_16 -> Some (0, 6, 2)
| `Alpine `V3_17 -> Some (0, 6, 2)
| `Archlinux `Latest -> Some (0, 5, 0)
| `Alpine `V3_17 -> Some (0, 7, 0)
| `Archlinux `Latest -> Some (0, 7, 0)
| `OpenSUSE `V42_1 -> None (* Not actually checked *)
| `OpenSUSE `V42_2 -> None (* Not actually checked *)
| `OpenSUSE `V42_3 -> None (* Not actually checked *)
| `OpenSUSE `V15_0 -> Some (0, 2, 0)
| `OpenSUSE `V15_1 -> Some (0, 3, 3)
| `OpenSUSE `V15_2 -> Some (0, 4, 1)
| `OpenSUSE `V15_3 -> Some (0, 4, 1)
| `OpenSUSE `V15_4 -> Some (0, 4, 1)
| `Cygwin _ -> None
| `Windows _ -> None

Expand Down Expand Up @@ -1325,6 +1342,7 @@ let base_distro_tag ?win10_revision ?(arch = `X86_64) d =
| `V15_1 -> "15.1"
| `V15_2 -> "15.2"
| `V15_3 -> "15.3"
| `V15_4 -> "15.4"
in
("opensuse/leap", tag)
| `Cygwin v ->
Expand Down
13 changes: 11 additions & 2 deletions src-opam/distro.mli
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ type distro =
| `V36
| `V37 ]
| `OracleLinux of [ `V7 | `V8 ]
| `OpenSUSE of [ `V42_1 | `V42_2 | `V42_3 | `V15_0 | `V15_1 | `V15_2 | `V15_3 ]
| `OpenSUSE of
[ `V42_1 | `V42_2 | `V42_3 | `V15_0 | `V15_1 | `V15_2 | `V15_3 | `V15_4 ]
| `Ubuntu of
[ `V12_04
| `V14_04
Expand Down Expand Up @@ -187,7 +188,15 @@ type t =
| `Latest ]
| `OracleLinux of [ `V7 | `V8 | `Latest ]
| `OpenSUSE of
[ `V42_1 | `V42_2 | `V42_3 | `V15_0 | `V15_1 | `V15_2 | `V15_3 | `Latest ]
[ `V42_1
| `V42_2
| `V42_3
| `V15_0
| `V15_1
| `V15_2
| `V15_3
| `V15_4
| `Latest ]
| `Ubuntu of
[ `V12_04
| `V14_04
Expand Down