Hi all, I'm working on improving support to run LuaRocks with Lua 5.1 and 5.2 on the same machine.
Right now I'm thinking that supporting two installs of LuaRocks in the same machine is the cleanest approach, since the sources should be either in share/lua/5.1/luarocks/ or share/lua/5.2/luarocks/. Having both install means that each would have its own properly configured site_config.lua. I don't think warping things around just to save <500kiB worth of .lua files is worth it. Then it's a matter of solving the other clashes: * the luarocks and luarocks-admin bin entries would use names such as luarocks-5.1, with a symlink 'luarocks -> luarocks-5.1' (or 5.2, whatever is installed last) * LuaRocks will look for config-5.1.lua or config-5.2.lua * likewise, lib/luarocks/rocks will be versioned (probably as lib/luarocks/rocks/5.1 and lib/luarocks/rocks/5.2) The idea is that two consecutive installations, one with './configure --with-lua-version=5.1; make; sudo make install' and then another with './configure --with-lua-version=5.2; make; sudo make install' would do the right thing. Is that too cumbersome? I also initially thought about adding extra checks for backward compatibility with unversioned names (config.lua and lib/luarocks/rocks) but now I think it will bring more confusion than convenience, especially in the case of two parallel installs, one using the original names and another using the new names. It should be possible to convert a local tree to the new names by moving a few files around (no rebuild of installed rocks should be necessary). -- Hisham http://hisham.hm/ ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers