With LUA_TARGETS="lua5-1 lua5-3", luadbi fails to load drivers under Lua 5.3. The error message returned from `pcall(require, driver_path)` is "undefined symbol: luaL_register"; this symbol was replaced by luaL_setfuncs in Lua 5.2. After removing lua5-1 from LUA_TARGETS and rebuilding, luadbi works as expected under Lua 5.3. It looks like some object files, including dbd_common.o, are built for the first target and reused.
Thank you for you report. As I am not sure, how to test this, as I am using this with prosody, could you test this updated ebuild, if it fixes ist?
Created attachment 747549 [details] luadbi-0.7.2-r103.ebuild
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cb02ba655c0c415dd05ca5b0c93ee13174e709d commit 0cb02ba655c0c415dd05ca5b0c93ee13174e709d Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2021-11-04 20:58:25 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2021-11-04 20:58:54 +0000 dev-lua/luadbi: fix runtime Closes: https://bugs.gentoo.org/820431 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> .../{luadbi-0.7.2-r102.ebuild => luadbi-0.7.2-r103.ebuild} | 12 ++++++++++++ 1 file changed, 12 insertions(+)