#299 Lua 5.2 support in C modules (util-src/*.c)

Reporter florob@babelmonkeys.de
Owner MattJ
Created
Updated
Stars ★ (1)
Tags
  • Status-Fixed
  • Milestone-0.9
  • OpSys-All
  • Type-Enhancement
  1. florob@babelmonkeys.de on

    The attached patch adds baseline support for Lua 5.2, while maintaining compatibility with Lua 5.1. Since luaL_register() (in C) and module() (in Lua) are still used, this requires a Lua 5.2 compiled with LUA_COMPAT_MODULE defined in luaconf.h.

    Attachments
  2. MattJ on

    Changes
    • tags Type-Enhancement OpSys-All Status-Accepted
    • owner MattJ
  3. MattJ on

    Changes
    • tags Milestone-0.9
  4. MattJ on

    Thanks!

    Changes
    • tags Status-Fixed
  5. schmittlauch on

    Does this mean it is possible to use prosody with lua-5.2? Asking for a Gentoo-bug lying around unresolved since 2012.

  6. MattJ on

    Hey, Lua 5.2 support is in the 0.10 branch, however it has had limited testing. Therefore we're not planning on officially supporting it for the 0.10 release. However it is certainly an option for those that need it, and we'd welcome any feedback and bug reports related to running under 5.2. We still recommend that (stable) packages should stay with Lua 5.1 until the next major release (after 0.10).

  7. Zash on

    This refers to the C code, not overall Lua 5.2 support in the rest of the (Lua) codebase.

    Changes
    • title Lua 5.2 support Lua 5.2 support in C modules (util-src/*.c)

New comment

Not published. Used for spam prevention and optional update notifications.