Bug#878132: uses deprecated Lua luaL_reg (vs. luaL_Reg)

Markus Koschany apo at debian.org
Tue Oct 10 11:48:18 UTC 2017


Am 10.10.2017 um 11:49 schrieb Ondřej Surý:
> Package: src:minetest
> Version: 0.4.16+repack-4
> Severity: serious
> Tags: upstream
> 
> Dear maintainer(s),
> 
> your package uses deprecated Lua API, see:
> 
> http://lua-users.org/wiki/CompatibilityWithLuaFive
> 
>> ### Defining a list of CFunctions (Lua 5.0)
> 
>> luaL_reg (Lua 5.0) changed its name to luaL_Reg since Lua 5.1. This
>> could be solved with conditional compilation:
> 
>> #if !defined LUA_VERSION_NUM
>> /* Lua 5.0 */
>> #define luaL_Reg luaL_reg
>> #endif
> 
> As luajit 2.1 has removed the compatibility #defines, this might break
> your code.  Please update the code to use Lua 5 type (luaL_Reg).  Also
> please note that Lua 5.1 has been released in 2006 ;).

Hi Ondrej,

I'm a bit surprised at the moment. What exactly is your justification
for RC severity and where did you see the deprecated API? Please note
that minetest was already rebuilt against luajit 2.1 and the code uses
luaL_Reg everywhere.

Regards,

Markus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20171010/903b5d95/attachment.sig>


More information about the Pkg-games-devel mailing list