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]. IMHO, rocks with "lua >= 5.1" should be updated to "lua == 5.1" when not compatible with lua 5.2.

Happy hacking,

  Cyril

[1] it actually returns the following error :
----------8<----------8<-------------
/usr/share/lua/5.2/luarocks/loader.lua:113: error loading module 'random' from file '/home/me/.luarocks/lib/lua/5.2/random.so': /home/me/.luarocks/lib/lua/5.2/random.so: undefined symbol: luaL_register
----------8<----------8<-------------

package = "lrandom"
version = "20120430-1"
source = {
   url = "http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.2/lrandom.tar.gz";,
   md5 = "db145615058fd6729c01a59c45397eca",
   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.2"
}
build = {
   type = "builtin",
   modules = {
      random = "lrandom.c"
   }
}
------------------------------------------------------------------------------
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