On 27 June 2013 16:34, Hisham <[email protected]> wrote: > On 27 June 2013 15:12, Tomas Guisasola Gorham <[email protected]> > wrote: >> Hi Hisham >> >> Please, upload the attached rockspec. It is for the new version >> of lpdf Luiz Henrique had just released. >> I'd like to make a question. There is a rockspec (20070717-3) >> which should be used to install lpdf for Lua 5.1, although the file I am >> sending points to another source file for Lua 5.2. My question is: how >> one would know that? Supposing I know that, how would I tell LuaRocks >> to install a 5.1-compatible version or a 5.2-compatible version? > > The next version of LuaRocks (currently in git) is able to handle > that. It downloads the correct manifest from the server (manifest-5.1 > or manifest-5.2) depending on the Lua version you're running. My plan > is to make a new release of LuaRocks next week. > >> In fact, the mentioned rockspec have a bug in its dependencies, >> since that source version is not compatible with "lua >= 5.1". It should >> be "lua = 5.1" to be fair. I am using "lua = 5.2" for the new version >> I am sending you. > > There is a special operator "~>" to handle all versions in a range > (ie, "lua ~> 5.2" for all 5.2.x) -- For Lua specifically it is not > necessary because Lua's _VERSION declares only x.y (so "lua = 5.2" > works), but in any case I think it would be good documentation. I'll > upload a new revision of 20070717 with "lua ~> 5.1" and your new one > with "lua ~> 5.2".
Correction: when writing a new revision for the Lua 5.1 rock, I realized that there is a new version of lpdf for Lua 5.1 as well, so instead I'm uploading them as 20130627.51 and 20130627.52. (The same idea applies: the next release of LuaRocks will pick the correct one.) -- Hisham http://hisham.hm/ ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Luarocks-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
