From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1227159-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 076761382C5 for <garchives@archives.gentoo.org>; Mon, 30 Nov 2020 10:06:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 38470E08FE; Mon, 30 Nov 2020 10:06:16 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 155FCE08FE for <gentoo-commits@lists.gentoo.org>; Mon, 30 Nov 2020 10:06:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AC30E340BC0 for <gentoo-commits@lists.gentoo.org>; Mon, 30 Nov 2020 10:06:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3000A42C for <gentoo-commits@lists.gentoo.org>; Mon, 30 Nov 2020 10:06:13 +0000 (UTC) From: "Conrad Kostecki" <conikost@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" <conikost@gentoo.org> Message-ID: <1606730766.b81bdfbd427e687819f919847dbed2827bc7515e.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luarocks/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/luarocks/luarocks-3.4.0-r100.ebuild X-VCS-Directories: dev-lua/luarocks/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: b81bdfbd427e687819f919847dbed2827bc7515e X-VCS-Branch: master Date: Mon, 30 Nov 2020 10:06:13 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0e0b9073-7d5f-4c02-a944-8360e111dc50 X-Archives-Hash: 16ca2d1afb250f3880a55a9bc20a135d commit: b81bdfbd427e687819f919847dbed2827bc7515e Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Mon Nov 30 10:05:02 2020 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Mon Nov 30 10:06:06 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b81bdfbd dev-lua/luarocks: patch LUA_LIBDIR check 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. 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-r100.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dev-lua/luarocks/luarocks-3.4.0-r100.ebuild b/dev-lua/luarocks/luarocks-3.4.0-r100.ebuild index 4a4286ebda0..8075c2212cf 100644 --- a/dev-lua/luarocks/luarocks-3.4.0-r100.ebuild +++ b/dev-lua/luarocks/luarocks-3.4.0-r100.ebuild @@ -36,6 +36,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"