Skip to content

Commit 749deb5

Browse files
authored
Merge pull request #202 from ocsigen/multiple-fixes
Multiple fixes
2 parents 030cbfb + 0e0066a commit 749deb5

File tree

17 files changed

+24
-64
lines changed

17 files changed

+24
-64
lines changed

.jenkins.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
opam pin add --no-action ocsigenserver .
2-
opam install camlzip
32
opam install --deps-only ocsigenserver
43
opam install --verbose ocsigenserver
54

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ include Makefile.config
33

44
### Building
55

6-
.PHONY: default
7-
default: build
6+
.PHONY: default all
7+
default all: build
88

99
.PHONY: build
1010
build:

Makefile.options

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ INCS= -I ${BLD}/server/.ocsigenserver.objs/byte \
2828
## ${SERVER_PACKAGE} is not only used to build the 'ocsigenserver' executable
2929
## but also to generate src/baselib/ocsigen_config_static.ml
3030

31-
SERVER_PACKAGE := lwt_ssl,bytes,lwt.unix,lwt_log,ipaddr,findlib,cryptokit,netstring-pcre,str,xml-light,dynlink,cohttp-lwt-unix,hmap
31+
SERVER_PACKAGE := lwt_ssl,bytes,lwt.unix,lwt_log,ipaddr,findlib,cryptokit,pcre,str,xml-light,dynlink,cohttp-lwt-unix,hmap
3232

3333
LIBS := -package ${SERVER_PACKAGE} ${INCS}
3434

configure

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ check_library () {
7575
set_defaults () {
7676
with_sqlite=1
7777
with_pgsql=1
78-
with_camlzip=1
7978
with_dbm=1
8079
prefix="/usr/local"
8180
bindir=""
@@ -103,7 +102,7 @@ full_pwd=`pwd`
103102

104103
## Which options exist? eoptions for enable/disable, woptions for with/without:
105104
eoptions=""
106-
woptions="pgsql sqlite dbm camlzip"
105+
woptions="pgsql sqlite dbm"
107106

108107
print_options () {
109108
for opt in $eoptions; do
@@ -178,8 +177,6 @@ usage: ./configure [ options ]
178177
--with-sqlite, --without-sqlite Compile ocsipersist with SQLite for persistent storage
179178
--with-pgsql, --without-pgsql Compile ocsipersist with PostgreSQL for persistent storage
180179
--with-dbm, --without-dbm Compile ocsipersist with DBM for persistent storage
181-
--with-camlzip, --without-camlzip Compile deflatemod extension, requires camlzip
182-
183180
--name NAME The name of the server binary and ocamlfind package.
184181
185182
--ocsigen-user NAME The name of the ocsigen user
@@ -435,17 +432,6 @@ if [ "$with_dbm" -gt 0 ]; then
435432
fi
436433
fi
437434

438-
# Check Camlzip
439-
if [ "$with_camlzip" -gt 0 ]; then
440-
if test_library camlzip; then
441-
echo -n
442-
elif [ "$with_camlzip" -gt 1 ]; then
443-
fail_library camlzip "https://forge.ocamlcore.org/projects/camlzip/"
444-
else
445-
with_camlzip=0
446-
fi
447-
fi
448-
449435
# Check rlwrap or ledit
450436
if test_binary rlwrap; then
451437
rlwrap=rlwrap
@@ -480,11 +466,6 @@ if [ $with_pgsql -gt 0 ] ; then
480466
else
481467
with_pgsql="NO"
482468
fi
483-
if [ $with_camlzip -gt 0 ] ; then
484-
with_camlzip="YES"
485-
else
486-
with_camlzip="NO"
487-
fi
488469

489470
ocamlinclude=`ocamlfind printconf stdlib`
490471

@@ -518,9 +499,6 @@ OCSIGENUSER := $ocsigen_user
518499
# (This group must exist)
519500
OCSIGENGROUP := $ocsigen_group
520501
521-
# Do you want deflatemod? YES/NO (requires camlzip)
522-
CAMLZIP:=$with_camlzip
523-
524502
# Do you want ocsipersist with sqlite? YES/NO
525503
OCSIPERSISTSQLITE:=$with_sqlite
526504

doc/Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@ DOC := baselib/ocsigen_cache.mli \
2929
PLUGINS_DOC := extensions/accesscontrol.mli extensions/authbasic.mli \
3030
extensions/cors.mli extensions/ocsipersist.mli \
3131
extensions/outputfilter.mli \
32-
extensions/redirectmod.mli extensions/staticmod.mli
33-
34-
ifeq "$(CAMLZIP)" "YES"
35-
PLUGINS_DOC += extensions/deflatemod/deflatemod.mli
36-
endif
32+
extensions/redirectmod.mli extensions/staticmod.mli \
33+
extensions/deflatemod/deflatemod.mli
3734

3835
all: doc wikidoc
3936

ocsigenserver.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ build: [
3838
"--sysconfdir"
3939
"%{lib}%/ocsigenserver/etc/ocsigenserver"
4040
]
41-
[make]
41+
[make "-C" "src" "confs"]
4242
["dune" "build" "-p" name "-j" jobs]
4343
]
4444
install:[make "install.files"]
@@ -62,8 +62,8 @@ depends: [
6262
"hmap"
6363
"xml-light"
6464
"conf-which"
65+
"camlzip"
6566
]
66-
depopts: "camlzip"
6767
conflicts: [
6868
"camlzip" {< "1.04"}
6969
"pgocaml" {< "2.2"}

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include ../Makefile.config
22

33
all: confs
4-
dune build
4+
dune build @install
55

66
### CONF ####
77

src/baselib/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ocsigen_loader
1919
ocsigen_stream)
2020
(libraries
21-
str findlib lwt_log lwt.unix cryptokit netstring-pcre ocsigen_lib_base
21+
str findlib lwt_log lwt.unix cryptokit pcre ocsigen_lib_base
2222
(select dynlink_wrapper.ml from
2323
(dynlink -> dynlink_wrapper.natdynlink.ml)
2424
(_ -> dynlink_wrapper.nonatdynlink.ml))))

src/extensions/Makefile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ default: build
77
build::
88
dune build
99

10-
ifeq "$(CAMLZIP)" "YES"
11-
build::
12-
$(MAKE) -C deflatemod
13-
endif
14-
1510
### PostgreSQL ###
1611

1712
ifeq "$(OCSIPERSISTPGSQL)" "YES"
@@ -34,8 +29,6 @@ endif
3429

3530
## Clean up
3631

37-
clean:
38-
3932
distclean: clean
4033
-rm -f *~ \#* .\#*
4134
${MAKE} -C ocsipersist-dbm distclean
File renamed without changes.

0 commit comments

Comments
 (0)