If someone compiles lua:5.3and enables USE="deprecated", it will do nothing. It's basically a no-op, because it defines the wrong setting. Currently, if USE="deprecated" is enabled, it will set '-DLUA_COMPAT_ALL'. This will do nothing, as lua:5.3 doesn't know that anymore. Instead, setting '-DLUA_COMPAT_5_2' would be correct. Are you fine, if I do that on lua-5.3.6 too? Lua:5.4 has this correctly.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82248b79ece39ab1fe482d8eb3d275a524c47762 commit 82248b79ece39ab1fe482d8eb3d275a524c47762 Author: William Hubbs <williamh@gentoo.org> AuthorDate: 2020-12-05 20:05:12 +0000 Commit: William Hubbs <williamh@gentoo.org> CommitDate: 2020-12-05 20:07:02 +0000 dev-lang/lua: fix deprecated use flag in 5.3.6 Closes: https://bugs.gentoo.org/758665 Signed-off-by: William Hubbs <williamh@gentoo.org> dev-lang/lua/lua-5.3.6-r1.ebuild | 194 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 194 insertions(+)