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: Mon, 30 Nov 2020 10:06:17
Message-Id: 1606730766.b81bdfbd427e687819f919847dbed2827bc7515e.conikost@gentoo
1 commit: b81bdfbd427e687819f919847dbed2827bc7515e
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 30 10:05:02 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 30 10:06:06 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b81bdfbd
7
8 dev-lua/luarocks: patch LUA_LIBDIR check
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 Package-Manager: Portage-3.0.9, Repoman-3.0.2
15 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
16
17 dev-lua/luarocks/luarocks-3.4.0-r100.ebuild | 9 +++++++++
18 1 file changed, 9 insertions(+)
19
20 diff --git a/dev-lua/luarocks/luarocks-3.4.0-r100.ebuild b/dev-lua/luarocks/luarocks-3.4.0-r100.ebuild
21 index 4a4286ebda0..8075c2212cf 100644
22 --- a/dev-lua/luarocks/luarocks-3.4.0-r100.ebuild
23 +++ b/dev-lua/luarocks/luarocks-3.4.0-r100.ebuild
24 @@ -36,6 +36,15 @@ BDEPEND="
25 )
26 "
27
28 +src_prepare() {
29 + default
30 +
31 + # If 'dev-lang/lua' is a new, fresh installation, no 'LUA_LIBDIR' exists,
32 + # as no compiled modules are installed on a new, fresh installation,
33 + # so this check must be disabled, otherwise 'configure' will fail.
34 + sed -e '/LUA_LIBDIR is not a valid directory/d' -i configure || die
35 +}
36 +
37 src_configure() {
38 local myeconfargs=(
39 "--prefix=${EPREFIX}/usr"