package/lua-compat53: depends on lua ABI 5.1
authorFrancois Perrad <fperrad@gmail.com>
Tue, 28 Jul 2020 13:21:39 +0000 (15:21 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 8 Aug 2020 16:24:47 +0000 (18:24 +0200)
In preparation for the introduction of Lua 5.4, we need to adjust the
dependency of the lua-compat53 package: it only makes sense when a Lua
5.1-compatible interpreter is available (either Lua 5.1 or LuaJIT). We
use the recently introduced BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1
symbol to achieve this.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/lua-compat53/Config.in
package/lua-http/Config.in

index 76c5b3fd717e6bf02232a326e1e234a73a9c50eb..de468fcf66ee21bbdcc3787883b81dea30f75013 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_LUA_COMPAT53
        bool "lua-compat53"
-       depends on !BR2_PACKAGE_LUA_5_3
+       depends on BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1
        help
          Compatibility module providing Lua-5.3-style APIs for Lua 5.2
          and 5.1.
index cbf71563b05a487acb9013d72a6147f7865f235c..8eefd481b5c330b3ac3a2a0e7a9fc9f9ec12c219 100644 (file)
@@ -4,7 +4,7 @@ config BR2_PACKAGE_LUA_HTTP
        select BR2_PACKAGE_LPEG # runtime
        select BR2_PACKAGE_LUA_BASEXX # runtime
        select BR2_PACKAGE_LUA_BINARYHEAP # runtime
-       select BR2_PACKAGE_LUA_COMPAT53 if !BR2_PACKAGE_LUA_5_3 # runtime
+       select BR2_PACKAGE_LUA_COMPAT53 if BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1 # runtime
        select BR2_PACKAGE_LUA_CQUEUES # runtime
        select BR2_PACKAGE_LUA_FIFO # runtime
        select BR2_PACKAGE_LUA_LPEG_PATTERNS # runtime