commit: edcdfd8d8b3dd1c77b39dcd7db162cbeb3dafc71 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Tue Dec 1 12:15:10 2020 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Tue Dec 1 12:16:35 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edcdfd8d
dev-lua/luarocks: patch LUA_LIBDIR check (non slotted) If 'dev-lang/lua' is a new, fresh installation, no 'LUA_LIBDIR' exists, as no compiled modules are installed on a new, fresh installation, so this check must be disabled, otherwise 'configure' will fail. Closes: https://bugs.gentoo.org/757855 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> dev-lua/luarocks/luarocks-3.4.0.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dev-lua/luarocks/luarocks-3.4.0.ebuild b/dev-lua/luarocks/luarocks-3.4.0.ebuild index 1740df35645..52063734ca5 100644 --- a/dev-lua/luarocks/luarocks-3.4.0.ebuild +++ b/dev-lua/luarocks/luarocks-3.4.0.ebuild @@ -37,6 +37,15 @@ BDEPEND=" ) " +src_prepare() { + default + + # If 'dev-lang/lua' is a new, fresh installation, no 'LUA_LIBDIR' exists, + # as no compiled modules are installed on a new, fresh installation, + # so this check must be disabled, otherwise 'configure' will fail. + sed -e '/LUA_LIBDIR is not a valid directory/d' -i configure || die +} + src_configure() { local myeconfargs=( "--prefix=${EPREFIX}/usr"
