From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1280497-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 51DC21382C5
	for <garchives@archives.gentoo.org>; Mon, 10 May 2021 15:25:57 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 325B9E07A7;
	Mon, 10 May 2021 15:25:56 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(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 15BB1E07A7
	for <gentoo-commits@lists.gentoo.org>; Mon, 10 May 2021 15:25:56 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(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 951D2340FC0
	for <gentoo-commits@lists.gentoo.org>; Mon, 10 May 2021 15:25:53 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 1CD5B4A0
	for <gentoo-commits@lists.gentoo.org>; Mon, 10 May 2021 15:25:52 +0000 (UTC)
From: "Sam James" <sam@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, "Sam James" <sam@gentoo.org>
Message-ID: <1620660343.be44b523eb78e10f9a594f4f900af44eaeb36b61.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/re2c/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-util/re2c/re2c-2.1.1-r1.ebuild
X-VCS-Directories: dev-util/re2c/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: be44b523eb78e10f9a594f4f900af44eaeb36b61
X-VCS-Branch: master
Date: Mon, 10 May 2021 15:25:52 +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: 95317e56-8173-4b86-878f-6687ebc1618f
X-Archives-Hash: 213d1edb007375f47193e8ec8a422c56

commit:     be44b523eb78e10f9a594f4f900af44eaeb36b61
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon May 10 15:24:40 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon May 10 15:25:43 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be44b523

dev-util/re2c: regenerate autotools for nonbash patch

While the used patch does modify configure directly,
this is fragile and sometimes causes maintainer mode
to be triggered regardless. Let's regenerate autotools
to be safe given a user managed to hit this.

Closes: https://bugs.gentoo.org/779187
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/re2c/re2c-2.1.1-r1.ebuild | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/dev-util/re2c/re2c-2.1.1-r1.ebuild b/dev-util/re2c/re2c-2.1.1-r1.ebuild
index 29518e3a9d5..854354f0825 100644
--- a/dev-util/re2c/re2c-2.1.1-r1.ebuild
+++ b/dev-util/re2c/re2c-2.1.1-r1.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+inherit autotools
+
 DESCRIPTION="tool for generating C-based recognizers from regular expressions"
 HOMEPAGE="http://re2c.org/"
 SRC_URI="https://github.com/skvadrik/re2c/releases/download/${PV}/${P}.tar.xz"
@@ -14,6 +16,16 @@ IUSE="debug"
 
 PATCHES=("${FILESDIR}"/${P}-sh.patch)
 
+src_prepare() {
+	default
+
+	# Only needed for the sh patch
+	# Despite the patch modifying the configure directly,
+	# this is sometimes fragile and triggers maintainer mode anyway.
+	# bug #779187
+	eautoreconf
+}
+
 src_configure() {
 	econf \
 		--enable-golang \