From 22b99575bdd79222c0f6e78eb401261abc930de7 Mon Sep 17 00:00:00 2001 From: Ricardo Martincoski Date: Sun, 27 Nov 2022 10:07:34 -0300 Subject: [PATCH] package/lua: properly handle legacy for removed version Commit "297613f1c7 package/lua: remove 5.2.x version" tried to add legacy handling but the new symbols are part of a choice, and Kconfig does not enforce the select of a option from a choice. Update the legacy entry for 2019.02, following the example described in the beginning of the file. Cc: Francois Perrad Signed-off-by: Ricardo Martincoski Signed-off-by: Peter Korsgaard (cherry picked from commit f461543d9c0f8ea1586004e51561ba0a37b8aecf) Signed-off-by: Peter Korsgaard --- Config.in.legacy | 2 +- package/lua/Config.in | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Config.in.legacy b/Config.in.legacy index 47e2d48e58..0ed989f8b0 100644 --- a/Config.in.legacy +++ b/Config.in.legacy @@ -1933,9 +1933,9 @@ config BR2_PACKAGE_FFTW_PRECISION_QUAD config BR2_PACKAGE_LUA_5_2 bool "Lua 5.2.x version removed" select BR2_LEGACY - select BR2_PACKAGE_LUA_5_3 help The Lua 5.2.x version was removed. +# Note: BR2_PACKAGE_LUA_5_2 is still referenced from package/lua/Config.in config BR2_TARGET_GENERIC_PASSWD_MD5 bool "target passwd md5 format support has been removed" diff --git a/package/lua/Config.in b/package/lua/Config.in index 309dd6eec2..8fa9f9b7ab 100644 --- a/package/lua/Config.in +++ b/package/lua/Config.in @@ -14,6 +14,7 @@ config BR2_PACKAGE_PROVIDES_LUAINTERPRETER choice prompt "Lua Version" + default BR2_PACKAGE_LUA_5_3 if BR2_PACKAGE_LUA_5_2 # legacy default BR2_PACKAGE_LUA_5_4 help Select the version of Lua API/ABI you wish to use.