Currently luarocks is only available as lua52-luarocks in pkg (I didn't really find any lua53- packages in the pkg). I understand that it has something to do with luajit, but I'm just wondering if it is possible that we have a lua53-luarocks? I'm not really into Lua, so sorry if this is a newbie question.
> Currently, luarocks is only available as lua52-luarocks in pkg Correct. USES=lua hasn't been flavorized, so lua- ports only generate packages for the default lang/lua* version. > I understand that it has something to do with luajit. luajit isn't supported by USES=lua, so the support is experimental[1]. For now it uses lua51- as package prefix but dependencies that rely on luajit FFI are incompatible with lua51. [1] Added for my Torch7 work but abandoned later due to lack of generic solution. https://github.com/jbeich/freebsd-ports/commits/torch > if it is possible that we have a lua53-luarocks? Try either: $ echo "DEFAULT_VERSIONS += lua=5.3" >>${__MAKE_CONF:-/etc/make.conf} $ make install -C /usr/ports/devel/lua-luarocks or $ make install _LUA_DEFAULT_VERSION=53 -C /usr/ports/devel/lua-luarocks
To pull luarocks as a dependency try: BUILD_DEPENDS= luarocks-${LUA_VER}:devel/lua-luarocks USES= lua:53 The port supports concurrent installation just fine e.g., $ pkg info -x luarocks lua51-luarocks-2.4.4 lua52-luarocks-2.4.4 lua53-luarocks-2.4.4 $ pkg info -lx luarocks | fgrep bin/ /usr/local/bin/luarocks-5.1 /usr/local/bin/luarocks-admin-5.1 /usr/local/bin/luarocks-5.2 /usr/local/bin/luarocks-admin-5.2 /usr/local/bin/luarocks-5.3 /usr/local/bin/luarocks-admin-5.3
(In reply to Jan Beich from comment #2) Thanks! I could see this working. However,
the real solution to the problem is to flavorize USE=lua, is that correct? Do you think it's a question worth raising?
(In reply to Guangyuan Yang from comment #4) Proposed flavorization of USES=lua is at https://reviews.freebsd.org/D16494 Luarocks however would not need it, because luarocks v3 is supposed to be able to handle multiple lua versions from a single installation, so building a single luarocks package (possibly including config files for all supported versions) would suffice. work in progress at https://reviews.freebsd.org/D16274
Resign per ports r477379.
Hello, I'd like to take on maintainership of luarocks if Andrew isn't interested. I'm currently the maintainer for Lua 5.3, which we have successfully updated to 5.3.5.
(In reply to Russell Haley from comment #7) Feel free to include a maintainer change in any diff provided to resolve this issue
any progress on this?
Lua flavorization has landed in the interim and we now even have lua53-luarocks and lua54-luarocks, so I'm closing this as OBE -- a new PR will be needed if we end wanting to just build one luarocks to rule them all in the future.