In order for Gentoo Linux to properly support side-by-side installation of different versions of Lua (including LuaJIT), please migrate this package as to lua.eclass (for packages which should support multiple Lua implementations at the same time, i.e. most likely Lua modules) or lua-single.eclass (for packages which only have to support one Lua implementation at a time). For details, consult documentation of respective eclasses as well as already-migrated ebuilds in the tree. Please note that since slotted dev-lang/lua is currently masked, your migrated ebuilds should be masked as well. There is a section of package.mask, created in September 2020, which you can use for this purpose so that it will be easier in the future to unmask them all in one go. Thank you in advance for your effort!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d903986eb9894fad0924b485402376cdbd7c4ca commit 0d903986eb9894fad0924b485402376cdbd7c4ca Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2020-11-30 00:14:45 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2020-11-30 00:16:00 +0000 dev-lua/luarocks: bump to version 3.4.0, migrate to lua eclass Closes: https://bugs.gentoo.org/590474 Closes: https://bugs.gentoo.org/752654 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> dev-lua/luarocks/Manifest | 1 + dev-lua/luarocks/luarocks-3.4.0-r100.ebuild | 61 ++++++++++++++++++++++++++++ dev-lua/luarocks/luarocks-3.4.0.ebuild | 63 +++++++++++++++++++++++++++++ dev-lua/luarocks/metadata.xml | 4 ++ profiles/package.mask | 1 + 5 files changed, 130 insertions(+)
Unfortunately dev-lua/luarocks-3.4.0-r100 fails to emerge on a clean system, regardless of the value of LUA_SINGLE_TARGET, if tests are disabled - src_configure fails with e.g. Bad value for --with-lua-lib: /usr/lib64/lua/5.1 is not a valid directory. It seems that the upstream configure script checks if the relevant cmod dir exists, and on a clean system it will only if Busted and friends have been pulled in by FEATURES=test.
Fixed by b81bdfbd427e687819f919847dbed2827bc7515e, thanks again ConiKost!