I apoligize I was thinking Lua deps not PCRE.

However, I did more digging. OpenResty has been on NGINX cofe version 1.21.4 
for the longest time.  They do not have PCRE2 support in their system.  As this 
is an OpenResty-originating module the 4th requirement as stated in the linked 
GitHub issue is not met.

I would not be so sure that "next update" will have a fix if OpenResty core 
does not support PRCE2 (1.21.5 nginx introduced PCRE2 core requirement/build 
fixes, OpenResty never inccuded that).  The reason PCRE3 is still used here in 
the Lua module is the custom workaround of mixing PCRE2 nginx and PCRE3 Lua 
which use different build flags at compile time with the linking options.

Therefore, we need to not make assumptions and watch this closely.  If there is 
not movement in a reasonable time period, then we may have to drop this module 
from Debian due to PCRE3 being obsolete.

Note also GH issue https://github.com/openresty/lua-nginx-module/issues/1984 
which has been asking for PCRE2 support for *years* now with no movement - this 
seems to be related and explains the 1.21.4 nginx lock on the OpenResty fork as 
one hurdle (a major one).


Thomas



Sent from my Galaxy



-------- Original message --------
From: Jérémy Lal <kapo...@melix.org>
Date: 8/29/23 05:16 (GMT-05:00)
To: Thomas Ward <tew...@ubuntu.com>, 1050...@bugs.debian.org
Cc: Bastian Germann <b...@debian.org>
Subject: Re: [Pkg-nginx-maintainers] Bug#1050186: Bug#1050186: 
libnginx-mod-http-lua: depends on obsolete pcre3 library

Le lun. 21 août 2023 à 19:09, Thomas Ward 
<tew...@thomas-ward.net<mailto:tew...@thomas-ward.net>> a écrit :
Bastian:

As I understand the module, for over a year now the latest Lua module
from OpenResty requires LuaJIT to actually compile.  See
https://salsa.debian.org/nginx-team/libnginx-mod-http-lua/-/blob/main/debian/control#L8
where this is in the build deps.

I have not tested removing the PCRE3 build dependency here, but because
OpenResty has refused to change the Lua library to be any Lua support
other than 5.1, it requires LuaJIT in order to provide 'continued
support' for Lua 5.1 bytecode.

These comments have no relation with this bug report.

It is my understanding that the pcre2/pcre3 dependency may not be
needed, but I have not deep dived into the Lua packaging recently.  I'm
running a test build from the tagged data in Salsa locally to see if it
builds without the pcre2/pcre3 devel libraries in build-deps.

pcre3 is *needed* by libnginx-mod-http-lua, which doesn't support pcre2 yet.
However someone involved worked on it a few days ago:
https://github.com/openresty/lua-nginx-module/pull/2221

so hopefully the situation will resolve itself in next update.

Jérémy

Reply via email to