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

Jérémy Lal kapouer at melix.org
Thu Jul 28 14:49:39 BST 2022


Le jeu. 28 juil. 2022 à 15:40, Jan Mojzis <jan.mojzis at gmail.com> a écrit :

>
> On 27. 7. 2022, at 16:24, Jérémy Lal <kapouer at melix.org> wrote:
>
> (fixed reply style to the bottom)
>
>
>> Le mer. 27 juil. 2022 à 16:17, Jan Mojzis <jan.mojzis at gmail.com> a
>> écrit :
>>
>> On 27. 7. 2022, at 10:22, Jérémy Lal <kapouer at melix.org> wrote:
>>
>>
>>
>> Le mer. 27 juil. 2022 à 09:57, Jan Mojzis <jan.mojzis at gmail.com> a
>> écrit :
>>
>>> Hi,
>>> https://salsa.debian.org/lua-team/lua-resty-lrucache
>>> is also ready.
>>>
>>>
>> Everything looks good to me, except that it doesn't run the tests.
>> I think we need to package
>> https://metacpan.org/pod/Test::Nginx#DEBIAN-PACKAGES
>>
>> and see how it goes from there ? Do you mind ?
>>
>> Hello,
>> the test is too complicated and will not be easy to run it.
>> There are more problems than only Test:Nginx missing perl package.
>> There is problem in module Test:Nginx itself.
>> Here I made autopkg test for it:
>> https://salsa.debian.org/lua-team/lua-resty-lrucache/-/jobs/3042172
>> and fails to run nginx:
>> ~~~
>> nginx: [emerg] unknown directive "lua_package_path" in
>> /tmp/autopkgtest-lxc.fumlyung/downtmp/build.CCv/src/t/servroot/conf/nginx.conf:25
>> nginx: [emerg] unknown directive "lua_package_path" in
>> /tmp/autopkgtest-lxc.fumlyung/downtmp/build.CCv/src/t/servroot/conf/nginx.conf:25
>> ...
>> ~~~
>>
>
> That's normal, these tests require libnginx-mod-http-lua to be installed
> alongside nginx
>
> 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.

Jérémy


More information about the pkg-lua-devel mailing list