[pkg-lua-devel] lua-resty-{core,lrucache} packages

Jérémy Lal kapouer at melix.org
Thu Jul 28 16:23:52 BST 2022


Le jeu. 28 juil. 2022 à 15:49, Jérémy Lal <kapouer at melix.org> a écrit :

>
>
> Le jeu. 28 juil. 2022 à 15:40, Jan Mojzis <jan.mojzis at gmail.com> a écrit :
>
>>
>> Hello,
>> https://salsa.debian.org/lua-team/lua-resty-lrucache
>> has an autopkg test that run the original tests.
>> And works.
>>
>
> Cool.
> Mind that these embedded perl files need to appear in debian/copyright:
> debian/tests/perl/Test-Nginx-0.30/*
>
> But lua-resty-core tests has still problems:
>> https://salsa.debian.org/lua-team/lua-resty-core/-/jobs/3045933
>> It doesn't even work against openresty nginx.
>>
>
> For one, lua-resty-core needs libluajit2-5.1 package, not libluajit-5.1.
>

There are several other small issues:
- poll -> epoll
- mockeagain.so is missing... it comes from
https://github.com/openresty/mockeagain
- tests should depend on libluajit2-5.1-2, libnginx-mod-http-echo
- hence TEST_NGINX_LOAD_MODULES must contain also
"/usr/lib/nginx/modules/ngx_http_echo_module.so"
- put a debian/tests/openssl.cnf file with this in it:

.include /etc/ssl/openssl.cnf
[ssl_sect]
system_default = system_legacy_sect
[system_legacy_sect]
CipherString = DEFAULT:@SECLEVEL=1

and then in debian/tests/test
export OPENSSL_CONF=./debian/tests/openssl.cnf

- last but not least, now you get an error
init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module
0.10.21 required
Because current version of http-lua in nginx is 0.10.20 -> either downgrade
lua-resty-core to a compatible version,
or ask debian nginx maintainers if it's ok to upgrade http-lua...

Jérémy

>


More information about the pkg-lua-devel mailing list