diff --git a/src/deps/src/lua-resty-signal/.travis.yml b/src/deps/src/lua-resty-signal/.travis.yml index f1a77323a..22d9fe56e 100644 --- a/src/deps/src/lua-resty-signal/.travis.yml +++ b/src/deps/src/lua-resty-signal/.travis.yml @@ -1,5 +1,9 @@ sudo: required -dist: xenial +dist: focal + +branches: + only: + - "master" os: linux @@ -7,7 +11,6 @@ language: c compiler: - gcc - - clang env: global: @@ -18,7 +21,7 @@ env: - LUAJIT_INC=$LUAJIT_PREFIX/include/luajit-2.1 - LD_LIBRARY_PATH=$LUAJIT_LIB:$LD_LIBRARY_PATH matrix: - - NGINX_VERSION=1.19.3 + - NGINX_VERSION=1.27.0 install: - sudo apt-get install -qq -y cpanminus axel @@ -40,7 +43,7 @@ script: - cd .. - export PATH=$PWD/work/nginx/sbin:$PWD/nginx-devel-utils:$PATH - export NGX_BUILD_CC=$CC - - ngx-build $NGINX_VERSION --with-http_realip_module --add-module=../ndk-nginx-module --add-module=../lua-nginx-module --with-debug > build.log 2>&1 || (cat build.log && exit 1) + - ngx-build $NGINX_VERSION --without-pcre2 --with-http_realip_module --add-module=../ndk-nginx-module --add-module=../lua-nginx-module --with-debug > build.log 2>&1 || (cat build.log && exit 1) - nginx -V - ldd `which nginx`|grep -E 'luajit|ssl|pcre' - - prove -r t + - prove -I. -r t diff --git a/src/deps/src/lua-resty-signal/lib/resty/signal.lua b/src/deps/src/lua-resty-signal/lib/resty/signal.lua index ad11596c1..a1af15abc 100644 --- a/src/deps/src/lua-resty-signal/lib/resty/signal.lua +++ b/src/deps/src/lua-resty-signal/lib/resty/signal.lua @@ -1,5 +1,5 @@ local _M = { - version = 0.03 + version = 0.04 } @@ -32,6 +32,10 @@ do local i = 1 for k, _ in string_gmatch(cpath, "[^;]+") do + if k == "?.so" then + k = "./" + end + local fpath = string_match(k, "(.*/)") fpath = fpath .. so_name -- Don't get me wrong, the only way to know if a file exist is