[Slackbuilds-users] luarocks handling multiple lua versions installed
B. Watson
urchlay at slackware.uk
Tue Jan 20 23:20:12 UTC 2026
On Mon, 19 Jan 2026, Evandro Alves Rodrigues wrote:
> I'm the luarocks mantainer, finally got some freetime from work and I intend to upgrade my packages, but i've got a question on how to handle multiple lua versions.
> From what I could gather, slackbuilds kinda estandardize on Lua 5.4.x as the default, but Luajit (5.1.x compatible only) is still available. So how do you prefer to
> solve this? I've got a prototype script here that can detect available versions and generate a luarocks-version file for each interpreter found, but i'm kinda
> uncertain about this approach.
Looking at the luarocks slackbuild, it already handles the case
where lua (5.4.x) and lua51 (5.1.x) are both installed. It has
REQUIRES="lua", and it autodetects lua51.
I didn't add luajit support, but it would be doable. Is it really
necessary though?
There shouldn't be 3 separate luarocks builds for the 3 possible lua
versions. We don't need the overhead.
More information about the SlackBuilds-users
mailing list