Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/autotools-wrappers:main commit in: /
Date: Sun, 30 Jan 2022 09:24:24
Message-Id: 1643529157.128dff66839fcc5d02bd2b61592eec486919e404.vapier@gentoo
1 commit: 128dff66839fcc5d02bd2b61592eec486919e404
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 30 07:52:37 2022 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 30 07:52:37 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/autotools-wrappers.git/commit/?id=128dff66
7
8 autoconf-wrapper: export WANT_AUTOCONF to the full version
9
10 When exporting the WANT_AUTOCONF version based on what we picked, use
11 the full version instead of the short 2.1 or 2.5 values since they may
12 expand into an unrelated version (since we accept many versions as an
13 alias to 2.5). Practically speaking, there shouldn't be a difference,
14 but this will make things a bit more clear.
15
16 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
17
18 ac-wrapper.sh | 3 +--
19 1 file changed, 1 insertion(+), 2 deletions(-)
20
21 diff --git a/ac-wrapper.sh b/ac-wrapper.sh
22 index ca23928..6cb436b 100755
23 --- a/ac-wrapper.sh
24 +++ b/ac-wrapper.sh
25 @@ -183,9 +183,8 @@ fi
26 if [ -z "${WANT_AUTOCONF}" ] ; then
27 for v in ${vers} ; do
28 auto_ver=${v%:*}
29 - want_ver=${v#*:}
30 if [ "${binary}" = "${full_argv0}-${auto_ver}" ] ; then
31 - export WANT_AUTOCONF="${want_ver}"
32 + export WANT_AUTOCONF="${auto_ver}"
33 break
34 fi
35 done