Skip to content

Commit ed7bb22

Browse files
authored
Merge pull request #6700 from kit-ty-kate/update-download-if-missing
Update all the download-if-missing dependencies to their latest version
2 parents ddf8ba6 + cfad950 commit ed7bb22

File tree

7 files changed

+77
-11
lines changed

7 files changed

+77
-11
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ src_ext/opam-file-format/
3434
src_ext/re/
3535
src_ext/result/
3636
src_ext/secondary/
37-
src_ext/seq/
3837
src_ext/sha/
3938
src_ext/spdx_licenses/
4039
src_ext/stdlib-shims/

master_changes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ users)
8383

8484
## Build
8585
* Update the dependency constraint on `patch` to now require its stable version [#6663 @kit-ty-kate]
86+
* Update the download-if-missing dependencies to their latest version (re.1.14.0, dune.3.20.2, menhir.20250903) [#6700 @kit-ty-kate]
87+
* Remove `seq` from the list of packages to download-if-missing as it is no longer a dependency of `re` [#6700 @kit-ty-kate]
8688

8789
## Infrastructure
8890

src_ext/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ifndef FETCH
2323
endif
2424

2525
SRC_EXTS = \
26-
cppo base64 extlib re cmdliner ocamlgraph cudf dose3 opam-file-format seq \
26+
cppo base64 extlib re cmdliner ocamlgraph cudf dose3 opam-file-format \
2727
stdlib-shims spdx_licenses opam-0install-cudf 0install-solver uutf \
2828
jsonm sha swhid_core menhir patch
2929

src_ext/Makefile.dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# NB If minimum OCaml version for Dune changes, update DUNE_SECONDARY in configure.ac
2-
URL_dune-local = https://github.com/ocaml/dune/releases/download/3.19.1/dune-3.19.1.tbz
3-
MD5_dune-local = a47d91dccb8c8135e406724b8cc6755d
2+
URL_dune-local = https://github.com/ocaml/dune/releases/download/3.20.2/dune-3.20.2.tbz
3+
MD5_dune-local = 190feeb68d211655b70ed226bd600102

src_ext/Makefile.sources

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ MD5_extlib = 43fb3bf2989671af1769147b1171d080
77
URL_base64 = https://github.com/mirage/ocaml-base64/releases/download/v3.5.1/base64-3.5.1.tbz
88
MD5_base64 = bfdd16aa8c136412878109df8791fc01
99

10-
URL_re = https://github.com/ocaml/ocaml-re/releases/download/1.11.0/re-1.11.0.tbz
11-
MD5_re = e0199e32947fd33fcc1b8e69de2308a1
10+
URL_re = https://github.com/ocaml/ocaml-re/archive/refs/tags/1.14.0.tar.gz
11+
MD5_re = 03f4a83100cb9229a796b85c698076e1
1212

1313
URL_cmdliner = https://erratique.ch/software/cmdliner/releases/cmdliner-1.3.0.tbz
1414
MD5_cmdliner = 662936095a1613d7254815238e11793f
@@ -36,9 +36,6 @@ MD5_opam-file-format = 5b65ea84fa2e60e89c2c9f2ca3203e31
3636

3737
include Makefile.dune
3838

39-
URL_seq = https://github.com/c-cube/seq/archive/v0.3.1.tar.gz
40-
MD5_seq = de05d9dedd492fa4e3c0c87bc2792475
41-
4239
URL_stdlib-shims = https://github.com/ocaml/stdlib-shims/releases/download/0.3.0/stdlib-shims-0.3.0.tbz
4340
MD5_stdlib-shims = 09db7af8b4a3a96048a61cb6ae2496ef
4441

@@ -57,8 +54,8 @@ MD5_sha = 08bc953d9a26380bc220b05d680791fb
5754
URL_swhid_core = https://github.com/OCamlPro/swhid_core/archive/refs/tags/0.1.tar.gz
5855
MD5_swhid_core = 77d88d4b1d96261c866f140c64d89af8
5956

60-
URL_menhir = https://gitlab.inria.fr/fpottier/menhir/-/archive/20240715/archive.tar.gz
61-
MD5_menhir = d39a8943fe1be28199e5ec1f4133504c
57+
URL_menhir = https://gitlab.inria.fr/fpottier/menhir/-/archive/20250903/archive.tar.gz
58+
MD5_menhir = 5ecb7f71cf374147d3d3137c6e2fe382
6259

6360
URL_patch = https://github.com/hannesm/patch/releases/download/v3.0.0/patch-3.0.0.tar.gz
6461
MD5_patch = 75aca1ed79a9807e4d4fc6c85aa31b0f
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
diff -Naur a/lib/emacs.ml b/lib/emacs.ml
2+
--- a/lib/emacs.ml 2025-09-18 10:22:10.000000000 +0000
3+
+++ b/lib/emacs.ml 2025-09-18 19:49:12.035021466 +0000
4+
@@ -21,6 +21,7 @@
5+
*)
6+
7+
module Re = Core
8+
+open Import
9+
10+
exception Parse_error
11+
exception Not_supported
12+
diff -Naur a/lib/import.ml b/lib/import.ml
13+
--- a/lib/import.ml 2025-09-18 10:22:10.000000000 +0000
14+
+++ b/lib/import.ml 2025-09-18 19:49:12.035091716 +0000
15+
@@ -13,12 +13,13 @@
16+
let ( == ) = [ `Use_phys_equal ]
17+
let ( < ) (x : int) (y : int) = x < y
18+
let ( > ) (x : int) (y : int) = x > y
19+
-let min = Int.min
20+
-let max = Int.max
21+
+let min (x : int) (y : int) = Stdlib.min x y
22+
+let max (x : int) (y : int) = Stdlib.max x y
23+
let compare = Int.compare
24+
25+
module Int = struct
26+
let[@warning "-32"] hash (x : int) = Hashtbl.hash x
27+
+ let[@warning "-32"] max = (max : int -> int -> int)
28+
29+
include Stdlib.Int
30+
end
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
diff -Naur a/lib/fake/atomic.ml b/lib/fake/atomic.ml
2+
--- a/lib/fake/atomic.ml 1970-01-01 00:00:00.000000000 +0000
3+
+++ b/lib/fake/atomic.ml 2025-09-18 19:49:12.046023121 +0000
4+
@@ -0,0 +1,10 @@
5+
+type 'a t = 'a ref
6+
+
7+
+let make x = ref x
8+
+let get x = !x
9+
+let set atomic v = atomic := v
10+
+
11+
+let fetch_and_add atomic n =
12+
+ let v = !atomic in
13+
+ atomic := v + n;
14+
+ v
15+
diff -Naur a/lib/import.ml b/lib/import.ml
16+
--- a/lib/import.ml 2025-09-18 19:49:12.035091716 +0000
17+
+++ b/lib/import.ml 2025-09-18 19:49:12.046114163 +0000
18+
@@ -1,4 +1,19 @@
19+
-module List = Stdlib.ListLabels
20+
+module List = struct
21+
+ let[@warning "-32"] rec equal ~eq l1 l2 = match l1, l2 with
22+
+ | [], [] -> true
23+
+ | [], _::_ | _::_, [] -> false
24+
+ | x::xs, y::ys -> if eq x y then equal ~eq xs ys else false
25+
+
26+
+ let[@warning "-32"] rec compare ~cmp l1 l2 = match l1, l2 with
27+
+ | [], [] -> 0
28+
+ | [], _::_ -> -1
29+
+ | _::_, [] -> 1
30+
+ | x::xs, y::ys ->
31+
+ let r = cmp x y in
32+
+ if r = 0 then compare ~cmp xs ys else r
33+
+
34+
+ include Stdlib.ListLabels
35+
+end
36+
37+
module Poly = struct
38+
let equal = ( = )

0 commit comments

Comments
 (0)