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@gentoo.org>
This commit is contained in:
Conrad Kostecki
2020-12-01 13:15:10 +01:00
parent f1e50c073e
commit edcdfd8d8b

View File

@@ -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"