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
4 changes: 4 additions & 0 deletions ocaml/database/dune
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
threads.posix
http_lib
httpsvr
unix
uuid
xapi-backtrace
xapi-datamodel
Expand Down Expand Up @@ -78,6 +79,7 @@
(name block_device_io)
(modules block_device_io)
(libraries
unix
xapi_database
xapi-log
xapi-stdext-pervasives
Expand All @@ -98,6 +100,7 @@
http_lib
httpsvr
threads.posix
unix
xapi_database
xapi-stdext-threads
xapi-stdext-unix))
Expand All @@ -113,6 +116,7 @@
rpclib.xml
sexplib
sexplib0
unix
xapi_database
xml-light2))

Expand Down
1 change: 1 addition & 0 deletions ocaml/doc/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
mustache
rpclib.core
rpclib.json
unix
uuid
xapi-consts
xapi-datamodel
Expand Down
2 changes: 1 addition & 1 deletion ocaml/forkexecd/cli/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(executable
(modes exe)
(name fe_cli)
(libraries forkexec))
(libraries forkexec unix))

(install
(package xapi-forkexecd)
Expand Down
1 change: 1 addition & 0 deletions ocaml/forkexecd/lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
rpclib.core
rpclib.json
rpclib.xml
unix
uuid
xapi-backtrace
xapi-log
Expand Down
1 change: 1 addition & 0 deletions ocaml/forkexecd/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
astring
fd-send-recv
forkexec
unix
uuid
xapi-log
xapi-stdext-unix
Expand Down
2 changes: 1 addition & 1 deletion ocaml/forkexecd/test/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(executable
(modes exe)
(name fe_test)
(libraries fmt forkexec mtime clock mtime.clock.os uuid xapi-stdext-unix fd-send-recv xapi-log))
(libraries fmt forkexec mtime clock mtime.clock.os str uuid xapi-stdext-unix fd-send-recv xapi-log unix))

; preload library to redirect "/dev/log"
(rule
Expand Down
2 changes: 2 additions & 0 deletions ocaml/gencert/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
ptime.clock.os
result
rresult
unix
x509
xapi-backtrace
xapi-consts
Expand All @@ -32,6 +33,7 @@
(libraries
astring
gencertlib
unix
x509
xapi-inventory
xapi_aux
Expand Down
1 change: 1 addition & 0 deletions ocaml/idl/dune
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
xapi-stdext-std
xapi-stdext-pervasives
xapi-stdext-unix
unix
)
)

Expand Down
1 change: 1 addition & 0 deletions ocaml/idl/json_backend/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
(name gen_json)
(libraries
fmt
unix
xapi-datamodel
xapi-consts
xapi-stdext-unix
Expand Down
1 change: 1 addition & 0 deletions ocaml/libs/clock/dune
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
fmt
mtime.clock.os
qcheck-core
unix
)
)

Expand Down
1 change: 1 addition & 0 deletions ocaml/libs/ezxenstore/core/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
cmdliner
logs
threads
unix
uuidm
(re_export xenstore)
(re_export xenstore_transport)
Expand Down
2 changes: 1 addition & 1 deletion ocaml/libs/ezxenstore/lib_test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
(name main)
(package ezxenstore)
(deps main.exe)
(libraries cmdliner ezxenstore xenstore_transport xenstore xenstore.unix)
(libraries cmdliner ezxenstore xenstore_transport xenstore xenstore.unix unix)
)
1 change: 1 addition & 0 deletions ocaml/libs/ezxenstore/watch/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
xenctrl
uuidm
threads.posix
unix
)
)
6 changes: 5 additions & 1 deletion ocaml/libs/http-lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
sha
stunnel
threads.posix
unix
uuid
uri
xapi-backtrace
Expand All @@ -57,6 +58,7 @@
threads.posix
tracing
tracing_propagator
unix
uri
xapi-backtrace
xapi-log
Expand All @@ -70,7 +72,7 @@
(modes
(best exe))
(modules http_test radix_tree_test)
(libraries alcotest fmt http_lib))
(libraries alcotest fmt http_lib unix))

(executable
(modes exe)
Expand All @@ -81,6 +83,7 @@
safe-resources
stunnel
threads.posix
unix
xapi-backtrace
xapi-log
xapi-stdext-pervasives
Expand All @@ -95,6 +98,7 @@
httpsvr
safe-resources
threads.posix
unix
xapi-stdext-threads
xapi-stdext-unix))

Expand Down
1 change: 1 addition & 0 deletions ocaml/libs/log/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
logs
threads.posix
xapi-backtrace
unix
)
(wrapped false)
)
1 change: 1 addition & 0 deletions ocaml/libs/open-uri/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
cohttp
safe-resources
stunnel
unix
uri
xapi-backtrace
xapi-consts
Expand Down
1 change: 1 addition & 0 deletions ocaml/libs/pciutil/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
(public_name pciutil)
(libraries
threads
unix
xapi-stdext-unix
)
)
Expand Down
1 change: 1 addition & 0 deletions ocaml/libs/resources/dune
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
xapi-backtrace
fmt
threads.posix
unix
xapi-stdext-pervasives
xapi-stdext-threads
)
Expand Down
1 change: 1 addition & 0 deletions ocaml/libs/resources/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
logs
logs.fmt
alcotest
unix
)
)
2 changes: 1 addition & 1 deletion ocaml/libs/sexpr/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
(name test_sexpr)
(package sexpr)
(modules test_sexpr)
(libraries sexpr astring rresult qcheck-core alcotest threads.posix))
(libraries sexpr astring rresult qcheck-core alcotest threads.posix unix))
1 change: 1 addition & 0 deletions ocaml/libs/stunnel/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
forkexec
safe-resources
threads.posix
unix
uuid
xapi-consts
xapi-inventory
Expand Down
2 changes: 1 addition & 1 deletion ocaml/libs/tgroup/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(name tgroup)
(modules tgroup)
(public_name tgroup)
(libraries xapi-log xapi-stdext-unix xapi-stdext-std))
(libraries unix xapi-log xapi-stdext-unix xapi-stdext-std))

(test
(name test_tgroup)
Expand Down
3 changes: 2 additions & 1 deletion ocaml/libs/tracing/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(library
(name tracing)
(modules tracing)
(libraries astring re uri yojson xapi-log xapi-stdext-threads threads.posix)
(libraries astring re uri yojson xapi-log xapi-stdext-threads threads.posix unix)
(preprocess
(pps ppx_deriving_yojson))
(public_name xapi-tracing))
Expand All @@ -21,6 +21,7 @@
rresult
tracing
threads.posix
unix
uri
xapi-log
xapi-open-uri
Expand Down
2 changes: 1 addition & 1 deletion ocaml/libs/vhd/disk/dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(library
(name disk)
(libraries cstruct lwt lwt.unix))
(libraries cstruct lwt lwt.unix unix))
2 changes: 1 addition & 1 deletion ocaml/libs/vhd/vhd_format/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
(name vhd_format)
(public_name vhd-format)
(flags :standard -w -32-34-37)
(libraries stdlib-shims (re_export bigarray-compat) cstruct io-page rresult uuidm)
(libraries stdlib-shims (re_export bigarray-compat) cstruct io-page rresult unix uuidm)
(preprocess (pps ppx_cstruct)))
2 changes: 1 addition & 1 deletion ocaml/libs/vhd/vhd_format_lwt/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(library
(name vhd_format_lwt)
(public_name vhd-format-lwt)
(libraries bigarray-compat cstruct-lwt cstruct lwt lwt.unix mirage-block vhd-format rresult)
(libraries bigarray-compat cstruct-lwt cstruct lwt lwt.unix mirage-block vhd-format rresult unix)
(foreign_stubs
(language c)
(names blkgetsize64_stubs lseek64_stubs odirect_stubs)))
2 changes: 1 addition & 1 deletion ocaml/libs/vhd/vhd_format_lwt_test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
(name parse_test)
(package vhd-format-lwt)
(libraries alcotest alcotest-lwt cstruct disk fmt io-page lwt lwt.unix vhd-format
vhd_format_lwt))
vhd_format_lwt unix))
3 changes: 2 additions & 1 deletion ocaml/libs/xapi-compression/dune
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
forkexec
threads
safe-resources
unix
xapi-log
xapi-stdext-pervasives
xapi-stdext-unix
Expand All @@ -19,4 +20,4 @@
; don't install this
; (public_name xapi-gzip)
; (package xapi-compression)
(libraries xapi_compression cmdliner))
(libraries xapi_compression cmdliner unix))
1 change: 1 addition & 0 deletions ocaml/libs/xapi-inventory/lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
(libraries
uuidm
astring
unix
xapi-stdext-unix
xapi-stdext-threads
threads.posix
Expand Down
2 changes: 1 addition & 1 deletion ocaml/libs/xapi-stdext/lib/xapi-fd-test/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
(test
(package xapi-stdext-unix)
(name test_xapi_fd_test)
(libraries xapi_fd_test alcotest fmt mtime.clock.os)
(libraries xapi_fd_test alcotest fmt mtime.clock.os unix)
)
2 changes: 1 addition & 1 deletion ocaml/libs/xapi-stdext/lib/xapi-fdcaps/test/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(tests
(package xapi-stdext-unix)
(names test_safefd test_properties test_operations)
(libraries xapi_fdcaps alcotest fmt)
(libraries xapi_fdcaps alcotest fmt unix)
)

(cram
Expand Down
10 changes: 6 additions & 4 deletions ocaml/libs/xapi-stdext/lib/xapi-fdcaps/test/properties.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ Check that we get compile errors when trying to use a read-only or write-only pr
> open Xapi_fdcaps.Properties
> let _ = as_readable (make `wronly `reg)
> EOF
$ ocamlfind ocamlc -package xapi-stdext-unix.fdcaps -c t.ml 2>&1 | tail -n 1
The second variant type does not allow tag(s) `wronly
$ ocamlfind ocamlc -package xapi-stdext-unix.fdcaps -c t.ml 2>&1 |
> grep -c "The second variant type does not allow tag(s)"
1

$ cat >t.ml <<'EOF'
> open Xapi_fdcaps.Properties
> let _ = as_writable (make `rdonly `reg)
> EOF
$ ocamlfind ocamlc -package xapi-stdext-unix.fdcaps -c t.ml 2>&1 | tail -n 1
The second variant type does not allow tag(s) `rdonly
$ ocamlfind ocamlc -package xapi-stdext-unix.fdcaps -c t.ml 2>&1 |
> grep -c "The second variant type does not allow tag(s)"
1
1 change: 1 addition & 0 deletions ocaml/libs/xapi-stdext/lib/xapi-stdext-threads/dune
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@
fmt
tgroup
threads.posix
unix
xapi_stdext_threads_scheduler)
)
4 changes: 2 additions & 2 deletions ocaml/libs/xapi-stdext/lib/xapi-stdext-unix/test/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(library
(name unixext_test)
(modules unixext_test)
(libraries clock xapi_stdext_unix qcheck-core mtime.clock.os fmt xapi_fd_test mtime threads.posix rresult)
(libraries clock xapi_stdext_unix qcheck-core mtime.clock.os fmt xapi_fd_test mtime threads.posix rresult unix)
)

(test
Expand All @@ -25,7 +25,7 @@
(name test_systemd)
(package xapi-stdext-unix)
(modules test_systemd)
(libraries xapi-stdext-unix))
(libraries xapi-stdext-unix unix))

(cram
(package xapi-stdext-unix)
Expand Down
1 change: 1 addition & 0 deletions ocaml/message-switch/cli/dune
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
rpclib.core
rpclib.json
threads.posix
unix
)
(preprocess (pps ppx_deriving_rpc))
)
Expand Down
1 change: 1 addition & 0 deletions ocaml/message-switch/core/dune
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
sexplib0
threads.posix
tracing
unix
uri
xapi-log
xapi-stdext-threads
Expand Down
1 change: 1 addition & 0 deletions ocaml/message-switch/core_test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
message-switch-core
message-switch-lwt
threads.posix
unix
)
)

Expand Down
1 change: 1 addition & 0 deletions ocaml/message-switch/core_test/lwt/dune
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
message-switch-core
message-switch-lwt
uri
unix
)
)

Loading
Loading