Skip to content

Commit 2be2a61

Browse files
authored
Add Debian 13 (Trixie) (#237)
1 parent c097f9d commit 2be2a61

File tree

3 files changed

+43
-7
lines changed

3 files changed

+43
-7
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- Add Debian 13 (Trixie). (@MisterDA, #237)
12

23
v8.2.9 2025-07-24
34
-----------------

src-opam/distro.ml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ type distro =
4444
| `V3_22 ]
4545
| `Archlinux of [ `Latest ]
4646
| `CentOS of [ `V6 | `V7 | `V8 ]
47-
| `Debian of [ `V12 | `V11 | `V10 | `V9 | `V8 | `V7 | `Testing | `Unstable ]
47+
| `Debian of
48+
[ `V13 | `V12 | `V11 | `V10 | `V9 | `V8 | `V7 | `Testing | `Unstable ]
4849
| `Fedora of
4950
[ `V21
5051
| `V22
@@ -136,7 +137,16 @@ type t =
136137
| `Archlinux of [ `Latest ]
137138
| `CentOS of [ `V6 | `V7 | `V8 | `Latest ]
138139
| `Debian of
139-
[ `V12 | `V11 | `V10 | `V9 | `V8 | `V7 | `Stable | `Testing | `Unstable ]
140+
[ `V13
141+
| `V12
142+
| `V11
143+
| `V10
144+
| `V9
145+
| `V8
146+
| `V7
147+
| `Stable
148+
| `Testing
149+
| `Unstable ]
140150
| `Fedora of
141151
[ `V21
142152
| `V22
@@ -268,6 +278,7 @@ let distros : t list =
268278
`CentOS `V7;
269279
`CentOS `V8;
270280
`CentOS `Latest;
281+
`Debian `V13;
271282
`Debian `V12;
272283
`Debian `V11;
273284
`Debian `V10;
@@ -357,7 +368,7 @@ let resolve_alias (d : t) : distro =
357368
match d with
358369
| `Alpine `Latest -> `Alpine `V3_22
359370
| `CentOS `Latest -> `CentOS `V7
360-
| `Debian `Stable -> `Debian `V12
371+
| `Debian `Stable -> `Debian `V13
361372
| `Fedora `Latest -> `Fedora `V42
362373
| `OracleLinux `Latest -> `OracleLinux `V9
363374
| `OpenSUSE `Latest -> `OpenSUSE `V15_6
@@ -372,7 +383,8 @@ let resolve_alias (d : t) : distro =
372383
| `V3_19 | `V3_20 | `V3_21 | `V3_22 )
373384
| `Archlinux `Latest
374385
| `CentOS (`V6 | `V7 | `V8)
375-
| `Debian (`V7 | `V8 | `V9 | `V10 | `V11 | `V12 | `Testing | `Unstable)
386+
| `Debian
387+
(`V7 | `V8 | `V9 | `V10 | `V11 | `V12 | `V13 | `Testing | `Unstable)
376388
| `Fedora
377389
( `V21 | `V22 | `V23 | `V24 | `V25 | `V26 | `V27 | `V28 | `V29 | `V30
378390
| `V31 | `V32 | `V33 | `V34 | `V35 | `V36 | `V37 | `V38 | `V39 | `V40
@@ -407,7 +419,8 @@ let distro_status (d : t) : status =
407419
| `CentOS (`V6 | `V8) -> `Deprecated
408420
| `Debian (`V7 | `V8 | `V9 | `V10) -> `Deprecated
409421
| `Debian `V11 -> `Active `Tier2
410-
| `Debian `V12 -> `Active `Tier1
422+
| `Debian `V12 -> `Active `Tier2
423+
| `Debian `V13 -> `Active `Tier1
411424
| `Debian `Testing -> `Active `Tier3
412425
| `Debian `Unstable -> `Active `Tier3
413426
| `Fedora
@@ -461,6 +474,12 @@ module OV = Ocaml_version
461474
let distro_arches ov (d : t) =
462475
match (resolve_alias d, ov) with
463476
| (`CentOS (`V6 | `V7) | `OracleLinux `V7), ov when OV.major ov >= 5 -> []
477+
| `Debian `V13, ov when OV.(compare Releases.v4_11_0 ov) = -1 ->
478+
[ `I386; `X86_64; `Aarch64; `Aarch32; `Ppc64le; `S390x; `Riscv64 ]
479+
| `Debian `V13, ov when OV.(compare Releases.v4_03_0 ov) = -1 ->
480+
[ `I386; `X86_64; `Aarch64; `Aarch32; `Ppc64le; `S390x ]
481+
| `Debian `V13, ov when OV.(compare Releases.v4_02_0 ov) = -1 ->
482+
[ `I386; `X86_64; `Aarch64; `Aarch32 ]
464483
| `Debian `V12, ov when OV.(compare Releases.v4_03_0 ov) = -1 ->
465484
[ `I386; `X86_64; `Aarch64; `Aarch32; `Ppc64le; `S390x ]
466485
| `Debian `V12, ov when OV.(compare Releases.v4_02_0 ov) = -1 ->
@@ -552,6 +571,7 @@ let builtin_ocaml_of_distro (d : t) : string option =
552571
| `Debian `V10 -> Some "4.05.0"
553572
| `Debian `V11 -> Some "4.11.1"
554573
| `Debian `V12 -> Some "4.13.1"
574+
| `Debian `V13 -> Some "5.3.0"
555575
| `Ubuntu `V12_04 -> Some "3.12.1"
556576
| `Ubuntu `V14_04 -> Some "4.01.0"
557577
| `Ubuntu `V15_04 -> Some "4.01.0"
@@ -671,6 +691,7 @@ let tag_of_distro (d : t) =
671691
| `Debian `Stable -> "debian-stable"
672692
| `Debian `Unstable -> "debian-unstable"
673693
| `Debian `Testing -> "debian-testing"
694+
| `Debian `V13 -> "debian-13"
674695
| `Debian `V12 -> "debian-12"
675696
| `Debian `V11 -> "debian-11"
676697
| `Debian `V10 -> "debian-10"
@@ -785,6 +806,7 @@ let distro_of_tag x : t option =
785806
| "debian-stable" -> Some (`Debian `Stable)
786807
| "debian-unstable" -> Some (`Debian `Unstable)
787808
| "debian-testing" -> Some (`Debian `Testing)
809+
| "debian-13" -> Some (`Debian `V13)
788810
| "debian-12" -> Some (`Debian `V12)
789811
| "debian-11" -> Some (`Debian `V11)
790812
| "debian-10" -> Some (`Debian `V10)
@@ -898,6 +920,7 @@ let human_readable_string_of_distro (d : t) =
898920
| `Ubuntu `V25_04 -> "Ubuntu 25.04"
899921
| `Debian `Unstable -> "Debian Unstable"
900922
| `Debian `Testing -> "Debian Testing"
923+
| `Debian `V13 -> "Debian 13 (Trixie)"
901924
| `Debian `V12 -> "Debian 12 (Bookworm)"
902925
| `Debian `V11 -> "Debian 11 (Bullseye)"
903926
| `Debian `V10 -> "Debian 10 (Buster)"
@@ -1058,6 +1081,7 @@ let bubblewrap_version (t : t) =
10581081
| `Debian `V10 -> Some (0, 3, 1)
10591082
| `Debian `V11 -> Some (0, 4, 1)
10601083
| `Debian `V12 -> Some (0, 8, 0)
1084+
| `Debian `V13 -> Some (0, 11, 0)
10611085
| `Debian `Testing -> Some (0, 8, 0)
10621086
| `Debian `Unstable -> Some (0, 8, 0)
10631087
| `CentOS `V6 -> None
@@ -1161,6 +1185,7 @@ let base_distro_tag ?(arch = `X86_64) d =
11611185
| `V10 -> "10"
11621186
| `V11 -> "11"
11631187
| `V12 -> "12"
1188+
| `V13 -> "13"
11641189
| `Testing -> "testing"
11651190
| `Unstable -> "unstable"
11661191
in

src-opam/distro.mli

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ type distro =
4545
| `V3_22 ]
4646
| `Archlinux of [ `Latest ]
4747
| `CentOS of [ `V6 | `V7 | `V8 ]
48-
| `Debian of [ `V12 | `V11 | `V10 | `V9 | `V8 | `V7 | `Testing | `Unstable ]
48+
| `Debian of
49+
[ `V13 | `V12 | `V11 | `V10 | `V9 | `V8 | `V7 | `Testing | `Unstable ]
4950
| `Fedora of
5051
[ `V21
5152
| `V22
@@ -137,7 +138,16 @@ type t =
137138
| `Archlinux of [ `Latest ]
138139
| `CentOS of [ `V6 | `V7 | `V8 | `Latest ]
139140
| `Debian of
140-
[ `V12 | `V11 | `V10 | `V9 | `V8 | `V7 | `Stable | `Testing | `Unstable ]
141+
[ `V13
142+
| `V12
143+
| `V11
144+
| `V10
145+
| `V9
146+
| `V8
147+
| `V7
148+
| `Stable
149+
| `Testing
150+
| `Unstable ]
141151
| `Fedora of
142152
[ `V21
143153
| `V22

0 commit comments

Comments
 (0)