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 CC3EB158016 for ; Wed, 27 Dec 2023 20:57:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 728DC2BC026; Wed, 27 Dec 2023 20:57:34 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 59C612BC026 for ; Wed, 27 Dec 2023 20:57:34 +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 46FAD340DE6 for ; Wed, 27 Dec 2023 20:57:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B8A3614AB for ; Wed, 27 Dec 2023 20:57:31 +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: <1703710627.92523f4fa2b9f09b88f4316bd021a737d3a2447e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/autotools.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 92523f4fa2b9f09b88f4316bd021a737d3a2447e X-VCS-Branch: master Date: Wed, 27 Dec 2023 20:57:31 +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: 6265456e-6c5b-42cb-9571-ab8575b911fa X-Archives-Hash: 35a38bcb758c4311e9d04790ef61a477 commit: 92523f4fa2b9f09b88f4316bd021a737d3a2447e Author: Sam James gentoo org> AuthorDate: Wed Dec 27 19:32:31 2023 +0000 Commit: Sam James gentoo org> CommitDate: Wed Dec 27 20:57:07 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92523f4f autotools.eclass: optimize dependency generation (elide subshells) Signed-off-by: Sam James gentoo.org> eclass/autotools.eclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass index 5e214686572a..5eab543409a5 100644 --- a/eclass/autotools.eclass +++ b/eclass/autotools.eclass @@ -105,7 +105,9 @@ if [[ -n ${WANT_AUTOMAKE} ]] ; then # the autoreconf tool, so this requirement is correct, bug #401605. ;; latest) - _automake_atom="|| ( $(printf '>=sys-devel/automake-%s:%s ' ${_LATEST_AUTOMAKE[@]/:/ }) )" + printf -v _automake_atom_tmp '>=sys-devel/automake-%s:%s ' ${_LATEST_AUTOMAKE[@]/:/ } + _automake_atom="|| ( ${_automake_atom_tmp} )" + unset _automake_atom_tmp ;; *) _automake_atom="=sys-devel/automake-${WANT_AUTOMAKE}*" @@ -128,7 +130,9 @@ if [[ -n ${WANT_AUTOCONF} ]] ; then _autoconf_atom=">=sys-devel/autoconf-2.71-r6" ;; latest) - _autoconf_atom="|| ( $(printf '>=sys-devel/autoconf-%s:%s ' ${_LATEST_AUTOCONF[@]/:/ }) )" + printf -v _autoconf_atom_tmp '>=sys-devel/autoconf-%s:%s ' ${_LATEST_AUTOCONF[@]/:/ } + _autoconf_atom="|| ( ${_autoconf_atom_tmp} )" + unset _autoconf_atom_tmp ;; *) die "Invalid WANT_AUTOCONF value '${WANT_AUTOCONF}'"