From 507a3304ab1787364d6a7051d55a7766185d48c5 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Tue, 28 Jul 2020 15:21:39 +0200 Subject: [PATCH] package/lua-compat53: depends on lua ABI 5.1 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 Signed-off-by: Thomas Petazzoni --- package/lua-compat53/Config.in | 2 +- package/lua-http/Config.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/lua-compat53/Config.in b/package/lua-compat53/Config.in index 76c5b3fd71..de468fcf66 100644 --- a/package/lua-compat53/Config.in +++ b/package/lua-compat53/Config.in @@ -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. diff --git a/package/lua-http/Config.in b/package/lua-http/Config.in index cbf71563b0..8eefd481b5 100644 --- a/package/lua-http/Config.in +++ b/package/lua-http/Config.in @@ -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 -- 2.30.2