From f461543d9c0f8ea1586004e51561ba0a37b8aecf 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 --- 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 73d8ab4ca7..22d7fbe4be 100644 --- a/Config.in.legacy +++ b/Config.in.legacy @@ -2224,9 +2224,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 456f3b8c12..888c34b21d 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.