mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
Compare commits
22 Commits
v1.19.3.1r
...
1.19.3.x
Author | SHA1 | Date | |
---|---|---|---|
a1017ea985 | |||
7bb2644fe8 | |||
e95a015346 | |||
de3e659ef5 | |||
1c4063664e | |||
72d8adc75c | |||
d5f130fbff | |||
934a3102dc | |||
b9bc185f79 | |||
f43cd23f83 | |||
0e1cad8190 | |||
ce740cba10 | |||
8fa9533c5e | |||
29b901d4cd | |||
fcee0d36da | |||
bae27d3eff | |||
931adca76a | |||
62c3cb72a1 | |||
8a4605a933 | |||
a8696337a6 | |||
771e9e678e | |||
f9634628c1 |
@ -30,9 +30,9 @@ linux-s390x: &linux-s390x
|
|||||||
- dos2unix
|
- dos2unix
|
||||||
- cpanminus
|
- cpanminus
|
||||||
- libgd-dev
|
- libgd-dev
|
||||||
- libpcre3
|
- libpcre3
|
||||||
- libpcre3-dev
|
- libpcre3-dev
|
||||||
- mercurial
|
- mercurial
|
||||||
- libpq-dev
|
- libpq-dev
|
||||||
install:
|
install:
|
||||||
- sudo cpanm --notest Test::Nginx IPC::Run3 > build.log 2>&1 || (cat build.log && exit 1)
|
- sudo cpanm --notest Test::Nginx IPC::Run3 > build.log 2>&1 || (cat build.log && exit 1)
|
||||||
|
23
patches/patch.2021.resolver.txt
Normal file
23
patches/patch.2021.resolver.txt
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
diff --git src/core/ngx_resolver.c src/core/ngx_resolver.c
|
||||||
|
--- src/core/ngx_resolver.c
|
||||||
|
+++ src/core/ngx_resolver.c
|
||||||
|
@@ -4008,15 +4008,15 @@ done:
|
||||||
|
n = *src++;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
+ if (dst != name->data) {
|
||||||
|
+ *dst++ = '.';
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
ngx_strlow(dst, src, n);
|
||||||
|
dst += n;
|
||||||
|
src += n;
|
||||||
|
|
||||||
|
n = *src++;
|
||||||
|
-
|
||||||
|
- if (n != 0) {
|
||||||
|
- *dst++ = '.';
|
||||||
|
- }
|
||||||
|
}
|
||||||
|
|
||||||
|
if (n == 0) {
|
1424
t/000-sanity.t
1424
t/000-sanity.t
File diff suppressed because it is too large
Load Diff
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
PCRE=pcre-8.44
|
PCRE=pcre-8.44
|
||||||
ZLIB=zlib-1.2.11
|
ZLIB=zlib-1.2.11
|
||||||
OPENSSL=openssl-1.1.1g
|
OPENSSL=openssl-1.1.1k
|
||||||
JOBS=12
|
JOBS=8
|
||||||
|
|
||||||
# wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
|
# wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
|
||||||
# wget http://zlib.net/zlib-1.2.11.tar.gz
|
# wget http://zlib.net/zlib-1.2.11.tar.gz
|
||||||
|
45
util/configure
vendored
45
util/configure
vendored
@ -739,51 +739,6 @@ _END_
|
|||||||
$luajit_xcflags .= " -DLUAJIT_DISABLE_GC64";
|
$luajit_xcflags .= " -DLUAJIT_DISABLE_GC64";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$user_luajit_xcflags
|
|
||||||
|| $user_luajit_xcflags !~ /-msse4\.2\b/)
|
|
||||||
{
|
|
||||||
# check -msse4.2
|
|
||||||
my ($out, $cfile) = tempfile("resty-config-XXXXXX",
|
|
||||||
SUFFIX => '.c', TMPDIR => 1,
|
|
||||||
UNLINK => 1);
|
|
||||||
|
|
||||||
print $out "
|
|
||||||
int main(void) {
|
|
||||||
#ifndef __SSE4_2__
|
|
||||||
# error SSE 4.2 not found
|
|
||||||
#endif
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
";
|
|
||||||
close $out;
|
|
||||||
|
|
||||||
my $ofile = tmpnam();
|
|
||||||
my $comp = ($cc || 'cc');
|
|
||||||
my $found;
|
|
||||||
|
|
||||||
if (system("$comp -o $ofile -msse4.2 -c $cfile") == 0
|
|
||||||
&& -s $ofile)
|
|
||||||
{
|
|
||||||
unlink $ofile;
|
|
||||||
|
|
||||||
if (system("$comp -o $ofile -march=native -c $cfile") == 0
|
|
||||||
&& -s $ofile)
|
|
||||||
{
|
|
||||||
print "INFO: found -msse4.2 in $comp.\n";
|
|
||||||
$found = 1;
|
|
||||||
$luajit_xcflags .= " -msse4.2";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (-f $ofile) {
|
|
||||||
unlink $ofile;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$found) {
|
|
||||||
print "WARNING: -msse4.2 not supported in $comp.\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($platform eq 'macosx') {
|
if ($platform eq 'macosx') {
|
||||||
# to work around a bug in the Xcode toolchain in macOS 11.15:
|
# to work around a bug in the Xcode toolchain in macOS 11.15:
|
||||||
# https://github.com/openresty/homebrew-brew/issues/10
|
# https://github.com/openresty/homebrew-brew/issues/10
|
||||||
|
@ -469,6 +469,16 @@ else
|
|||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
answer=`$root/util/ver-ge "$main_ver" 0.6.18`
|
||||||
|
if [ "$answer" = "Y" ]; then
|
||||||
|
answer=`$root/util/ver-ge "$main_ver" 1.20.1`
|
||||||
|
if [ "$answer" = "N" ]; then
|
||||||
|
echo "$info_txt applying the patch for nginx security advisory (CVE-2021-23017)"
|
||||||
|
patch -p0 < $root/patches/patch.2021.resolver.txt || exit 1
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo "$info_txt applying the upstream_timeout_fields patch for nginx"
|
echo "$info_txt applying the upstream_timeout_fields patch for nginx"
|
||||||
patch -p1 < $root/patches/nginx-$main_ver-upstream_timeout_fields.patch || exit 1
|
patch -p1 < $root/patches/nginx-$main_ver-upstream_timeout_fields.patch || exit 1
|
||||||
echo
|
echo
|
||||||
@ -555,7 +565,7 @@ mv openresty-drizzle-nginx-module-* drizzle-nginx-module-$ver || exit 1
|
|||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=0.10.18rc3
|
ver=0.10.19
|
||||||
$root/util/get-tarball "https://github.com/openresty/lua-nginx-module/archive/v$ver.tar.gz" -O lua-nginx-module-$ver.tar.gz || exit 1
|
$root/util/get-tarball "https://github.com/openresty/lua-nginx-module/archive/v$ver.tar.gz" -O lua-nginx-module-$ver.tar.gz || exit 1
|
||||||
tar -xzf lua-nginx-module-$ver.tar.gz || exit 1
|
tar -xzf lua-nginx-module-$ver.tar.gz || exit 1
|
||||||
mv lua-nginx-module-$ver ngx_lua-$ver || exit 1
|
mv lua-nginx-module-$ver ngx_lua-$ver || exit 1
|
||||||
@ -569,7 +579,7 @@ mv openresty-lua-upstream-nginx-module-* ngx_lua_upstream-$ver || exit 1
|
|||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=0.0.9rc3
|
ver=0.0.9
|
||||||
$root/util/get-tarball "https://github.com/openresty/stream-lua-nginx-module/tarball/v$ver" -O stream-lua-nginx-module-$ver.tar.gz || exit 1
|
$root/util/get-tarball "https://github.com/openresty/stream-lua-nginx-module/tarball/v$ver" -O stream-lua-nginx-module-$ver.tar.gz || exit 1
|
||||||
tar -xzf stream-lua-nginx-module-$ver.tar.gz || exit 1
|
tar -xzf stream-lua-nginx-module-$ver.tar.gz || exit 1
|
||||||
mv openresty-stream-lua-nginx-module-* ngx_stream_lua-$ver || exit 1
|
mv openresty-stream-lua-nginx-module-* ngx_stream_lua-$ver || exit 1
|
||||||
@ -668,7 +678,7 @@ mv openresty-redis2-nginx-module-* redis2-nginx-module-$ver || exit 1
|
|||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=0.27rc4
|
ver=0.27
|
||||||
$root/util/get-tarball "https://github.com/openresty/resty-cli/tarball/v$ver" -O resty-cli-$ver.tar.gz || exit 1
|
$root/util/get-tarball "https://github.com/openresty/resty-cli/tarball/v$ver" -O resty-cli-$ver.tar.gz || exit 1
|
||||||
tar -xzf resty-cli-$ver.tar.gz || exit 1
|
tar -xzf resty-cli-$ver.tar.gz || exit 1
|
||||||
mv openresty-resty-cli-* resty-cli-$ver || exit 1
|
mv openresty-resty-cli-* resty-cli-$ver || exit 1
|
||||||
@ -683,7 +693,7 @@ mv openresty-opm-* opm-$ver || exit 1
|
|||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=2.1-20201012-2
|
ver=2.1-20201027
|
||||||
$root/util/get-tarball "https://github.com/openresty/luajit2/archive/v$ver.tar.gz" -O "LuaJIT-$ver.tar.gz" || exit 1
|
$root/util/get-tarball "https://github.com/openresty/luajit2/archive/v$ver.tar.gz" -O "LuaJIT-$ver.tar.gz" || exit 1
|
||||||
tar -xzf LuaJIT-$ver.tar.gz || exit 1
|
tar -xzf LuaJIT-$ver.tar.gz || exit 1
|
||||||
mv luajit2-* LuaJIT-$ver || exit 1
|
mv luajit2-* LuaJIT-$ver || exit 1
|
||||||
@ -748,7 +758,7 @@ mv openresty-lua-resty-redis-* lua-resty-redis-$ver || exit 1
|
|||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=0.23rc1
|
ver=0.23
|
||||||
$root/util/get-tarball "https://github.com/openresty/lua-resty-mysql/tarball/v$ver" -O "lua-resty-mysql-$ver.tar.gz" || exit 1
|
$root/util/get-tarball "https://github.com/openresty/lua-resty-mysql/tarball/v$ver" -O "lua-resty-mysql-$ver.tar.gz" || exit 1
|
||||||
tar -xzf lua-resty-mysql-$ver.tar.gz || exit 1
|
tar -xzf lua-resty-mysql-$ver.tar.gz || exit 1
|
||||||
mv openresty-lua-resty-mysql-* lua-resty-mysql-$ver || exit 1
|
mv openresty-lua-resty-mysql-* lua-resty-mysql-$ver || exit 1
|
||||||
@ -792,7 +802,7 @@ cd ..
|
|||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=0.08rc1
|
ver=0.08
|
||||||
$root/util/get-tarball "https://github.com/openresty/lua-resty-websocket/tarball/v$ver" -O "lua-resty-websocket-$ver.tar.gz" || exit 1
|
$root/util/get-tarball "https://github.com/openresty/lua-resty-websocket/tarball/v$ver" -O "lua-resty-websocket-$ver.tar.gz" || exit 1
|
||||||
tar -xzf lua-resty-websocket-$ver.tar.gz || exit 1
|
tar -xzf lua-resty-websocket-$ver.tar.gz || exit 1
|
||||||
mv openresty-lua-resty-websocket-* lua-resty-websocket-$ver || exit 1
|
mv openresty-lua-resty-websocket-* lua-resty-websocket-$ver || exit 1
|
||||||
@ -825,7 +835,7 @@ cd ..
|
|||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
ver=0.1.20rc2
|
ver=0.1.21
|
||||||
$root/util/get-tarball "https://github.com/openresty/lua-resty-core/tarball/v$ver" -O "lua-resty-core-$ver.tar.gz" || exit 1
|
$root/util/get-tarball "https://github.com/openresty/lua-resty-core/tarball/v$ver" -O "lua-resty-core-$ver.tar.gz" || exit 1
|
||||||
tar -xzf lua-resty-core-$ver.tar.gz || exit 1
|
tar -xzf lua-resty-core-$ver.tar.gz || exit 1
|
||||||
mv openresty-lua-resty-core-* lua-resty-core-$ver || exit 1
|
mv openresty-lua-resty-core-* lua-resty-core-$ver || exit 1
|
||||||
|
Reference in New Issue
Block a user