Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 761595 - dev-lua/luadbi-0.7.2-r101 does not work with slotted lua >5.1
Summary: dev-lua/luadbi-0.7.2-r101 does not work with slotted lua >5.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal blocker (vote)
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-25 12:08 UTC by Forza
Modified: 2020-12-25 12:43 UTC (History)
1 user (show)

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


Attachments
Patched luadbi-0.7.2-r101.ebuild (luadbi-0.7.2-r101.ebuild,1.80 KB, text/plain)
2020-12-25 12:08 UTC, Forza
Details
Updated diff/patch for luadbi-0.7.2-r101.ebuild (luadbi-0.7.2-r101.ebuild.diff,397 bytes, patch)
2020-12-25 12:27 UTC, Forza
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Forza 2020-12-25 12:08:12 UTC
Created attachment 679461 [details]
Patched luadbi-0.7.2-r101.ebuild

luadbi is missing a version check, so it is using hardcoded lua-5.1 version.

Fix this by adding the following line in the lua_src_install() section:
  LUA_V="$(ver_cut 1-2 $(lua_get_version))

See the attached ebuild.
Thanks to ionen on #gentoo for helping out with this.
Comment 1 Forza 2020-12-25 12:27:16 UTC
Created attachment 679464 [details, diff]
Updated diff/patch for luadbi-0.7.2-r101.ebuild

Updated ebuild.
Comment 2 Larry the Git Cow gentoo-dev 2020-12-25 12:43:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfb046ee97fbdb91fec68eca02ca28f7c3224026

commit dfb046ee97fbdb91fec68eca02ca28f7c3224026
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2020-12-25 12:40:57 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2020-12-25 12:43:13 +0000

    dev-lua/luadbi: fix lua slots >=5.2
    
    Closes: https://bugs.gentoo.org/761595
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 dev-lua/luadbi/luadbi-0.7.2-r102.ebuild | 91 +++++++++++++++++++++++++++++++++
 1 file changed, 91 insertions(+)