Am 09.06.2013 17:36 schröbte cyril Romain:
Hi,

Hi!


Here is the rockspec file of lrandom for lua5.2.
It is an update of the existing rockspec but with lua >= 5.2 dependency,
version updated (and md5 of course).

Although the currently available lrandom-20101118-1.src.rock has the
"lua >= 5.1" dependency, it actually fails to be loaded by lua5.2, even
when installed with luarocks run by lua-5.2 and configured to fill a 5.2
tree [1].

The 5.1 version also works for Lua 5.2 if compiled with LUA_COMPAT_MODULE. I have attached a modified rockspec ...
(Btw., it seems that the md5sum changed!)

IMHO, rocks with "lua >= 5.1" should be updated to "lua == 5.1" when not
compatible with lua 5.2.

You can submit a corrected rockspec yourself[1] (whole discussion here[2]).

  [1]: http://permalink.gmane.org/gmane.comp.lang.lua.luarocks/4147
  [2]: http://comments.gmane.org/gmane.comp.lang.lua.luarocks/4112


Happy hacking,

   Cyril


Philipp


package="lrandom"
version="20130609-1"
source = {
   url = "http://www.tecgraf.puc-rio.br/~lhf/ftp/lua//5.1/lrandom.tar.gz";,
   md5="ab8f9cc2d84435ea7c759ca29837a223",
   dir = "random"
}
description = {
   summary = "A library for generating random numbers.",
   detailed = [[
      A library for generating random numbers based on the Mersenne Twister,
      a pseudorandom number generating algorithm developped by Makoto Matsumoto
      and Takuji Nishimura (alphabetical order) in 1996/1997.
   ]],
   homepage = "http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lrandom";,
   license = "Public domain"
}
dependencies = {
   "lua >= 5.1, <= 5.2"
}

build = {
   type = "builtin",
   modules = {
      random = {
        sources = { "lrandom.c" },
        defines = { "LUA_COMPAT_MODULE=1" }
      }
   }
}
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to