lglicua testing is in: Lua 5.5.0-beta is not compatible with LuaRocks-3.12.2

94 views
Skip to first unread message

sur-behoffski

unread,
Jul 9, 2025, 4:47:18 AMJul 9
to lu...@googlegroups.com
G'day,

As promised, I managed to wrangle my test rig into working with the
combination of the Lua 5.5.0-beta sources and the LuaRocks-3.12.2
sources. (Basically this meant adding a 5.5 section to the Lua
identity map, redoing the beta tarball to remove "-beta" both from
the tarball name, and from the top-level contents directory, and
sourcing the tarball from an earlier download, since beta versions
reside in a work area, a different folder (ftp) to the release area.

Building and installing 5.5 did not show any trouble. The build
process covers:

- static, C API;
- static, C++ API,
- dynamic-load (.so), C API; and
- dynamic-load (.so), C++ API,

plus using Debian's "update-alternatives" to install:

- /usr/bin/lua -> /etc/alternatives/lua-interpreter
- /usr/bin/luac -> /etc/alternatives/lua-compiler

- lua-interpreter -> /etc/alternatives/... -> /usr/bin/lua5.5
- lua-compiler -> /etc/alternatives/... -> /usr/bin/luac5.5

--
[As an aside, the "+continue" patch, created for Lua 5.4,
failed when naively tried on 5.5.0 (7 out of 9 changes succeeded,
but the other two failed... this isn't a surprise.]
--

LuaRocks 3.12.2 "configure" script shows lack of Lua 5.5 awareness:

Lines 122:124 [Usage message, 3 lines]:
Where is your Lua interpreter:
--lua-version=VERSION Use specific Lua version: 5.1, 5.2, 5.3, or 5.4
- Default is auto-detected.

Lines 346-368 [partial lua interpreter search, 23 lines]:
# ----------------------------------------
# Search for Lua
# ----------------------------------------

lua_interp_found=no

case "$LUA_VERSION" in
5.1)
names="lua5.1 lua51 lua-5.1 lua-51 luajit lua"
;;
5.2)
names="lua5.2 lua52 lua-5.2 lua-52 lua"
;;
5.3)
names="lua5.3 lua53 lua-5.3 lua-53 lua"
;;
5.4)
names="lua5.4 lua54 lua-5.4 lua-54 lua"
;;
*)
names="lua5.4 lua54 lua-5.4 lua-54 lua5.3 lua53 lua-5.3 lua-53 lua5.2 lua52 lua-5.2 lua-52 lua5.1 lua51 lua-5.1 lua-51 luajit lua"
;;
esac

[More search code, e.g. "$LUA_EXE_SET = "yes", follows, but isn't relevant.]

--------

So, the short version is that LuaRocks hasn't caught up to Lua 5.5 yet.

Incidentally, I use "std.normalize" and "std.strict" as a standard preamble
for my Lua scripts... and 5.5's interaction of "global" and "std.strict"
may be fun...

--------

cheers, s-b etc


Reply all
Reply to author
Forward
0 new messages