Wireshark-dev: [Wireshark-dev] Re: Broken build on F36, lua related

From: John Thacker <johnthacker@xxxxxxxxx>
Date: Wed, 26 Nov 2025 11:19:36 -0500
On Wed, Nov 26, 2025 at 10:50 AM John Thacker <johnthacker@xxxxxxxxx> wrote:

Unfortunately, Lua doesn't have a great way to determine the patch level release (LUA_VERSION_NUM only gives the major and minor release numbers) to determine that you're running precisely 5.4.6 or later, which is where `lua_closethread` is available. Luckily the "deprecation" isn't actually enforced. As a comment in the code in `epan/wslua/init_wslua.c` notes, the plan is to use an ifdef by the time Lua 5.5 is released (where they may, or may not, actually deprecate it for real.).

Lua 5.4 has LUA_VERSION_RELEASE_NUM (Lua 5.3 has the release number only separate or as a string) which makes it easier to check. I'm not particularly interested in fixing the issue for one broken release of Lua, but if you really have to get it running on that version it's not too hard to patch that file.