On 27 June 2013 15:12, Tomas Guisasola Gorham <to...@tecgraf.puc-rio.br> 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".

Thanks!

-- 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
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to