mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
Compare commits
59 Commits
Author | SHA1 | Date | |
---|---|---|---|
77e510abdc | |||
88272c5503 | |||
4004360b4c | |||
177e1bfcdf | |||
0bf8bbe040 | |||
8ba0a37a42 | |||
557f52794c | |||
b7e7398fc9 | |||
68aac430ae | |||
d2c3802134 | |||
918e884175 | |||
cbce5daa05 | |||
8ebcad308a | |||
4e2b3dcbbf | |||
ca408fc450 | |||
092b2f6b83 | |||
c56e7e8165 | |||
b40119877a | |||
5505eac72b | |||
22d6c02398 | |||
4bd257d4dc | |||
299399231a | |||
60109db59a | |||
5714d20c1e | |||
a69dd6463b | |||
c7cffaaf77 | |||
ab2cdb5a2f | |||
e101ac777a | |||
147dba8f62 | |||
5a7890001b | |||
7fcf5e3e82 | |||
2055f54dbb | |||
cdcfac980e | |||
0597fedf6e | |||
0556e081b8 | |||
69a2effd7b | |||
7244088ed0 | |||
9da7200899 | |||
46ec035831 | |||
7d6c400d3d | |||
7df5c5c851 | |||
8fa9eb77bd | |||
cd77c676c3 | |||
3702d98b4a | |||
04709aa2e6 | |||
70d58760ef | |||
942411c114 | |||
b644d3d531 | |||
087ec653a5 | |||
4df2272a77 | |||
73f13092eb | |||
777da53f2d | |||
f43134c1fd | |||
400de3c50d | |||
6271d106b4 | |||
9415dafc3f | |||
1f051ab43f | |||
86024a6988 | |||
478518fe08 |
83
README
83
README
@ -9,57 +9,11 @@ that all these modules are played well together.
|
||||
|
||||
The bundled software components are copyrighted by the respective copyright holders.
|
||||
|
||||
A quick note to Debian and Ubuntu users:
|
||||
You're recommended to install the following packages using apt-get before
|
||||
installing this bundle:
|
||||
The homepage for this project is http://openresty.org.
|
||||
|
||||
apt-get install libreadline-dev libpcre3-dev libssl-dev perl
|
||||
|
||||
A quick note to Mac OS X (Darwin) users:
|
||||
You're recommended to install prerequisites PCRE using some package
|
||||
management tool, like Homebrew:
|
||||
|
||||
brew install pcre
|
||||
|
||||
Alternatively you can install PCRE from source all by yourself :)
|
||||
|
||||
To build ngx_openresty, you need a working perl (perl 5.6.0 or better)
|
||||
in your PATH environment, and then follow the following steps:
|
||||
|
||||
1. download the latest ngx_openresty tarball can be downloaded from
|
||||
|
||||
http://agentzh.org/misc/nginx/ngx_openresty-0.8.54.3.tar.gz
|
||||
|
||||
we will eventually migrate to the openresty.org domain.
|
||||
|
||||
2. and then enter the ngx_openresty-0.8.54.3/ directory,
|
||||
and type the following command to configure:
|
||||
|
||||
./configure
|
||||
|
||||
by default, --prefix=/usr/local/openresty is assumed. You can
|
||||
specify various options, as in
|
||||
|
||||
./configure --prefix=/opt/openresty \
|
||||
--with-luajit \
|
||||
--without-http_drizzle_module \
|
||||
--with-http_iconv_module \
|
||||
--with-http_postgres_module
|
||||
|
||||
try ./configure --help to see more options.
|
||||
|
||||
For Solaris, it's common to install libraries like OpenSSL to /lib,
|
||||
so when it complaints about OpenSSL and you have indeed
|
||||
already installed it, specify the --with-ld-opt='-L/lib' option.
|
||||
|
||||
3. build everything locally
|
||||
|
||||
make
|
||||
|
||||
4. install ngx_openresty into the target directory that you specified by
|
||||
the --prefix option in Step 2.
|
||||
|
||||
make install
|
||||
For the users:
|
||||
Visit http://openresty.org/#Download to download the latest bundle tarball, and
|
||||
follow the installation instructions in the page http://openresty.org/#Installation.
|
||||
|
||||
For bundle maintainers:
|
||||
|
||||
@ -73,30 +27,13 @@ For bundle maintainers:
|
||||
|
||||
at the top of the bundle source tree.
|
||||
|
||||
The following packages are bundled in the 0.8.54.3 release:
|
||||
REPORT BUGS
|
||||
|
||||
LuaJIT-2.0.0-beta6
|
||||
array-var-nginx-module-0.02
|
||||
auth-request-nginx-module-0.2
|
||||
drizzle-nginx-module-0.0.15rc9
|
||||
echo-nginx-module-0.36rc2
|
||||
encrypted-session-nginx-module-0.01
|
||||
form-input-nginx-module-0.07rc4
|
||||
headers-more-nginx-module-0.14
|
||||
iconv-nginx-module-0.10rc3
|
||||
libdrizzle-0.8
|
||||
lua-5.1.4
|
||||
memc-nginx-module-0.12rc1
|
||||
nginx-0.8.54
|
||||
ngx_devel_kit-0.2.17
|
||||
ngx_lua-0.1.6rc3
|
||||
ngx_postgres-0.8
|
||||
rds-json-nginx-module-0.11rc2
|
||||
redis2-nginx-module-0.06
|
||||
set-misc-nginx-module-0.21
|
||||
srcache-nginx-module-0.12rc2
|
||||
upstream-keepalive-nginx-module-0.3
|
||||
xss-nginx-module-0.03rc2
|
||||
You're very welcome to report issues on GitHub:
|
||||
|
||||
https://github.com/agentzh/ngx_openresty/issues
|
||||
|
||||
COPYRIGHT & LICENSE
|
||||
|
||||
The bundle itself is licensed under the 2-clause BSD license.
|
||||
|
||||
|
24
patches/nginx-0.8.54-no_Werror.patch
Normal file
24
patches/nginx-0.8.54-no_Werror.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -ur nginx-0.8.54/auto/cc/gcc nginx-0.8.54-patched/auto/cc/gcc
|
||||
--- nginx-0.8.54/auto/cc/gcc 2011-06-27 19:53:00.205737804 +0800
|
||||
+++ nginx-0.8.54-patched/auto/cc/gcc 2011-06-27 19:53:13.837741087 +0800
|
||||
@@ -169,7 +169,7 @@
|
||||
|
||||
|
||||
# stop on warning
|
||||
-CFLAGS="$CFLAGS -Werror"
|
||||
+#CFLAGS="$CFLAGS -Werror"
|
||||
|
||||
# debug
|
||||
CFLAGS="$CFLAGS -g"
|
||||
diff -ur nginx-0.8.54/auto/cc/icc nginx-0.8.54-patched/auto/cc/icc
|
||||
--- nginx-0.8.54/auto/cc/icc 2011-06-27 19:52:56.370157068 +0800
|
||||
+++ nginx-0.8.54-patched/auto/cc/icc 2011-06-27 19:53:19.508916811 +0800
|
||||
@@ -139,7 +139,7 @@
|
||||
esac
|
||||
|
||||
# stop on warning
|
||||
-CFLAGS="$CFLAGS -Werror"
|
||||
+#CFLAGS="$CFLAGS -Werror"
|
||||
|
||||
# debug
|
||||
CFLAGS="$CFLAGS -g"
|
27
patches/nginx-0.8.54-request_body_in_single_buf.patch
Normal file
27
patches/nginx-0.8.54-request_body_in_single_buf.patch
Normal file
@ -0,0 +1,27 @@
|
||||
# HG changeset patch
|
||||
# User Maxim Dounin <mdounin@mdounin.ru>
|
||||
# Date 1309799136 -14400
|
||||
# Node ID 99e276bba8596bc4df9e638482ee413f4c6bf700
|
||||
# Parent e7b2f945d55ae44a2295facf9e3336dc4633e5b5
|
||||
Core: fix body with request_body_in_single_buf.
|
||||
|
||||
If there were preread data and request body was big enough first part
|
||||
of request body was duplicated.
|
||||
|
||||
See report here:
|
||||
http://nginx.org/pipermail/nginx/2011-July/027756.html
|
||||
|
||||
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c
|
||||
--- a/src/http/ngx_http_request_body.c
|
||||
+++ b/src/http/ngx_http_request_body.c
|
||||
@@ -372,7 +372,9 @@ ngx_http_do_read_client_request_body(ngx
|
||||
}
|
||||
}
|
||||
|
||||
- if (r->request_body_in_file_only && rb->bufs->next) {
|
||||
+ if (rb->bufs->next
|
||||
+ && (r->request_body_in_file_only || r->request_body_in_single_buf))
|
||||
+ {
|
||||
rb->bufs = rb->bufs->next;
|
||||
}
|
||||
|
17
patches/nginx-0.8.54-request_body_preread_fix.patch
Normal file
17
patches/nginx-0.8.54-request_body_preread_fix.patch
Normal file
@ -0,0 +1,17 @@
|
||||
# HG changeset patch
|
||||
# User Maxim Dounin <mdounin@mdounin.ru>
|
||||
# Date 1309776931 -14400
|
||||
# Node ID e7b2f945d55ae44a2295facf9e3336dc4633e5b5
|
||||
# Parent 610e909bb9e29766188aa86fae3abe0bd3432940
|
||||
Core: fix body if it's preread and there are extra data.
|
||||
|
||||
--- nginx-0.8.54/src/http/ngx_http_request_body.c 2011-07-05 12:11:21.619264633 +0800
|
||||
+++ nginx-0.8.54-patched/src/http/ngx_http_request_body.c 2011-07-05 12:14:30.694321554 +0800
|
||||
@@ -141,6 +141,7 @@
|
||||
|
||||
/* the whole request body was pre-read */
|
||||
|
||||
+ b->last = b->pos + r->headers_in.content_length_n;
|
||||
r->header_in->pos += (size_t) r->headers_in.content_length_n;
|
||||
r->request_length += r->headers_in.content_length_n;
|
||||
|
40
patches/nginx-0.8.54-subrequest_loop.patch
Normal file
40
patches/nginx-0.8.54-subrequest_loop.patch
Normal file
@ -0,0 +1,40 @@
|
||||
# HG changeset patch
|
||||
# User Maxim Dounin <mdounin@mdounin.ru>
|
||||
# Date 1309187571 -14400
|
||||
# Node ID 283a416b2235d5383c12a975edc8866f007fb628
|
||||
# Parent f5fc40783ddcbf4db33859ee2a9bce54cf32c350
|
||||
Core: protect from subrequest loops.
|
||||
|
||||
Without protection subrequest loop results in r->count overflow and
|
||||
SIGSEGV. Protection was broken in 0.7.25.
|
||||
|
||||
Note that this also limits number of parallel subrequests. This
|
||||
wasn't exactly the case before 0.7.25 as local subrequests were
|
||||
completed directly.
|
||||
|
||||
See here for details:
|
||||
|
||||
http://nginx.org/pipermail/nginx-ru/2010-February/032184.html
|
||||
|
||||
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
|
||||
--- a/src/http/ngx_http_core_module.c
|
||||
+++ b/src/http/ngx_http_core_module.c
|
||||
@@ -2287,7 +2287,6 @@ ngx_http_subrequest(ngx_http_request_t *
|
||||
sr->start_sec = tp->sec;
|
||||
sr->start_msec = tp->msec;
|
||||
|
||||
- r->main->subrequests++;
|
||||
r->main->count++;
|
||||
|
||||
*psr = sr;
|
||||
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
|
||||
--- a/src/http/ngx_http_request.c
|
||||
+++ b/src/http/ngx_http_request.c
|
||||
@@ -1981,6 +1981,7 @@ ngx_http_finalize_request(ngx_http_reque
|
||||
if (r == c->data) {
|
||||
|
||||
r->main->count--;
|
||||
+ r->main->subrequests++;
|
||||
|
||||
if (!r->logged) {
|
||||
|
37
patches/nginx-1.0.4-gcc46_fixes.patch
Normal file
37
patches/nginx-1.0.4-gcc46_fixes.patch
Normal file
@ -0,0 +1,37 @@
|
||||
# HG changeset patch
|
||||
# User Maxim Dounin <mdounin@mdounin.ru>
|
||||
# Date 1309424678 -14400
|
||||
# Node ID 60a67d95638f9187418a3a26c1fcb9f06be7a4fc
|
||||
# Parent 1c167244d2fdb064c159012c50a7ae3fd1ed254a
|
||||
Fix another gcc46 unused-but-set warning.
|
||||
|
||||
diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
|
||||
--- a/src/event/ngx_event_openssl.c
|
||||
+++ b/src/event/ngx_event_openssl.c
|
||||
@@ -1687,20 +1687,24 @@ ngx_ssl_get_cached_session(ngx_ssl_conn_
|
||||
ngx_int_t rc;
|
||||
ngx_shm_zone_t *shm_zone;
|
||||
ngx_slab_pool_t *shpool;
|
||||
+#if (NGX_DEBUG)
|
||||
ngx_connection_t *c;
|
||||
+#endif
|
||||
ngx_rbtree_node_t *node, *sentinel;
|
||||
ngx_ssl_session_t *sess;
|
||||
ngx_ssl_sess_id_t *sess_id;
|
||||
ngx_ssl_session_cache_t *cache;
|
||||
u_char buf[NGX_SSL_MAX_SESSION_SIZE];
|
||||
|
||||
- c = ngx_ssl_get_connection(ssl_conn);
|
||||
-
|
||||
hash = ngx_crc32_short(id, (size_t) len);
|
||||
*copy = 0;
|
||||
|
||||
+#if (NGX_DEBUG)
|
||||
+ c = ngx_ssl_get_connection(ssl_conn);
|
||||
+
|
||||
ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
||||
"ssl get session: %08XD:%d", hash, len);
|
||||
+#endif
|
||||
|
||||
shm_zone = SSL_CTX_get_ex_data(SSL_get_SSL_CTX(ssl_conn),
|
||||
ngx_ssl_session_cache_index);
|
24
patches/nginx-1.0.4-no_Werror.patch
Normal file
24
patches/nginx-1.0.4-no_Werror.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -ur nginx-0.8.54/auto/cc/gcc nginx-0.8.54-patched/auto/cc/gcc
|
||||
--- nginx-0.8.54/auto/cc/gcc 2011-06-27 19:53:00.205737804 +0800
|
||||
+++ nginx-0.8.54-patched/auto/cc/gcc 2011-06-27 19:53:13.837741087 +0800
|
||||
@@ -169,7 +169,7 @@
|
||||
|
||||
|
||||
# stop on warning
|
||||
-CFLAGS="$CFLAGS -Werror"
|
||||
+#CFLAGS="$CFLAGS -Werror"
|
||||
|
||||
# debug
|
||||
CFLAGS="$CFLAGS -g"
|
||||
diff -ur nginx-0.8.54/auto/cc/icc nginx-0.8.54-patched/auto/cc/icc
|
||||
--- nginx-0.8.54/auto/cc/icc 2011-06-27 19:52:56.370157068 +0800
|
||||
+++ nginx-0.8.54-patched/auto/cc/icc 2011-06-27 19:53:19.508916811 +0800
|
||||
@@ -139,7 +139,7 @@
|
||||
esac
|
||||
|
||||
# stop on warning
|
||||
-CFLAGS="$CFLAGS -Werror"
|
||||
+#CFLAGS="$CFLAGS -Werror"
|
||||
|
||||
# debug
|
||||
CFLAGS="$CFLAGS -g"
|
90
patches/nginx-1.0.4-no_error_pages.patch
Normal file
90
patches/nginx-1.0.4-no_error_pages.patch
Normal file
@ -0,0 +1,90 @@
|
||||
--- nginx-0.8.54/src/http/ngx_http_core_module.c 2010-12-14 18:38:42.000000000 +0800
|
||||
+++ nginx-0.8.54-patched/src/http/ngx_http_core_module.c 2011-01-30 19:24:34.956354518 +0800
|
||||
@@ -57,6 +57,8 @@
|
||||
void *conf);
|
||||
static char *ngx_http_core_error_page(ngx_conf_t *cf, ngx_command_t *cmd,
|
||||
void *conf);
|
||||
+static char *ngx_http_core_no_error_pages(ngx_conf_t *cf, ngx_command_t *cmd,
|
||||
+ void *conf);
|
||||
static char *ngx_http_core_try_files(ngx_conf_t *cf, ngx_command_t *cmd,
|
||||
void *conf);
|
||||
static char *ngx_http_core_open_file_cache(ngx_conf_t *cf, ngx_command_t *cmd,
|
||||
@@ -614,6 +616,14 @@
|
||||
0,
|
||||
NULL },
|
||||
|
||||
+ { ngx_string("no_error_pages"),
|
||||
+ NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF
|
||||
+ |NGX_CONF_NOARGS,
|
||||
+ ngx_http_core_no_error_pages,
|
||||
+ NGX_HTTP_LOC_CONF_OFFSET,
|
||||
+ 0,
|
||||
+ NULL },
|
||||
+
|
||||
{ ngx_string("try_files"),
|
||||
NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_2MORE,
|
||||
ngx_http_core_try_files,
|
||||
@@ -3052,7 +3062,6 @@
|
||||
* clcf->types = NULL;
|
||||
* clcf->default_type = { 0, NULL };
|
||||
* clcf->error_log = NULL;
|
||||
- * clcf->error_pages = NULL;
|
||||
* clcf->try_files = NULL;
|
||||
* clcf->client_body_path = NULL;
|
||||
* clcf->regex = NULL;
|
||||
@@ -3062,6 +3071,7 @@
|
||||
* clcf->gzip_proxied = 0;
|
||||
*/
|
||||
|
||||
+ clcf->error_pages = NGX_CONF_UNSET_PTR;
|
||||
clcf->client_max_body_size = NGX_CONF_UNSET;
|
||||
clcf->client_body_buffer_size = NGX_CONF_UNSET_SIZE;
|
||||
clcf->client_body_timeout = NGX_CONF_UNSET_MSEC;
|
||||
@@ -3250,9 +3260,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
- if (conf->error_pages == NULL && prev->error_pages) {
|
||||
- conf->error_pages = prev->error_pages;
|
||||
- }
|
||||
+ ngx_conf_merge_ptr_value(conf->error_pages, prev->error_pages, NULL);
|
||||
|
||||
ngx_conf_merge_str_value(conf->default_type,
|
||||
prev->default_type, "text/plain");
|
||||
@@ -3988,6 +3996,10 @@
|
||||
ngx_http_compile_complex_value_t ccv;
|
||||
|
||||
if (clcf->error_pages == NULL) {
|
||||
+ return "conflicts with \"no_error_pages\"";
|
||||
+ }
|
||||
+
|
||||
+ if (clcf->error_pages == NGX_CONF_UNSET_PTR) {
|
||||
clcf->error_pages = ngx_array_create(cf->pool, 4,
|
||||
sizeof(ngx_http_err_page_t));
|
||||
if (clcf->error_pages == NULL) {
|
||||
@@ -4095,6 +4107,25 @@
|
||||
|
||||
|
||||
static char *
|
||||
+ngx_http_core_no_error_pages(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||
+{
|
||||
+ ngx_http_core_loc_conf_t *clcf = conf;
|
||||
+
|
||||
+ if (clcf->error_pages == NULL) {
|
||||
+ return "is duplicate";
|
||||
+ }
|
||||
+
|
||||
+ if (clcf->error_pages != NGX_CONF_UNSET_PTR) {
|
||||
+ return "conflicts with \"error_page\"";
|
||||
+ }
|
||||
+
|
||||
+ clcf->error_pages = NULL;
|
||||
+
|
||||
+ return NGX_CONF_OK;
|
||||
+}
|
||||
+
|
||||
+
|
||||
+static char *
|
||||
ngx_http_core_try_files(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||
{
|
||||
ngx_http_core_loc_conf_t *clcf = conf;
|
27
patches/nginx-1.0.4-request_body_in_single_buf.patch
Normal file
27
patches/nginx-1.0.4-request_body_in_single_buf.patch
Normal file
@ -0,0 +1,27 @@
|
||||
# HG changeset patch
|
||||
# User Maxim Dounin <mdounin@mdounin.ru>
|
||||
# Date 1309799136 -14400
|
||||
# Node ID 99e276bba8596bc4df9e638482ee413f4c6bf700
|
||||
# Parent e7b2f945d55ae44a2295facf9e3336dc4633e5b5
|
||||
Core: fix body with request_body_in_single_buf.
|
||||
|
||||
If there were preread data and request body was big enough first part
|
||||
of request body was duplicated.
|
||||
|
||||
See report here:
|
||||
http://nginx.org/pipermail/nginx/2011-July/027756.html
|
||||
|
||||
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c
|
||||
--- a/src/http/ngx_http_request_body.c
|
||||
+++ b/src/http/ngx_http_request_body.c
|
||||
@@ -372,7 +372,9 @@ ngx_http_do_read_client_request_body(ngx
|
||||
}
|
||||
}
|
||||
|
||||
- if (r->request_body_in_file_only && rb->bufs->next) {
|
||||
+ if (rb->bufs->next
|
||||
+ && (r->request_body_in_file_only || r->request_body_in_single_buf))
|
||||
+ {
|
||||
rb->bufs = rb->bufs->next;
|
||||
}
|
||||
|
17
patches/nginx-1.0.4-request_body_preread_fix.patch
Normal file
17
patches/nginx-1.0.4-request_body_preread_fix.patch
Normal file
@ -0,0 +1,17 @@
|
||||
# HG changeset patch
|
||||
# User Maxim Dounin <mdounin@mdounin.ru>
|
||||
# Date 1309776931 -14400
|
||||
# Node ID e7b2f945d55ae44a2295facf9e3336dc4633e5b5
|
||||
# Parent 610e909bb9e29766188aa86fae3abe0bd3432940
|
||||
Core: fix body if it's preread and there are extra data.
|
||||
|
||||
--- nginx-1.0.4/src/http/ngx_http_request_body.c 2011-07-05 12:11:21.619264633 +0800
|
||||
+++ nginx-1.0.4-patched/src/http/ngx_http_request_body.c 2011-07-05 12:14:30.694321554 +0800
|
||||
@@ -141,6 +141,7 @@
|
||||
|
||||
/* the whole request body was pre-read */
|
||||
|
||||
+ b->last = b->pos + r->headers_in.content_length_n;
|
||||
r->header_in->pos += (size_t) r->headers_in.content_length_n;
|
||||
r->request_length += r->headers_in.content_length_n;
|
||||
|
26
patches/nginx-1.0.4-server_header.patch
Normal file
26
patches/nginx-1.0.4-server_header.patch
Normal file
@ -0,0 +1,26 @@
|
||||
diff -ur lz-nginx-1.0.4/nginx-1.0.4/src/core/nginx.h lz-nginx-1.0.4-patched/nginx-1.0.4/src/core/nginx.h
|
||||
--- lz-nginx-1.0.4/nginx-1.0.4/src/core/nginx.h 2010-02-12 17:31:01.000000000 +0800
|
||||
+++ lz-nginx-1.0.4-patched/nginx-1.0.4/src/core/nginx.h 2010-03-30 10:52:13.240702627 +0800
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#define nginx_version 1000004
|
||||
#define NGINX_VERSION "1.0.4"
|
||||
-#define NGINX_VER "nginx/" NGINX_VERSION
|
||||
+#define NGINX_VER "ngx_openresty/" NGINX_VERSION ".unknown"
|
||||
|
||||
#define NGINX_VAR "NGINX"
|
||||
#define NGX_OLDPID_EXT ".oldbin"
|
||||
Only in lz-nginx-1.0.4-patched/nginx-1.0.4/src/core: nginx.h.orig
|
||||
Only in lz-nginx-1.0.4-patched/nginx-1.0.4/src/core: nginx.h.rej
|
||||
diff -ur lz-nginx-1.0.4/nginx-1.0.4/src/http/ngx_http_header_filter_module.c lz-nginx-1.0.4-patched/nginx-1.0.4/src/http/ngx_http_header_filter_module.c
|
||||
--- lz-nginx-1.0.4/nginx-1.0.4/src/http/ngx_http_header_filter_module.c 2010-03-03 23:14:04.000000000 +0800
|
||||
+++ lz-nginx-1.0.4-patched/nginx-1.0.4/src/http/ngx_http_header_filter_module.c 2010-03-30 10:52:53.670909405 +0800
|
||||
@@ -45,7 +45,7 @@
|
||||
};
|
||||
|
||||
|
||||
-static char ngx_http_server_string[] = "Server: nginx" CRLF;
|
||||
+static char ngx_http_server_string[] = "Server: ngx_openresty" CRLF;
|
||||
static char ngx_http_server_full_string[] = "Server: " NGINX_VER CRLF;
|
||||
|
||||
|
40
patches/nginx-1.0.4-subrequest_loop.patch
Normal file
40
patches/nginx-1.0.4-subrequest_loop.patch
Normal file
@ -0,0 +1,40 @@
|
||||
# HG changeset patch
|
||||
# User Maxim Dounin <mdounin@mdounin.ru>
|
||||
# Date 1309187571 -14400
|
||||
# Node ID 283a416b2235d5383c12a975edc8866f007fb628
|
||||
# Parent f5fc40783ddcbf4db33859ee2a9bce54cf32c350
|
||||
Core: protect from subrequest loops.
|
||||
|
||||
Without protection subrequest loop results in r->count overflow and
|
||||
SIGSEGV. Protection was broken in 0.7.25.
|
||||
|
||||
Note that this also limits number of parallel subrequests. This
|
||||
wasn't exactly the case before 0.7.25 as local subrequests were
|
||||
completed directly.
|
||||
|
||||
See here for details:
|
||||
|
||||
http://nginx.org/pipermail/nginx-ru/2010-February/032184.html
|
||||
|
||||
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
|
||||
--- a/src/http/ngx_http_core_module.c
|
||||
+++ b/src/http/ngx_http_core_module.c
|
||||
@@ -2287,7 +2287,6 @@ ngx_http_subrequest(ngx_http_request_t *
|
||||
sr->start_sec = tp->sec;
|
||||
sr->start_msec = tp->msec;
|
||||
|
||||
- r->main->subrequests++;
|
||||
r->main->count++;
|
||||
|
||||
*psr = sr;
|
||||
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
|
||||
--- a/src/http/ngx_http_request.c
|
||||
+++ b/src/http/ngx_http_request.c
|
||||
@@ -1981,6 +1981,7 @@ ngx_http_finalize_request(ngx_http_reque
|
||||
if (r == c->data) {
|
||||
|
||||
r->main->count--;
|
||||
+ r->main->subrequests++;
|
||||
|
||||
if (!r->logged) {
|
||||
|
897
t/sanity.t
897
t/sanity.t
File diff suppressed because it is too large
Load Diff
128
util/configure
vendored
128
util/configure
vendored
@ -58,7 +58,7 @@ my @modules = (
|
||||
[http_set_misc => 'set-misc-nginx-module'],
|
||||
[http_form_input => 'form-input-nginx-module'],
|
||||
[http_encrypted_session => 'encrypted-session-nginx-module'],
|
||||
[http_drizzle => 'drizzle-nginx-module', $on_solaris ? 'disabled' : () ],
|
||||
[http_drizzle => 'drizzle-nginx-module', 'disabled'],
|
||||
[http_postgres => 'ngx_postgres', 'disabled'],
|
||||
[http_lua => 'ngx_lua'],
|
||||
[http_headers_more => 'headers-more-nginx-module'],
|
||||
@ -105,12 +105,19 @@ my $prefix = '/usr/local/openresty';
|
||||
my %resty_opts;
|
||||
my $dry_run;
|
||||
my @ngx_rpaths;
|
||||
my $cc;
|
||||
|
||||
my (@ngx_opts, @ngx_cc_opts, @ngx_ld_opts);
|
||||
|
||||
for my $opt (@ARGV) {
|
||||
next unless defined $opt;
|
||||
|
||||
if ($opt =~ /^--with-cc=(.+)/) {
|
||||
$cc = $1;
|
||||
push @ngx_opts, $opt;
|
||||
next;
|
||||
}
|
||||
|
||||
if ($opt eq '--dry-run') {
|
||||
$dry_run = 1;
|
||||
next;
|
||||
@ -147,6 +154,9 @@ for my $opt (@ARGV) {
|
||||
} elsif ($opt eq '--with-luajit') {
|
||||
$resty_opts{luajit} = 1;
|
||||
|
||||
} elsif ($opt =~ /^--with-libdrizzle=(.*)/) {
|
||||
$resty_opts{libdrizzle} = $1;
|
||||
|
||||
} elsif ($opt eq '--with-http_ssl_module') {
|
||||
$resty_opts{http_ssl} = 1;
|
||||
push @ngx_opts, $opt;
|
||||
@ -248,17 +258,8 @@ sub build_resty_opts {
|
||||
$opts->{lua} = 1;
|
||||
}
|
||||
|
||||
if ($on_solaris) {
|
||||
if ($opts->{http_drizzle}) {
|
||||
$opts->{libdrizzle} = 1;
|
||||
}
|
||||
|
||||
} elsif (! $opts->{no_http_drizzle}) {
|
||||
$opts->{libdrizzle} = 1;
|
||||
}
|
||||
|
||||
if ($opts->{no_http_ssl} && $opts->{http_ssl}) {
|
||||
die "--with-http_ssl_module conflicts with --without-http_ssl_module\n";
|
||||
die "--with-http_ssl_module conflicts with --without-http_ssl_module.\n";
|
||||
}
|
||||
|
||||
if (! $opts->{no_http_ssl} && ! $opts->{http_ssl}) {
|
||||
@ -266,6 +267,14 @@ sub build_resty_opts {
|
||||
push @ngx_opts, '--with-http_ssl_module';
|
||||
}
|
||||
|
||||
if (! $opts->{http_drizzle} && $opts->{libdrizzle}) {
|
||||
die "The http_drizzle_module is not enabled while --with-libdrizzle is specified.\n";
|
||||
}
|
||||
|
||||
if ($platform eq 'linux' && $opts->{luajit} && ! can_run("ldconfig")) {
|
||||
die "you need to have ldconfig in your PATH env when enabling luajit.\n";
|
||||
}
|
||||
|
||||
my $opts_line = '';
|
||||
|
||||
if ($opts->{debug}) {
|
||||
@ -273,10 +282,12 @@ sub build_resty_opts {
|
||||
$opts_line .= " \\\n --with-debug";
|
||||
|
||||
} else {
|
||||
unshift @ngx_cc_opts, '-O2';
|
||||
#unshift @ngx_cc_opts, '-O2';
|
||||
}
|
||||
|
||||
$opts_line .= " \\\n --with-cc-opt='@ngx_cc_opts'";
|
||||
if (@ngx_cc_opts) {
|
||||
$opts_line .= " \\\n --with-cc-opt='@ngx_cc_opts'";
|
||||
}
|
||||
|
||||
if (-d 'build') {
|
||||
system("rm -rf build");
|
||||
@ -286,41 +297,17 @@ sub build_resty_opts {
|
||||
die "build/ directory already exists\n";
|
||||
}
|
||||
|
||||
shell "cp -r bundle/ build/";
|
||||
shell "cp -rp bundle/ build/";
|
||||
|
||||
cd 'build';
|
||||
|
||||
# build 3rd-party C libraries if required
|
||||
|
||||
if ($opts->{libdrizzle}) {
|
||||
my $libdrizzle_src = auto_complete 'libdrizzle';
|
||||
my $libdrizzle_prefix = "$prefix/libdrizzle";
|
||||
my $libdrizzle_root = File::Spec->rel2abs("libdrizzle-root");
|
||||
|
||||
if (-d $libdrizzle_root) {
|
||||
shell "rm -rf $libdrizzle_root";
|
||||
}
|
||||
|
||||
mkdir $libdrizzle_root or
|
||||
die "create create directory libdrizzle-root: $!\n";
|
||||
|
||||
cd $libdrizzle_src;
|
||||
|
||||
shell "./configure --prefix=$libdrizzle_prefix", $dry_run;
|
||||
shell "make", $dry_run;
|
||||
shell "make install DESTDIR=$libdrizzle_root", $dry_run;
|
||||
|
||||
push @make_cmds, "cd build/$libdrizzle_src && \$(MAKE)";
|
||||
|
||||
push @make_install_cmds, "cd build/$libdrizzle_src && "
|
||||
. "\$(MAKE) install DESTDIR=\$(DESTDIR)";
|
||||
|
||||
env LIBDRIZZLE_LIB => "$libdrizzle_root$libdrizzle_prefix/lib";
|
||||
env LIBDRIZZLE_INC => "$libdrizzle_root$libdrizzle_prefix/include";
|
||||
|
||||
push @ngx_rpaths, "$libdrizzle_prefix/lib";
|
||||
|
||||
cd '..';
|
||||
if (my $drizzle_prefix = $opts->{libdrizzle}) {
|
||||
my $drizzle_lib = "$drizzle_prefix/lib";
|
||||
env LIBDRIZZLE_LIB => "$drizzle_prefix/lib";
|
||||
env LIBDRIZZLE_INC => "$drizzle_prefix/include/libdrizzle-1.0";
|
||||
push @ngx_rpaths, $drizzle_lib;
|
||||
}
|
||||
|
||||
if ($opts->{luajit}) {
|
||||
@ -337,14 +324,25 @@ sub build_resty_opts {
|
||||
|
||||
cd $luajit_src;
|
||||
|
||||
shell "make PREFIX=$luajit_prefix", $dry_run;
|
||||
shell "make install PREFIX=$luajit_prefix DESTDIR=$luajit_root", $dry_run;
|
||||
my $extra_opts = ' TARGET_STRIP=@:';
|
||||
|
||||
if ($opts->{debug}) {
|
||||
$extra_opts = ' CCDEBUG=-g Q=';
|
||||
}
|
||||
|
||||
if (defined $cc) {
|
||||
$extra_opts .= " HOST_CC=$cc";
|
||||
}
|
||||
|
||||
shell "make$extra_opts PREFIX=$luajit_prefix", $dry_run;
|
||||
|
||||
shell "make install$extra_opts PREFIX=$luajit_prefix DESTDIR=$luajit_root", $dry_run;
|
||||
|
||||
push @make_cmds, "cd build/$luajit_src && "
|
||||
. "\$(MAKE) PREFIX=$luajit_prefix";
|
||||
. "\$(MAKE)$extra_opts PREFIX=$luajit_prefix";
|
||||
|
||||
push @make_install_cmds, "cd build/$luajit_src && "
|
||||
. "\$(MAKE) install PREFIX=$luajit_prefix DESTDIR=\$(DESTDIR)";
|
||||
. "\$(MAKE) install$extra_opts PREFIX=$luajit_prefix DESTDIR=\$(DESTDIR)";
|
||||
|
||||
env LUAJIT_LIB => "$luajit_root$luajit_prefix/lib";
|
||||
env LUAJIT_INC => "$luajit_root$luajit_prefix/include/luajit-2.0";
|
||||
@ -374,16 +372,21 @@ sub build_resty_opts {
|
||||
|
||||
cd $lua_src;
|
||||
|
||||
shell "make $platform", $dry_run;
|
||||
shell "make install INSTALL_TOP=$lua_root$lua_prefix", $dry_run;
|
||||
my $extra_opts = '';
|
||||
if (defined $cc) {
|
||||
$extra_opts .= " CC=$cc";
|
||||
}
|
||||
|
||||
shell "make$extra_opts $platform", $dry_run;
|
||||
shell "make install$extra_opts INSTALL_TOP=$lua_root$lua_prefix", $dry_run;
|
||||
|
||||
env LUA_LIB => "$lua_root$lua_prefix/lib";
|
||||
env LUA_INC => "$lua_root$lua_prefix/include";
|
||||
|
||||
push @make_cmds, "cd build/$lua_src && \$(MAKE) $platform";
|
||||
push @make_cmds, "cd build/$lua_src && \$(MAKE)$extra_opts $platform";
|
||||
|
||||
push @make_install_cmds, "cd build/$lua_src && "
|
||||
. "\$(MAKE) install INSTALL_TOP=\$(DESTDIR)$lua_prefix";
|
||||
. "\$(MAKE) install$extra_opts INSTALL_TOP=\$(DESTDIR)$lua_prefix";
|
||||
|
||||
cd '..';
|
||||
}
|
||||
@ -477,6 +480,7 @@ _EOC_
|
||||
|
||||
--without-lua51 disable the bundled Lua 5.1 interpreter
|
||||
--with-luajit enable LuaJIT 2.0
|
||||
--with-libdrizzle=DIR specify the libdrizzle 1.0 installation prefix
|
||||
|
||||
Options directly inherited from nginx
|
||||
|
||||
@ -617,7 +621,7 @@ sub gen_makefile {
|
||||
open my $out, ">Makefile" or
|
||||
die "Cannot open Makefile for writing: $!\n";
|
||||
|
||||
print $out ".PHONY: all install\n\n";
|
||||
print $out ".PHONY: all install clean\n\n";
|
||||
|
||||
print $out "all:\n\t" . join("\n\t", @make_cmds) . "\n\n";
|
||||
|
||||
@ -628,3 +632,23 @@ sub gen_makefile {
|
||||
close $out;
|
||||
}
|
||||
|
||||
# check if we can run some command
|
||||
sub can_run {
|
||||
my ($cmd) = @_;
|
||||
|
||||
#warn "can run: @_\n";
|
||||
my $_cmd = $cmd;
|
||||
return $_cmd if -x $_cmd;
|
||||
|
||||
# FIXME: this is a hack; MSWin32 is not supported anyway
|
||||
my $path_sep = ':';
|
||||
|
||||
for my $dir ((split /$path_sep/, $ENV{PATH}), '.') {
|
||||
next if $dir eq '';
|
||||
my $abs = File::Spec->catfile($dir, $_[0]);
|
||||
return $abs if -x $abs;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -42,9 +42,20 @@ for my $t_file (@t_files) {
|
||||
if (s{\.\./$pat\S+}{../$dir}g && $orig ne $_) {
|
||||
$changed++;
|
||||
|
||||
warn "\n- $orig";
|
||||
warn "+ $_";
|
||||
} elsif (s{\bbuild/$pat[^/ \t\n]*\d[^/ \t\n]*}{build/$dir}g && $orig ne $_) {
|
||||
$changed++;
|
||||
|
||||
warn "\n- $orig";
|
||||
warn "+ $_";
|
||||
} elsif (s{^cd $pat[^/ \t\n]+}{cd $dir}g && $orig ne $_) {
|
||||
$changed++;
|
||||
|
||||
warn "\n- $orig";
|
||||
warn "+ $_";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
print $out $_;
|
||||
@ -57,7 +68,7 @@ for my $t_file (@t_files) {
|
||||
close $in;
|
||||
}
|
||||
|
||||
print join "\n", map { " $_" } sort @dirs;
|
||||
print join("\n", map { /^LuaJIT/ ? "* ~$_" : "* $_" } sort @dirs), "\n";
|
||||
|
||||
sub cd ($) {
|
||||
my $dir = shift;
|
||||
|
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
root=$(readlink -f -- "$(dirname -- "$0")/..")
|
||||
#root=$(readlink -f -- "$(dirname -- "$0")/..")
|
||||
root=`perl -MCwd -e'print Cwd::abs_path(shift)' $(dirname -- "$0")/..`
|
||||
work=$root/work
|
||||
|
||||
if [ ! -d $work ]; then
|
||||
|
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
root=$(readlink -f -- "$(dirname -- "$0")/..")
|
||||
#root=$(readlink -f -- "$(dirname -- "$0")/..")
|
||||
root=`perl -MCwd -e'print Cwd::abs_path(shift)' $(dirname -- "$0")/..`
|
||||
|
||||
. util/ver
|
||||
|
||||
@ -31,20 +32,28 @@ sed -i $"s/NGINX_VERSION \".unknown\"/NGINX_VERSION \".$minor_ver\"/" \
|
||||
|
||||
patch -p2 < server_header.patch || exit 1
|
||||
|
||||
patch -p1 < $root/patches/nginx-$main_ver-redirect_memcpy_overlap.patch || exit 1
|
||||
#patch -p1 < $root/patches/nginx-$main_ver-redirect_memcpy_overlap.patch || exit 1
|
||||
|
||||
patch -p1 < $root/patches/nginx-$main_ver-no_error_pages.patch || exit 1
|
||||
|
||||
patch -p1 < $root/patches/nginx-$main_ver-no_Werror.patch || exit 1
|
||||
|
||||
patch -p1 < $root/patches/nginx-$main_ver-request_body_preread_fix.patch || exit 1
|
||||
|
||||
patch -p1 < $root/patches/nginx-$main_ver-request_body_in_single_buf.patch || exit 1
|
||||
|
||||
patch -p1 -l < $root/patches/nginx-$main_ver-subrequest_loop.patch || exit 1
|
||||
|
||||
rm -f *.patch || exit 1
|
||||
|
||||
cd .. || exit 1
|
||||
|
||||
ver=0.36rc2
|
||||
ver=0.37rc1
|
||||
$root/util/get-tarball "http://github.com/agentzh/echo-nginx-module/tarball/v$ver" -O echo-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf echo-nginx-module-$ver.tar.gz
|
||||
mv agentzh-echo-nginx-module-* echo-nginx-module-$ver
|
||||
|
||||
ver=0.03rc2
|
||||
ver=0.03rc3
|
||||
$root/util/get-tarball "http://github.com/agentzh/xss-nginx-module/tarball/v$ver" -O xss-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf xss-nginx-module-$ver.tar.gz || exit 1
|
||||
mv agentzh-xss-nginx-module-* xss-nginx-module-$ver || exit 1
|
||||
@ -54,66 +63,66 @@ $root/util/get-tarball "http://github.com/simpl/ngx_devel_kit/tarball/v$ver" -O
|
||||
tar -xzf ngx_devel_kit-$ver.tar.gz || exit 1
|
||||
mv simpl-ngx_devel_kit-* ngx_devel_kit-$ver || exit 1
|
||||
|
||||
ver=0.21
|
||||
ver=0.22rc1
|
||||
$root/util/get-tarball "http://github.com/agentzh/set-misc-nginx-module/tarball/v$ver" -O set-misc-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf set-misc-nginx-module-$ver.tar.gz || exit 1
|
||||
mv agentzh-set-misc-nginx-module-* set-misc-nginx-module-$ver || exit 1
|
||||
|
||||
ver=0.11rc2
|
||||
ver=0.12rc1
|
||||
$root/util/get-tarball "http://github.com/agentzh/rds-json-nginx-module/tarball/v$ver" -O rds-json-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf rds-json-nginx-module-$ver.tar.gz || exit 1
|
||||
mv agentzh-rds-json-nginx-module-* rds-json-nginx-module-$ver || exit 1
|
||||
|
||||
ver=0.14
|
||||
ver=0.15
|
||||
$root/util/get-tarball "http://github.com/agentzh/headers-more-nginx-module/tarball/v$ver" -O headers-more-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf headers-more-nginx-module-$ver.tar.gz || exit 1
|
||||
mv agentzh-headers-more-nginx-module-* headers-more-nginx-module-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=0.0.15rc9
|
||||
ver=0.1.1rc2
|
||||
$root/util/get-tarball "http://github.com/chaoslawful/drizzle-nginx-module/tarball/v$ver" -O drizzle-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf drizzle-nginx-module-$ver.tar.gz || exit 1
|
||||
mv chaoslawful-drizzle-nginx-module-* drizzle-nginx-module-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=0.1.6rc3
|
||||
ver=0.2.1rc2
|
||||
$root/util/get-tarball "http://github.com/chaoslawful/lua-nginx-module/tarball/v$ver" -O lua-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf lua-nginx-module-$ver.tar.gz || exit 1
|
||||
mv chaoslawful-lua-nginx-module-* ngx_lua-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=0.02
|
||||
ver=0.03rc1
|
||||
$root/util/get-tarball "http://github.com/agentzh/array-var-nginx-module/tarball/v$ver" -O array-var-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf array-var-nginx-module-$ver.tar.gz || exit 1
|
||||
mv agentzh-array-var-nginx-module-* array-var-nginx-module-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=0.12rc1
|
||||
ver=0.12
|
||||
$root/util/get-tarball "http://github.com/agentzh/memc-nginx-module/tarball/v$ver" -O memc-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf memc-nginx-module-$ver.tar.gz || exit 1
|
||||
mv agentzh-memc-nginx-module-* memc-nginx-module-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=0.12rc2
|
||||
ver=0.12
|
||||
$root/util/get-tarball "http://github.com/agentzh/srcache-nginx-module/tarball/v$ver" -O srcache-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf srcache-nginx-module-$ver.tar.gz || exit 1
|
||||
mv agentzh-srcache-nginx-module-* srcache-nginx-module-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=0.07rc4
|
||||
ver=0.07rc5
|
||||
$root/util/get-tarball "http://github.com/calio/form-input-nginx-module/tarball/v$ver" -O form-input-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf form-input-nginx-module-$ver.tar.gz || exit 1
|
||||
mv calio-form-input-nginx-module-* form-input-nginx-module-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=0.10rc3
|
||||
ver=0.10rc4
|
||||
$root/util/get-tarball "http://github.com/calio/iconv-nginx-module/tarball/v$ver" -O iconv-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf iconv-nginx-module-$ver.tar.gz || exit 1
|
||||
mv calio-iconv-nginx-module-* iconv-nginx-module-$ver || exit 1
|
||||
@ -142,14 +151,14 @@ mv ngx_http_auth_request_module-* auth-request-nginx-module-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=0.8
|
||||
ver=0.9rc1
|
||||
$root/util/get-tarball "https://github.com/FRiCKLE/ngx_postgres/tarball/$ver" -O ngx_postgres-$ver.tar.gz || exit 1
|
||||
tar -xzf ngx_postgres-$ver.tar.gz || exit 1
|
||||
mv FRiCKLE-ngx_postgres-* ngx_postgres-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=0.06
|
||||
ver=0.07
|
||||
$root/util/get-tarball "http://github.com/agentzh/redis2-nginx-module/tarball/v$ver" -O redis2-nginx-module-$ver.tar.gz || exit 1
|
||||
tar -xzf redis2-nginx-module-$ver.tar.gz || exit 1
|
||||
mv agentzh-redis2-nginx-module-* redis2-nginx-module-$ver || exit 1
|
||||
@ -172,25 +181,19 @@ cp $root/patches/lua-$ver-makefile_install_fix.patch lua-makefile-fix.patch || e
|
||||
|
||||
patch -p0 < lua-makefile-fix.patch || exit 1
|
||||
|
||||
rm lua-makefile-fix.patch
|
||||
rm lua-makefile-fix.patch || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=2.0.0-beta6
|
||||
ver=2.0.0-beta8
|
||||
$root/util/get-tarball "http://luajit.org/download/LuaJIT-$ver.tar.gz" -O "LuaJIT-$ver.tar.gz" || exit 1
|
||||
tar -xzf LuaJIT-$ver.tar.gz || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
ver=0.8
|
||||
$root/util/get-tarball "http://launchpad.net/libdrizzle/trunk/0.8/+download/libdrizzle-0.8.tar.gz" -O "libdrizzle-$ver.tar.gz" || exit 1
|
||||
tar -xzf libdrizzle-$ver.tar.gz || exit 1
|
||||
|
||||
$root/util/get-tarball "http://agentzh.org/misc/nginx/libdrizzle-0.8-parsebug_and_mac_fixes.patch" -O "parsebug_and_mac_fixes.patch" || exit 1
|
||||
|
||||
patch -p0 < parsebug_and_mac_fixes.patch
|
||||
|
||||
rm parsebug_and_mac_fixes.patch || exit 1
|
||||
cd LuaJIT-$ver || exit 1;
|
||||
$root/util/get-tarball http://luajit.org/download/beta8_hotfix1.patch -O beta8_hotfix1.patch
|
||||
patch -p1 < beta8_hotfix1.patch || exit 1
|
||||
rm beta8_hotfix1.patch || exit 1
|
||||
cd ..
|
||||
|
||||
#################################
|
||||
|
||||
|
Reference in New Issue
Block a user