[MacPorts] #40423: luarocks @2.0.13_2 is broken when Lua 5.1 is installed
#40423: luarocks @2.0.13_2 is broken when Lua 5.1 is installed ------------------------+-------------------------------- Reporter: agladysh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: luarocks ------------------------+-------------------------------- LuaRocks code is installed to /opt/local/share/lua/5.2, but it looks it up in /5.1. Lua 5.2 it is a different language, not fully compatible with 5.1. It should not be treated as a package upgrade. Lua 5.2 at this moment lacks widespread module support of 5.1. One should be able to keep both versions of the language in the system. See also #40421 -- Ticket URL: <https://trac.macports.org/ticket/40423> MacPorts <http://www.macports.org/> Ports system for OS X
#40423: luarocks @2.0.13_2 is broken when Lua 5.1 is installed -------------------------+-------------------------- Reporter: agladysh@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: luarocks | -------------------------+-------------------------- Changes (by and.damore@…): * status: new => assigned * owner: macports-tickets@… => and.damore@… * cc: and.damore@…, agladysh@… (removed) Comment: You don't need to add yourself as CC recipient. When there's only one maintainer assign the ticket to him. I'll look into this, we talked about this on mailing list, IIRC. I don't know if both 5.1 and 5.2 can coexist so this may end in having a conflict between the two ports. -- Ticket URL: <https://trac.macports.org/ticket/40423#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40423: luarocks @2.0.13_2 is broken when Lua 5.1 is installed -------------------------+-------------------------- Reporter: agladysh@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: luarocks | -------------------------+-------------------------- Comment (by agladysh@…): FWIW I believe that 5.1 and 5.2 can coexist on Debian (but can be wrong). Anyway, 5.1 will be around for a long time, do not remove it. -- Ticket URL: <https://trac.macports.org/ticket/40423#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#40423: luarocks @2.0.13_2 is broken when Lua 5.1 is installed -------------------------+-------------------------- Reporter: agladysh@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: luarocks | -------------------------+-------------------------- Comment (by and.damore@…): Can you explain what do you mean with "it looks it up in /5.1", i.e. can you detail what the bug is and the steps to reproduce it? -- Ticket URL: <https://trac.macports.org/ticket/40423#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#40423: luarocks @2.0.13_2 is broken when Lua 5.1 is installed -------------------------+-------------------------- Reporter: agladysh@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: luarocks | -------------------------+-------------------------- Comment (by agladysh@…): I don't have immediate access to the environment to reproduce that now, but, AFAIR, LuaRocks looks its own code in /opt/local/share/lua/5.1 instead of /opt/local/share/lua/5.2 if lua5.1 is installed. Steps to reproduce: * Install Lua 5.1, uninstall 5.2. * Install LuaRocks * Try to install any rock (e.g. sudo luarocks install luasocket) Tell me if you need more details. -- Ticket URL: <https://trac.macports.org/ticket/40423#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#40423: luarocks @2.0.13_2 is broken when Lua 5.1 is installed -------------------------+-------------------------- Reporter: agladysh@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: luarocks | -------------------------+-------------------------- Comment (by agladysh@…): Note that, IMO, LuaRocks must *not* require 5.2 to be installed, it must use whatever package there is. I, for sure, don't want any 5.2 on my machine. -- Ticket URL: <https://trac.macports.org/ticket/40423#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#40423: luarocks @2.0.13_2 is broken when Lua 5.1 is installed -------------------------+-------------------------- Reporter: agladysh@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: luarocks | -------------------------+-------------------------- Comment (by and.damore@…): Replying to [comment:6 agladysh@…]:
Tell me if you need more details.
Yes, there's need for more details because I installed lua 5.1.4, then luarocks and I was able to install rocks that way: * What outcome did you get? * What were you expecting instead? Port luarocks being installed in $prefix/lib/lua/5.2 even if you have 5.1 is due to the fact that binary packages are built using the latest ports tree so when you install a previous port lua version, like 5.1, and then run ''port install luarocks'' you're fetching a luarocks package that has been built with 5.2 . You also wrote:
but it looks it up in /5.1.
This is most likely just due to the default package.[path|cpath] for lua 5.1 If you're using a local repository for keeping port lua at a previous like I suggested in ticket:40421#comment:11 then you'll have to use ''-s'' option when installing luarocks. This way luarocks will build from source and it will reflect your installed lua version. We cannot possibly support every configuration of mixed previous port versions on users' local repository. -- Ticket URL: <https://trac.macports.org/ticket/40423#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts