@ -2,7 +2,7 @@
use lib '.' ;
use t::Config ;
plan tests = > 27 3 ;
plan tests = > 27 7 ;
#no_diff();
@ -5888,3 +5888,98 @@ install: all
clean:
rm - rf build * . exe * . dll openresty - *
=== TEST 72 : - - with - no - pool - patch
- - - cmd: . / configure - - with - no - pool - patch - - dry - run
- - - out
platform: linux ( linux )
cp - rp bundle / build
cd build
patch - p0 < nginx - no_pool . patch
patching file nginx - 1.17 .4 /src/co re / nginx . h
patching file nginx - 1.17 .4 /src/co re / ngx_array . c
patching file nginx - 1.17 .4 /src/co re / ngx_array . h
patching file nginx - 1.17 .4 /src/co re / ngx_palloc . c
patching file nginx - 1.17 .4 /src/co re / ngx_palloc . h
cd LuaJIT - 2.1 - 20190912
INFO: found - msse4 .2 in cc .
gmake TARGET_STRIP = @ : CCDEBUG = - g XCFLAGS = '-DLUAJIT_ENABLE_LUA52COMPAT -DLUAJIT_ENABLE_GC64 -msse4.2' CC = cc PREFIX = /usr/ local /openresty/ luajit
gmake install TARGET_STRIP = @ : CCDEBUG = - g XCFLAGS = '-DLUAJIT_ENABLE_LUA52COMPAT -DLUAJIT_ENABLE_GC64 -msse4.2' CC = cc PREFIX = /usr/ local /openresty/ luajit DESTDIR = $ OPENRESTY_BUILD_DIR /luajit-root/
export LUAJIT_LIB = '$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
export LUAJIT_INC = '$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.1'
cd ..
patching the resty script with hard - coded nginx binary path ...
cd nginx - 1.17 .4
sh . /configure --prefix=/ usr /local/o penresty / nginx \
- - with - cc - opt = '-O2' \
- - add - module = .. / ngx_devel_kit - 0.3 .1 rc1 \
- - add - module = .. / echo - nginx - module - 0.61 \
- - add - module = .. / xss - nginx - module - 0.06 \
- - add - module = .. / ngx_coolkit - 0.2 \
- - add - module = .. / set - misc - nginx - module - 0.32 \
- - add - module = .. / form - input - nginx - module - 0.12 \
- - add - module = .. / encrypted - session - nginx - module - 0.08 \
- - add - module = .. / srcache - nginx - module - 0.31 \
- - add - module = .. / ngx_lua - 0.10 .15 \
- - add - module = .. / ngx_lua_upstream - 0.07 \
- - add - module = .. / headers - more - nginx - module - 0.33 \
- - add - module = .. / array - var - nginx - module - 0.05 \
- - add - module = .. / memc - nginx - module - 0.19 \
- - add - module = .. / redis2 - nginx - module - 0.15 \
- - add - module = .. / redis - nginx - module - 0.3 .7 \
- - add - module = .. / rds - json - nginx - module - 0.15 \
- - add - module = .. / rds - csv - nginx - module - 0.09 \
- - add - module = .. / ngx_stream_lua - 0.0 .7 \
- - with - ld - opt = '-Wl,-rpath,/usr/local/openresty/luajit/lib' \
- - with - stream - - with - stream_ssl_module - - with - stream_ssl_preread_module - - with - http_ssl_module
cd .. / ..
Type the following commands to build and install:
gmake
gmake install
- - - makefile
. PHONY: all install clean
all:
cd $ OPENRESTY_BUILD_DIR /LuaJIT-2.1-20190912 && $(MAKE) TARGET_STRIP=@: CCDEBUG=-g XCFLAGS='-DLUAJIT_ENABLE_LUA52COMPAT -DLUAJIT_ENABLE_GC64 -msse4.2' CC=cc PREFIX=/ usr /local/o penresty / luajit
cd $ OPENRESTY_BUILD_DIR /lua-cjson-2.1.0.7 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/ luajit - root /usr/ local /openresty/ luajit /include/ luajit - 2.1 LUA_CMODULE_DIR = /usr/ local /openresty/ lualib LUA_MODULE_DIR = /usr/ local /openresty/ lualib CJSON_CFLAGS = "-g -fpic" CC = cc
cd $ OPENRESTY_BUILD_DIR /lua-resty-signal-0.02 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/ luajit - root /usr/ local /openresty/ luajit /include/ luajit - 2.1 LUA_LIB_DIR = /usr/ local /openresty/ lualib CC = cc
cd $ OPENRESTY_BUILD_DIR /lua-redis-parser-0.13 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/ luajit - root /usr/ local /openresty/ luajit /include/ luajit - 2.1 LUA_LIB_DIR = /usr/ local /openresty/ lualib CC = cc
cd $ OPENRESTY_BUILD_DIR /lua-rds-parser-0.06 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/ luajit - root /usr/ local /openresty/ luajit /include/ luajit - 2.1 LUA_LIB_DIR = /usr/ local /openresty/ lualib CC = cc
cd $ OPENRESTY_BUILD_DIR / nginx - 1.17 .4 && $ ( MAKE )
install: all
mkdir - p $ ( DESTDIR ) /usr/ local /openresty/
- cp $ OPENRESTY_DIR /COPYRIGHT $(DESTDIR)/ usr /local/o penresty /
cd $ OPENRESTY_BUILD_DIR /LuaJIT-2.1-20190912 && $(MAKE) install TARGET_STRIP=@: CCDEBUG=-g XCFLAGS='-DLUAJIT_ENABLE_LUA52COMPAT -DLUAJIT_ENABLE_GC64 -msse4.2' CC=cc PREFIX=/ usr /local/o penresty / luajit DESTDIR = $ ( DESTDIR )
cd $ OPENRESTY_BUILD_DIR /lua-cjson-2.1.0.7 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/ luajit - root /usr/ local /openresty/ luajit /include/ luajit - 2.1 LUA_CMODULE_DIR = /usr/ local /openresty/ lualib LUA_MODULE_DIR = /usr/ local /openresty/ lualib CJSON_CFLAGS = "-g -fpic" CC = cc
cd $ OPENRESTY_BUILD_DIR /lua-resty-signal-0.02 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/ luajit - root /usr/ local /openresty/ luajit /include/ luajit - 2.1 LUA_LIB_DIR = /usr/ local /openresty/ lualib CC = cc
cd $ OPENRESTY_BUILD_DIR /lua-redis-parser-0.13 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/ luajit - root /usr/ local /openresty/ luajit /include/ luajit - 2.1 LUA_LIB_DIR = /usr/ local /openresty/ lualib CC = cc
cd $ OPENRESTY_BUILD_DIR /lua-rds-parser-0.06 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/ luajit - root /usr/ local /openresty/ luajit /include/ luajit - 2.1 LUA_LIB_DIR = /usr/ local /openresty/ lualib CC = cc
cd $ OPENRESTY_BUILD_DIR /lua-resty-dns-0.21 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/ usr /local/o penresty /lualib INSTALL=$OPENRESTY_BUILD_DIR/i nstall
cd $ OPENRESTY_BUILD_DIR /lua-resty-memcached-0.14 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/ usr /local/o penresty /lualib INSTALL=$OPENRESTY_BUILD_DIR/i nstall
cd $ OPENRESTY_BUILD_DIR /lua-resty-redis-0.27 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/ usr /local/o penresty /lualib INSTALL=$OPENRESTY_BUILD_DIR/i nstall
cd $ OPENRESTY_BUILD_DIR /lua-resty-mysql-0.21 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/ usr /local/o penresty /lualib INSTALL=$OPENRESTY_BUILD_DIR/i nstall
cd $ OPENRESTY_BUILD_DIR /lua-resty-string-0.12rc1 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/ usr /local/o penresty /lualib INSTALL=$OPENRESTY_BUILD_DIR/i nstall
cd $ OPENRESTY_BUILD_DIR /lua-resty-upload-0.10 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/ usr /local/o penresty /lualib INSTALL=$OPENRESTY_BUILD_DIR/i nstall
cd $ OPENRESTY_BUILD_DIR /lua-resty-websocket-0.07 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/ usr /local/o penresty /lualib INSTALL=$OPENRESTY_BUILD_DIR/i nstall
cd $ OPENRESTY_BUILD_DIR /lua-resty-lock-0.08 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/ usr /local/o penresty /lualib INSTALL=$OPENRESTY_BUILD_DIR/i nstall
cd $ OPENRESTY_BUILD_DIR /lua-resty-lrucache-0.09 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/ usr /local/o penresty /lualib INSTALL=$OPENRESTY_BUILD_DIR/i nstall
cd $ OPENRESTY_BUILD_DIR /lua-resty-core-0.1.17 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/ usr /local/o penresty /lualib INSTALL=$OPENRESTY_BUILD_DIR/i nstall
cd $ OPENRESTY_BUILD_DIR /lua-resty-upstream-healthcheck-0.06 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/ usr /local/o penresty /lualib INSTALL=$OPENRESTY_BUILD_DIR/i nstall
cd $ OPENRESTY_BUILD_DIR /lua-resty-limit-traffic-0.06 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/ usr /local/o penresty /lualib INSTALL=$OPENRESTY_BUILD_DIR/i nstall
cd $ OPENRESTY_BUILD_DIR /lua-resty-shell-0.02 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/ usr /local/o penresty /lualib INSTALL=$OPENRESTY_BUILD_DIR/i nstall
cd $ OPENRESTY_BUILD_DIR /lua-tablepool-0.01 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/ usr /local/o penresty /lualib INSTALL=$OPENRESTY_BUILD_DIR/i nstall
cd $ OPENRESTY_BUILD_DIR /opm-0.0.5 && $OPENRESTY_BUILD_DIR/i nstall bin /* $(DESTDIR)/ usr /local/o penresty /bin/
cd $ OPENRESTY_BUILD_DIR /resty-cli-0.25rc2 && $OPENRESTY_BUILD_DIR/i nstall bin /* $(DESTDIR)/ usr /local/o penresty /bin/
cp $ OPENRESTY_BUILD_DIR /resty.index $(DESTDIR)/ usr /local/o penresty /
cp - r $ OPENRESTY_BUILD_DIR /pod $(DESTDIR)/ usr /local/o penresty /
cd $ OPENRESTY_BUILD_DIR / nginx - 1.17 .4 && $ ( MAKE ) install DESTDIR = $ ( DESTDIR )
mkdir - p $ ( DESTDIR ) /usr/ local /openresty/si te /lualib $(DESTDIR)/ usr /local/o penresty /site/ pod $ ( DESTDIR ) /usr/ local /openresty/si te / manifest
ln - sf /usr/ local /openresty/ nginx /sbin/ nginx $ ( DESTDIR ) /usr/ local /openresty/ bin / openresty
clean:
rm - rf build * . exe * . dll openresty - *