From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C6C10158020 for ; Fri, 2 Dec 2022 21:16:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E31E32BC0C2; Fri, 2 Dec 2022 21:16:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CAFB82BC0C2 for ; Fri, 2 Dec 2022 21:16:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 02D7A34133F for ; Fri, 2 Dec 2022 21:16:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 633B976C for ; Fri, 2 Dec 2022 21:16:11 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1670015370.d05bcafc980182a12a9c8a86dd23fdc9bc7885d5.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-alternatives/lex/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-alternatives/lex/lex-0.ebuild X-VCS-Directories: app-alternatives/lex/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d05bcafc980182a12a9c8a86dd23fdc9bc7885d5 X-VCS-Branch: master Date: Fri, 2 Dec 2022 21:16:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 92c2ae6e-4acc-407c-90a5-9b5d76ffddbc X-Archives-Hash: 1916a8fa67c6ff10d55a4b82913ea975 commit: d05bcafc980182a12a9c8a86dd23fdc9bc7885d5 Author: Sam James gentoo org> AuthorDate: Fri Dec 2 06:18:20 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Dec 2 21:09:30 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d05bcafc app-alternatives/lex: install env.d file for LEX Without this, autotools will end up probing for flex even when it's not specifically needed. If packages really do need flex, it's not expected that ebuild maintainers will fix the underlying problem, but the ebuilds should then set LEX=flex and BDEPEND on it. If upstream is active, they should consider reporting the problem to them though. Signed-off-by: Sam James gentoo.org> app-alternatives/lex/lex-0.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app-alternatives/lex/lex-0.ebuild b/app-alternatives/lex/lex-0.ebuild index 260f9d0ba5f2..88a00b0f7b8f 100644 --- a/app-alternatives/lex/lex-0.ebuild +++ b/app-alternatives/lex/lex-0.ebuild @@ -24,9 +24,17 @@ src_install() { if use reflex; then dosym reflex /bin/lex newman - lex.1 <<<".so reflex.1" + + newenvd - 90lex <<-EOF + LEX=reflex + EOF elif use flex; then dosym flex /bin/lex newman - lex.1 <<<".so flex.1" + + newenvd - 90lex <<-EOF + LEX=flex + EOF else die "Invalid USE flag combination (broken REQUIRED_USE?)" fi