Skip to content

Commit fc29170

Browse files
committed
Update dune to 3.17
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 382573c commit fc29170

File tree

9 files changed

+121
-45
lines changed

9 files changed

+121
-45
lines changed

dune-project

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,35 @@
1-
(lang dune 2.7)
1+
(lang dune 3.17)
22
(name ocsigenserver)
3+
(version 6.0.0)
4+
5+
(generate_opam_files true)
6+
7+
(license "LGPL-2.1-only WITH OCaml-LGPL-linking-exception")
8+
(authors "Ocsigen team <[email protected]>")
9+
(maintainers "Ocsigen team <[email protected]>")
10+
(source (github ocsigen/ocsigenserver))
11+
(homepage "http://ocsigen.org/ocsigenserver")
12+
13+
(package
14+
(name ocsigenserver)
15+
(synopsis "A full-featured and extensible Web server")
16+
(description
17+
"Ocsigen Server is a Web Server that can be used either as a library for OCaml or as an executable (taking its configuration from a file). It has a very powerful extension mechanism that makes it very easy to plug your own OCaml modules for generating pages. Many extensions are already implemented, like a reverse proxy, content compression, access control, authentication, etc.")
18+
(depends
19+
(ocaml (>= 4.08.1))
20+
(camlzip (>= 1.04))
21+
(cohttp-lwt-unix (and (>= 5.0) (< 6.0)))
22+
(conduit-lwt-unix (and (>= 2.0) (< 7.0)))
23+
cryptokit
24+
(ipaddr (>= 2.1))
25+
(lwt (>= 3.0))
26+
lwt_log
27+
lwt_react
28+
lwt_ssl
29+
ocamlfind
30+
(re (>= 1.11))
31+
react
32+
(ssl (>= 0.5.8))
33+
xml-light)
34+
(conflicts
35+
(pgocaml (< 2.2))))

ocsigenserver.opam

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,36 @@
1+
# This file is generated by dune, edit dune-project instead
12
opam-version: "2.0"
2-
name: "ocsigenserver"
33
version: "6.0.0"
4-
maintainer: "[email protected]"
54
synopsis: "A full-featured and extensible Web server"
6-
description: "Ocsigen Server is a Web Server that can be used either as a library for OCaml or as an executable (taking its configuration from a file). It has a very powerful extension mechanism that makes it very easy to plug your own OCaml modules for generating pages. Many extensions are already implemented, like a reverse proxy, content compression, access control, authentication, etc."
7-
8-
homepage: "http://ocsigen.org/ocsigenserver/"
9-
bug-reports: "https://github.com/ocsigen/ocsigenserver/issues/"
5+
description:
6+
"Ocsigen Server is a Web Server that can be used either as a library for OCaml or as an executable (taking its configuration from a file). It has a very powerful extension mechanism that makes it very easy to plug your own OCaml modules for generating pages. Many extensions are already implemented, like a reverse proxy, content compression, access control, authentication, etc."
7+
maintainer: ["Ocsigen team <dev@ocsigen.org>"]
8+
authors: ["Ocsigen team <dev@ocsigen.org>"]
109
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
10+
homepage: "http://ocsigen.org/ocsigenserver"
11+
bug-reports: "https://github.com/ocsigen/ocsigenserver/issues"
12+
depends: [
13+
"dune" {>= "3.17"}
14+
"ocaml" {>= "4.08.1"}
15+
"camlzip" {>= "1.04"}
16+
"cohttp-lwt-unix" {>= "5.0" & < "6.0"}
17+
"conduit-lwt-unix" {>= "2.0" & < "7.0"}
18+
"cryptokit"
19+
"ipaddr" {>= "2.1"}
20+
"lwt" {>= "3.0"}
21+
"lwt_log"
22+
"lwt_react"
23+
"lwt_ssl"
24+
"ocamlfind"
25+
"re" {>= "1.11"}
26+
"react"
27+
"ssl" {>= "0.5.8"}
28+
"xml-light"
29+
"odoc" {with-doc}
30+
]
31+
conflicts: [
32+
"pgocaml" {< "2.2"}
33+
]
1134
dev-repo: "git+https://github.com/ocsigen/ocsigenserver.git"
1235
build: [
1336
[
@@ -42,26 +65,3 @@ build: [
4265
["dune" "build" "-p" name "-j" jobs]
4366
]
4467
install:[make "install.files"]
45-
depends: [
46-
"ocaml" {>= "4.08.1"}
47-
"dune" {>= "2.7"}
48-
"ocamlfind"
49-
"base-unix"
50-
"base-threads"
51-
"react"
52-
"ssl" {>= "0.5.8"}
53-
"lwt" {>= "3.0.0"}
54-
"lwt_ssl"
55-
"lwt_react"
56-
"lwt_log"
57-
"re" {>= "1.11.0"}
58-
"cryptokit"
59-
"ipaddr" {>= "2.1"}
60-
"cohttp-lwt-unix" {>= "5.0.0" & < "6.0"}
61-
"conduit-lwt-unix" {>= "2.0.0" & < "7.0"}
62-
"xml-light"
63-
"camlzip" {>= "1.04"}
64-
]
65-
conflicts: [
66-
"pgocaml" {< "2.2"}
67-
]

ocsigenserver.opam.template

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
build: [
2+
[
3+
"sh"
4+
"configure"
5+
"--prefix"
6+
"%{prefix}%"
7+
"--ocsigen-user"
8+
"%{user}%"
9+
"--ocsigen-group"
10+
"%{group}%"
11+
"--commandpipe"
12+
"%{lib}%/ocsigenserver/var/run/ocsigenserver_command"
13+
"--logdir"
14+
"%{lib}%/ocsigenserver/var/log/ocsigenserver"
15+
"--mandir"
16+
"%{man}%/man1"
17+
"--docdir"
18+
"%{lib}%/ocsigenserver/share/doc/ocsigenserver"
19+
"--commandpipe"
20+
"%{lib}%/ocsigenserver/var/run/ocsigenserver_command"
21+
"--staticpagesdir"
22+
"%{lib}%/ocsigenserver/var/www"
23+
"--datadir"
24+
"%{lib}%/ocsigenserver/var/lib/ocsigenserver"
25+
"--temproot"
26+
""
27+
"--sysconfdir"
28+
"%{lib}%/ocsigenserver/etc/ocsigenserver"
29+
]
30+
[make "-C" "src" "confs"]
31+
["dune" "build" "-p" name "-j" jobs]
32+
]
33+
install:[make "install.files"]

src/baselib/dune

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@
1212
(wrapped false)
1313
(flags
1414
(:standard -no-keep-locs))
15-
(modules dynlink_wrapper ocsigen_cache ocsigen_config_static ocsigen_lib
16-
ocsigen_loader ocsigen_stream)
15+
(modules
16+
dynlink_wrapper
17+
ocsigen_cache
18+
ocsigen_config_static
19+
ocsigen_lib
20+
ocsigen_loader
21+
ocsigen_stream)
1722
(libraries
1823
str
1924
findlib

src/baselib/ocsigen_cache.ml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module Dlist : sig
104104
(** returns the finalizers. *)
105105
end = struct
106106
type 'a node =
107-
{ mutable value : 'a
107+
{ mutable value : 'a [@ocaml.warning "-69"]
108108
; mutable succ : 'a node option
109109
; (* the node added just after *)
110110
mutable prev : 'a node option
@@ -434,11 +434,11 @@ functor
434434
{ mutable pointers : A.key Dlist.t
435435
; mutable table : (A.value * A.key Dlist.node) H.t
436436
; finder : A.key -> A.value Lwt.t
437-
; clear : unit -> unit
438-
(* This function clears the cache. It is put inside the
439-
cache structure so that it is garbage-collected only when the cache
440-
is no longer referenced, as the functions themselves are put inside
441-
a weak hash table *)
437+
; clear : unit -> unit [@ocaml.warning "-69"]
438+
(* This function clears the cache. It is put inside the cache structure
439+
so that it is garbage-collected only when the cache is no longer
440+
referenced, as the functions themselves are put inside a weak hash
441+
table *)
442442
}
443443

444444
let mk ?timer size =

src/extensions/deflatemod.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type output_buffer =
6363
; mutable avail : int
6464
; mutable size : int32
6565
; mutable crc : int32
66-
; mutable add_trailer : bool }
66+
; mutable add_trailer : bool [@ocaml.warning "-69"] }
6767

6868
let write_int32 oz n =
6969
for i = 0 to 3 do

src/extensions/revproxy.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type redirection =
3131
{ regexp : Pcre.regexp
3232
; full_url : bool
3333
; dest : string
34-
; pipeline : bool
34+
; pipeline : bool [@ocaml.warning "-69"]
3535
; keephost : bool }
3636
(** The table of redirections for each virtual server *)
3737

src/server/dune

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22
(name ocsigenserver)
33
(public_name ocsigenserver)
44
(wrapped false)
5-
(libraries xml-light cohttp-lwt-unix polytables ocsigen_cookie_map baselib
6-
http))
5+
(libraries
6+
xml-light
7+
cohttp-lwt-unix
8+
polytables
9+
ocsigen_cookie_map
10+
baselib
11+
http))

src/server/ocsigen_request.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ type t =
5252
{ r_address : Unix.inet_addr
5353
; r_port : int
5454
; r_ssl : bool
55-
; r_filenames : string list ref
56-
; r_sockaddr : Lwt_unix.sockaddr
55+
; r_filenames : string list ref [@ocaml.warning "-69"]
56+
; r_sockaddr : Lwt_unix.sockaddr [@ocaml.warning "-69"]
5757
; r_remote_ip : string Lazy.t
5858
; r_remote_ip_parsed : Ipaddr.t Lazy.t
5959
; r_forward_ip : string list
@@ -66,7 +66,7 @@ type t =
6666
; r_original_full_path : string option
6767
; r_sub_path : string option
6868
; r_cookies_override : string Ocsigen_cookie_map.Map_inner.t option
69-
; mutable r_request_cache : Polytables.t
69+
; mutable r_request_cache : Polytables.t [@ocaml.warning "-69"]
7070
; mutable r_tries : int
7171
; r_connection_closed : unit Lwt.t
7272
; r_timeofday : float }

0 commit comments

Comments
 (0)