Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luarocks/
Date: Tue, 01 Dec 2020 12:16:46
Message-Id: 1606824995.edcdfd8d8b3dd1c77b39dcd7db162cbeb3dafc71.conikost@gentoo
1 commit: edcdfd8d8b3dd1c77b39dcd7db162cbeb3dafc71
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 1 12:15:10 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 1 12:16:35 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edcdfd8d
7
8 dev-lua/luarocks: patch LUA_LIBDIR check (non slotted)
9
10 If 'dev-lang/lua' is a new, fresh installation, no 'LUA_LIBDIR' exists,
11 as no compiled modules are installed on a new, fresh installation,
12 so this check must be disabled, otherwise 'configure' will fail.
13
14 Closes: https://bugs.gentoo.org/757855
15 Package-Manager: Portage-3.0.9, Repoman-3.0.2
16 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
17
18 dev-lua/luarocks/luarocks-3.4.0.ebuild | 9 +++++++++
19 1 file changed, 9 insertions(+)
20
21 diff --git a/dev-lua/luarocks/luarocks-3.4.0.ebuild b/dev-lua/luarocks/luarocks-3.4.0.ebuild
22 index 1740df35645..52063734ca5 100644
23 --- a/dev-lua/luarocks/luarocks-3.4.0.ebuild
24 +++ b/dev-lua/luarocks/luarocks-3.4.0.ebuild
25 @@ -37,6 +37,15 @@ BDEPEND="
26 )
27 "
28
29 +src_prepare() {
30 + default
31 +
32 + # If 'dev-lang/lua' is a new, fresh installation, no 'LUA_LIBDIR' exists,
33 + # as no compiled modules are installed on a new, fresh installation,
34 + # so this check must be disabled, otherwise 'configure' will fail.
35 + sed -e '/LUA_LIBDIR is not a valid directory/d' -i configure || die
36 +}
37 +
38 src_configure() {
39 local myeconfargs=(
40 "--prefix=${EPREFIX}/usr"