Skip to content

Commit 53bcd61

Browse files
committed
CP-51479: [maintenance]: fix opam dependencies
Use `opam-dune-lint`. This will make it easier to later merge opam packages and keep the merged package updated correctly. Although `opam-dune-lint` doesn't find all problems yet, see: ocurrent/opam-dune-lint#71 Signed-off-by: Edwin Török <[email protected]>
1 parent 5184c6e commit 53bcd61

File tree

107 files changed

+382
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+382
-96
lines changed

clock.opam

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ depends: [
1111
"ocaml" {>= "4.12"}
1212
"alcotest" {with-test}
1313
"astring"
14+
"fmt"
1415
"mtime"
1516
"ptime"
1617
"xapi-log" {= version}

cohttp-posix.opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ build: [[ "dune" "build" "-p" name "-j" jobs ]]
1111
available: [ os = "linux" ]
1212
depends: [
1313
"ocaml"
14-
"dune"
14+
"dune" {>= "3.15"}
1515
"cohttp"
1616
]
1717
synopsis: "Library required by xapi"

cohttp-posix.opam.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build: [[ "dune" "build" "-p" name "-j" jobs ]]
99
available: [ os = "linux" ]
1010
depends: [
1111
"ocaml"
12-
"dune"
12+
"dune" {>= "3.15"}
1313
"cohttp"
1414
]
1515
synopsis: "Library required by xapi"

dune-project

+76-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
(ocaml (>= 4.12))
2828
(alcotest :with-test)
2929
astring
30+
fmt
3031
mtime
3132
ptime
3233
(xapi-log (= :version))
@@ -50,9 +51,11 @@
5051
(depends
5152
(alcotest :with-test)
5253
astring
54+
(fmt :with-test)
5355
mustache
5456
(xapi-datamodel (= :version))
5557
(xapi-stdext-unix (and (= :version) :with-test))
58+
(xapi-test-utils :with-test)
5659
)
5760
(allow_empty)
5861
)
@@ -115,6 +118,7 @@
115118
ocaml
116119
dune
117120
(alcotest :with-test)
121+
(fmt :with-test)
118122
re
119123
uri
120124
(uuid :with-test)
@@ -132,8 +136,12 @@
132136
cohttp-posix
133137
dune
134138
cohttp
139+
ptime
140+
result
141+
rresult
135142
rpclib
136143
ppx_deriving_rpc
144+
uri
137145
(xapi-log (= :version))
138146
(xapi-open-uri (= :version))
139147
(xapi-stdext-threads (= :version))
@@ -180,6 +188,7 @@
180188
(xapi-stdext-threads (= :version))
181189
(xapi-stdext-unix (= :version))
182190
(xapi-idl (= :version))
191+
xenstore
183192
xenstore_transport
184193
)
185194
)
@@ -192,13 +201,18 @@
192201
(ocaml (>= "4.02.0"))
193202
(alcotest :with-test)
194203
astring
204+
cmdliner
205+
(fmt :with-test)
195206
(gzip (= :version))
196207
(http-lib (= :version))
197208
inotify
198209
io-page
210+
ipaddr
199211
mtime
212+
polly
200213
ppx_deriving_rpc
201214
rpclib
215+
uri
202216
(ezxenstore (= :version))
203217
(uuid (= :version))
204218
xapi-backtrace
@@ -207,6 +221,11 @@
207221
(xapi-stdext-threads (= :version))
208222
(xapi-stdext-unix (= :version))
209223
xapi-tracing
224+
xenctrl
225+
xenstore
226+
xenstore_transport
227+
xmlm
228+
yojson
210229
)
211230
)
212231

@@ -238,10 +257,14 @@
238257
base-threads
239258
(forkexec (= :version))
240259
(http-lib (= :version))
260+
integers
241261
mtime
242262
netlink
243263
re
264+
result
265+
rresult
244266
rpclib
267+
uri
245268
(xapi-idl (= :version))
246269
xapi-inventory
247270
(xapi-stdext-pervasives (= :version))
@@ -250,6 +273,7 @@
250273
(xapi-stdext-unix (= :version))
251274
xapi-test-utils
252275
(xen-api-client (= :version))
276+
yojson
253277
)
254278
)
255279

@@ -308,19 +332,27 @@
308332
(depends
309333
alcotest ; needed for the quicktest binary
310334
angstrom
335+
astring
311336
base-threads
312337
base64
338+
(bos :with-test)
313339
cdrom
340+
cmdliner
341+
cohttp
314342
conf-pam
315343
(crowbar :with-test)
344+
cstruct
316345
ctypes
317346
ctypes-foreign
318347
domain-name
319348
(ezxenstore (= :version))
320-
(fmt :with-test)
349+
fmt
321350
hex
322351
(http-lib (and :with-test (= :version))) ; the public library is only used for testing
352+
integers
323353
ipaddr
354+
logs
355+
magic-mime
324356
mirage-crypto
325357
mirage-crypto-pk
326358
(mirage-crypto-rng (>= "0.11.0"))
@@ -329,21 +361,31 @@
329361
opentelemetry-client-ocurl
330362
pci
331363
(pciutil (= :version))
364+
polly
332365
ppx_deriving_rpc
333366
ppx_sexp_conv
334367
ppx_deriving
335368
psq
369+
ptime
336370
qcheck-alcotest
371+
qcheck-core
372+
re
373+
result
337374
rpclib
338375
(rrdd-plugin (= :version))
339376
rresult
340377
sexpr
378+
sexplib
379+
sexplib0
341380
sha
342381
(stunnel (= :version))
343382
tar
344383
tar-unix
384+
uri
345385
(uuid (= :version))
386+
uuidm
346387
x509
388+
xapi-backtrace
347389
(xapi-client (= :version))
348390
(xapi-cli-protocol (= :version))
349391
(xapi-consts (= :version))
@@ -362,6 +404,9 @@
362404
(xapi-tracing (= :version))
363405
(xapi-types (= :version))
364406
(xapi-xenopsd (= :version))
407+
xenctrl ; for quicktest
408+
xenstore_transport
409+
xmlm
365410
(xml-light2 (= :version))
366411
yojson
367412
(zstd (= :version))
@@ -391,20 +436,29 @@
391436
(tags ("org.mirage" "org:xapi-project"))
392437
(depends
393438
(alcotest-lwt :with-test)
439+
astring
440+
bigarray-compat
441+
cmdliner
442+
cohttp
394443
cohttp-lwt
395444
conf-libssl
396445
(cstruct (>= "3.0.0"))
397446
(ezxenstore (= :version))
398447
(forkexec (= :version))
399448
io-page
400449
lwt
450+
lwt_ssl
451+
nbd
401452
nbd-unix
402453
ppx_cstruct
403454
ppx_deriving_rpc
404455
re
456+
result
405457
rpclib
458+
ssl
406459
sha
407460
tar
461+
uri
408462
(vhd-format (= :version))
409463
(vhd-format-lwt (= :version))
410464
(xapi-idl (= :version))
@@ -438,9 +492,13 @@ This package provides an Lwt compatible interface to the library.")
438492
(ocaml (and (>= "4.02.3") (< "5.0.0")))
439493
(alcotest :with-test)
440494
(alcotest-lwt :with-test)
495+
bigarray-compat
441496
(cstruct (< "6.1.0"))
497+
cstruct-lwt
498+
(fmt :with-test)
442499
(lwt (>= "3.2.0"))
443500
(mirage-block (>= "2.0.1"))
501+
rresult
444502
(vhd-format (= :version))
445503
(io-page (and :with-test (>= "2.4.0")))
446504
)
@@ -486,8 +544,11 @@ This package provides an Lwt compatible interface to the library.")
486544
(depends
487545
(alcotest :with-test)
488546
astring
547+
bigarray-compat
489548
cstruct
490549
crc
550+
(fmt :with-test)
551+
rpclib
491552
yojson
492553
(xapi-idl (= :version))
493554
(xapi-rrd (= :version))
@@ -518,6 +579,8 @@ This package provides an Lwt compatible interface to the library.")
518579
ppx_sexp_conv
519580
rpclib
520581
sexplib
582+
sexplib0
583+
uri
521584
(xapi-log (= :version))
522585
(xapi-stdext-threads (= :version))
523586
(odoc :with-doc)
@@ -554,10 +617,16 @@ This package provides an Lwt compatible interface to the library.")
554617
(alcotest :with-test)
555618
astring
556619
(base64 (>= "3.1.0"))
620+
fmt
621+
ipaddr
622+
mtime
623+
ppx_deriving_rpc
624+
(qcheck-core :with-test)
557625
rpclib
558626
(safe-resources(= :version))
559627
sha
560628
(stunnel (= :version))
629+
uri
561630
(uuid (= :version))
562631
xapi-backtrace
563632
(xapi-idl (= :version))
@@ -580,11 +649,13 @@ This package provides an Lwt compatible interface to the library.")
580649
(synopsis "Process-spawning library")
581650
(description "Client and server library to spawn processes.")
582651
(depends
652+
astring
583653
base-threads
584654
(fd-send-recv (>= "2.0.0"))
585655
ppx_deriving_rpc
586656
rpclib
587657
(uuid (= :version))
658+
xapi-backtrace
588659
(xapi-log (= :version))
589660
(xapi-stdext-pervasives (= :version))
590661
(xapi-stdext-unix (= :version))
@@ -661,6 +732,8 @@ This package provides an Lwt compatible interface to the library.")
661732
(depends
662733
base-threads
663734
base-unix
735+
(alcotest :with-test)
736+
(fmt :with-test)
664737
(odoc :with-doc)
665738
(xapi-stdext-pervasives (= :version))
666739
(mtime :with-test)
@@ -675,10 +748,12 @@ This package provides an Lwt compatible interface to the library.")
675748
(depends
676749
(ocaml (>= 4.12.0))
677750
(alcotest :with-test)
751+
astring
678752
base-unix
679753
(bisect_ppx :with-test)
680754
(fd-send-recv (>= 2.0.0))
681755
fmt
756+
integers
682757
(mtime (and (>= 2.0.0) :with-test))
683758
(logs :with-test)
684759
(qcheck-core (and (>= 0.21.2) :with-test))

ezxenstore.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ dev-repo: "git+https://github.com/xapi-project/xen-api.git"
1010
build: [[ "dune" "build" "-p" name "-j" jobs ]]
1111
depends: [
1212
"ocaml"
13-
"dune" {>= "1.4"}
14-
"cmdliner" {with-test & >= "1.1.0"}
13+
"dune" {>= "3.15"}
14+
"cmdliner"
1515
"logs"
1616
"uuidm"
1717
"xapi-stdext-unix"

ezxenstore.opam.template

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dev-repo: "git+https://github.com/xapi-project/xen-api.git"
88
build: [[ "dune" "build" "-p" name "-j" jobs ]]
99
depends: [
1010
"ocaml"
11-
"dune" {>= "1.4"}
12-
"cmdliner" {with-test & >= "1.1.0"}
11+
"dune" {>= "3.15"}
12+
"cmdliner"
1313
"logs"
1414
"uuidm"
1515
"xapi-stdext-unix"

forkexec.opam

+2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ homepage: "https://xapi-project.github.io/"
99
bug-reports: "https://github.com/xapi-project/xen-api/issues"
1010
depends: [
1111
"dune" {>= "3.15"}
12+
"astring"
1213
"base-threads"
1314
"fd-send-recv" {>= "2.0.0"}
1415
"ppx_deriving_rpc"
1516
"rpclib"
1617
"uuid" {= version}
18+
"xapi-backtrace"
1719
"xapi-log" {= version}
1820
"xapi-stdext-pervasives" {= version}
1921
"xapi-stdext-unix" {= version}

gzip.opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ build: [[ "dune" "build" "-p" name "-j" jobs ]]
1111
available: [ os = "linux" ]
1212
depends: [
1313
"ocaml"
14-
"dune"
14+
"dune" {>= "3.15"}
1515
"xapi-compression"
1616
]
1717
synopsis: "Library required by xapi"

gzip.opam.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build: [[ "dune" "build" "-p" name "-j" jobs ]]
99
available: [ os = "linux" ]
1010
depends: [
1111
"ocaml"
12-
"dune"
12+
"dune" {>= "3.15"}
1313
"xapi-compression"
1414
]
1515
synopsis: "Library required by xapi"

http-lib.opam

+6
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,16 @@ depends: [
1313
"alcotest" {with-test}
1414
"astring"
1515
"base64" {>= "3.1.0"}
16+
"fmt"
17+
"ipaddr"
18+
"mtime"
19+
"ppx_deriving_rpc"
20+
"qcheck-core" {with-test}
1621
"rpclib"
1722
"safe-resources" {= version}
1823
"sha"
1924
"stunnel" {= version}
25+
"uri"
2026
"uuid" {= version}
2127
"xapi-backtrace"
2228
"xapi-idl" {= version}

0 commit comments

Comments
 (0)