FS#61986 - [luarocks] 3.0.4-2 Can't install Lua5.1 and Lua5.2 rocks

Attached to Project: Community Packages
Opened by Jacek Jaszczuk (padowan) - Tuesday, 12 March 2019, 17:05 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 13 March 2019, 21:22 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Hi,
In version 3.0.4-2 package luarocks replace two old packages luarocks5.1 and luarocks5.2.

New package have this config files:
etc/luarocks/config-5.1.lua
etc/luarocks/config-5.2.lua
etc/luarocks/config-5.3.lua

But it seems that luarocks 3.0.4-2 can't use config-5.1.lua or config-5.2.lua.
So I can't install anythings that require lua5.1 or lua5.2. For example when I install lapis I get:
'
padowan@arch ~> sudo luarocks install lapis
Error: lapis supports only Lua 5.1 and Lua 5.4 but not Lua 5.3.
'

Default configuration file is:
'
padowan@arch ~> luarocks
***
CONFIGURATION
Lua version: 5.3
Configuration files:
System : /etc/luarocks/config-5.3.lua (ok)
***
'
and I can't find option to change it.

When I install version 3.0.4-1 of luarocks, luarocks5.1 and luarocks5.2 packages everythings looks fine:
'
padowan@arch ~> sudo luarocks-5.1 install lapis
Installing https://luarocks.org/lapis-1.7.0-1.src.rock
***
lapis 1.7.0-1 is now installed in /usr (license: MIT)
'

Additional info:
* luarocks 3.0.4-2
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 13 March 2019, 21:22 GMT
Reason for closing:  Not a bug
Comment by Levente Polyak (anthraxx) - Wednesday, 13 March 2019, 08:22 GMT
There is nothing like luarocks5.2 and luarocks5.1, those are old packages, luarocks itself handles any lua version by just passing the appropriate options to it.
uninstall the two old packages as they are in no repository anymore
Comment by Jacek Jaszczuk (padowan) - Wednesday, 13 March 2019, 17:40 GMT
Thank you for your reply.
Yes, you are right. I can use lua-version option to do this:
'
padowan@arch ~> sudo luarocks --lua-version 5.1 install lapis
Installing https://luarocks.org/lapis-1.7.0-1.src.rock
lapis 1.7.0-1 is now installed in /usr (license: MIT)
'
Everythings works.
I am sorry for the confusion.

Loading...