Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 820431 - dev-lua/luadbi-0.7.2-r102 built with lua5-1 in LUA_TARGETS can't load drivers under other Lua versions
Summary: dev-lua/luadbi-0.7.2-r102 built with lua5-1 in LUA_TARGETS can't load drivers...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-27 02:18 UTC by Thomas Arnett
Modified: 2021-11-04 20:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
luadbi-0.7.2-r103.ebuild (luadbi-0.7.2-r103.ebuild,2.36 KB, text/plain)
2021-10-30 21:29 UTC, Conrad Kostecki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Arnett 2021-10-27 02:18:39 UTC
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.
Comment 1 Conrad Kostecki gentoo-dev 2021-10-30 21:29:38 UTC
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?
Comment 2 Conrad Kostecki gentoo-dev 2021-10-30 21:29:50 UTC
Created attachment 747549 [details]
luadbi-0.7.2-r103.ebuild
Comment 3 Larry the Git Cow gentoo-dev 2021-11-04 20:59:14 UTC
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(+)