Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 752654 - dev-lua/luarocks: migrate to lua eclasses
Summary: dev-lua/luarocks: migrate to lua eclasses
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Victor Payno
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: slotted-lua 752963
  Show dependency tree
 
Reported: 2020-11-03 15:36 UTC by Marek Szuba
Modified: 2020-11-30 11:21 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Szuba archtester gentoo-dev 2020-11-03 15:36:24 UTC
In order for Gentoo Linux to properly support side-by-side installation of
different versions of Lua (including LuaJIT), please migrate this package as
to lua.eclass (for packages which should support multiple Lua implementations
at the same time, i.e. most likely Lua modules) or lua-single.eclass (for
packages which only have to support one Lua implementation at a time). For
details, consult documentation of respective eclasses as well as
already-migrated ebuilds in the tree.

Please note that since slotted dev-lang/lua is currently masked, your
migrated ebuilds should be masked as well. There is a section of package.mask,
created in September 2020, which you can use for this purpose so that it will
be easier in the future to unmask them all in one go.

Thank you in advance for your effort!
Comment 1 Larry the Git Cow gentoo-dev 2020-11-30 00:16:23 UTC
The bug has been closed via the following commit(s):

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

commit 0d903986eb9894fad0924b485402376cdbd7c4ca
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2020-11-30 00:14:45 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2020-11-30 00:16:00 +0000

    dev-lua/luarocks: bump to version 3.4.0, migrate to lua eclass
    
    Closes: https://bugs.gentoo.org/590474
    Closes: https://bugs.gentoo.org/752654
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 dev-lua/luarocks/Manifest                   |  1 +
 dev-lua/luarocks/luarocks-3.4.0-r100.ebuild | 61 ++++++++++++++++++++++++++++
 dev-lua/luarocks/luarocks-3.4.0.ebuild      | 63 +++++++++++++++++++++++++++++
 dev-lua/luarocks/metadata.xml               |  4 ++
 profiles/package.mask                       |  1 +
 5 files changed, 130 insertions(+)
Comment 2 Marek Szuba archtester gentoo-dev 2020-11-30 01:13:49 UTC
Unfortunately dev-lua/luarocks-3.4.0-r100 fails to emerge on a clean system, regardless of the value of LUA_SINGLE_TARGET, if tests are disabled - src_configure fails with e.g.

Bad value for --with-lua-lib: /usr/lib64/lua/5.1 is not a valid directory.

It seems that the upstream configure script checks if the relevant cmod dir exists, and on a clean system it will only if Busted and friends have been pulled in by FEATURES=test.
Comment 3 Marek Szuba archtester gentoo-dev 2020-11-30 11:21:51 UTC
Fixed by b81bdfbd427e687819f919847dbed2827bc7515e, thanks again ConiKost!