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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B702715808B for ; Tue, 8 Feb 2022 02:58:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C5AE5E079E; Tue, 8 Feb 2022 02:58:41 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 5BFB7E079E for ; Tue, 8 Feb 2022 02:58:41 +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 28C9B342EE9 for ; Tue, 8 Feb 2022 02:58:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5D3EC1BD for ; Tue, 8 Feb 2022 02:58:38 +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: <1644289041.6f9e65b68174b938714100f34f399844f8d2cb93.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: 6f9e65b68174b938714100f34f399844f8d2cb93 X-VCS-Branch: main Date: Tue, 8 Feb 2022 02:58:38 +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: a42bf75a-5a55-45f7-b2b2-995cf956c26a X-Archives-Hash: 05a2830ceb05ac61bf60e36b0e7cb296 commit: 6f9e65b68174b938714100f34f399844f8d2cb93 Author: Mike Frysinger gentoo org> AuthorDate: Tue Feb 8 02:57:21 2022 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Tue Feb 8 02:57:21 2022 +0000 URL: https://gitweb.gentoo.org/proj/autotools-wrappers.git/commit/?id=6f9e65b6 autoconf-wrapper: fix version detection Make sure we chop the trailing period from the version string to fix comparing to installed versions. Otherwise, "2.69." will never match "2.69". Signed-off-by: Mike Frysinger gentoo.org> ac-wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ac-wrapper.sh b/ac-wrapper.sh index ce576c6..5a489a2 100755 --- a/ac-wrapper.sh +++ b/ac-wrapper.sh @@ -146,7 +146,7 @@ acprereq_version() { } generated_version() { - local re='^# Generated (by (GNU )?Autoconf|automatically using autoconf version) ([0-9.]+).*' + local re='^# Generated (by (GNU )?Autoconf|automatically using autoconf version) ([0-9.]+)\..*' sed -n -E "/${re}/{s:${re}:\3:;p;q}" "$@" }