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 01B1A158087 for ; Sun, 30 Jan 2022 09:24:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3C5342BC05C; Sun, 30 Jan 2022 09:24:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1ED132BC05C for ; Sun, 30 Jan 2022 09:24:25 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4692F343130 for ; Sun, 30 Jan 2022 09:24:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B35C42BB for ; Sun, 30 Jan 2022 09:24:21 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1643530065.96ba24a7da70f7149a071c98be37461df50b83e7.vapier@gentoo> Subject: [gentoo-commits] proj/autotools-wrappers:main commit in: / X-VCS-Repository: proj/autotools-wrappers X-VCS-Files: ac-wrapper.sh X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 96ba24a7da70f7149a071c98be37461df50b83e7 X-VCS-Branch: main Date: Sun, 30 Jan 2022 09:24:21 +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: 5cd54c7a-6973-439e-9730-39dc63e35f9c X-Archives-Hash: 7da650d29fbc2387a63a4c82b53bd8b6 commit: 96ba24a7da70f7149a071c98be37461df50b83e7 Author: Mike Frysinger gentoo org> AuthorDate: Sun Jan 30 08:07:45 2022 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sun Jan 30 08:07:45 2022 +0000 URL: https://gitweb.gentoo.org/proj/autotools-wrappers.git/commit/?id=96ba24a7 autoconf-wrapper: make sure we break on first match, not last The intention was that we break on the first match in WANT_AUTOCONF, so add that missing break statement. In practice, people only ever set one value in WANT_AUTOCONF, so that's probably why no one has ever noticed this bug before. Signed-off-by: Mike Frysinger gentoo.org> ac-wrapper.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ac-wrapper.sh b/ac-wrapper.sh index 4682082..57324bb 100755 --- a/ac-wrapper.sh +++ b/ac-wrapper.sh @@ -117,6 +117,7 @@ if [ -n "${WANT_AUTOCONF}" ] ; then if [ -x "${full_argv0}-${wx}" ] ; then binary="${full_argv0}-${wx}" v="x" + break elif [ "${wx}" = "2.5" ] ; then if [ "${auto_ver}" = "2.13" ] ; then # The "2.5" alias accepts every version except 2.13. @@ -125,6 +126,7 @@ if [ -n "${WANT_AUTOCONF}" ] ; then if [ -x "${full_argv0}-${auto_ver}" ] ; then binary="${full_argv0}-${auto_ver}" v="x" + break fi fi done