On Nov 26, 2025, at 12:43 PM, Ben Greear <greearb@xxxxxxxxxxxxxxx> wrote:
> Lua release nums are same on both F34 and F36. F36 has two arguments. I diffed the lua.h on F34 and F36, only difference
> is that extra argument in that one method on F36.
>
> Lua just broke their versioning,
So they broke the API *and* version numbering.
(Either that, or the Lua developers broke the API and the Red Hat/Fedora crew broke the version numbering by tweaking the headers.)
> I guess cmake might could hack something together,
Yes, that's probably the only answer.
> but I don't know anything about how to do that
It'd be something such as adding
if (LUA_FOUND)
check_c_source_compiles(
"
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
int
main(void)
{
lua_state state;
return lua_resetthread(&state, NULL);
}
"
HAVE_TWO_ARGUMENT_LUA_RESETTHREAD)
to ConfigureChecks.cmake, adding
#cmakedefine HAVE_TWO_ARGUMENT_LUA_RESETTHREAD 1
to cmakeconfig.h.in, and using that #ifdef.
> and probably not worth the effort.
Maybe, but build process stuff that doesn't Just Work annoys me, so I may give it a try. (I'll have to set up Fedora 34 and Fedora 36 VMs; I have a bunch, including 31 and 38, but nothing in between.)