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 D778F15808B for ; Mon, 30 Sep 2024 02:15:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11A86E2A37; Mon, 30 Sep 2024 02:15:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 EC1EDE2A39 for ; Mon, 30 Sep 2024 02:15:06 +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 324AA342FB0 for ; Mon, 30 Sep 2024 02:15:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 713B71F30 for ; Mon, 30 Sep 2024 02:15:04 +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: <1727661923.4f9c576ac91e273b0023084d4be134c94c65f7df.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/toolchain.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4f9c576ac91e273b0023084d4be134c94c65f7df X-VCS-Branch: master Date: Mon, 30 Sep 2024 02:15:04 +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: 3b202a35-fb71-45b8-bc9a-474de98465da X-Archives-Hash: 8b5992168c2906d0b943bd04b5a5aa9b commit: 4f9c576ac91e273b0023084d4be134c94c65f7df Author: Sam James gentoo org> AuthorDate: Mon Sep 30 02:04:48 2024 +0000 Commit: Sam James gentoo org> CommitDate: Mon Sep 30 02:05:23 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f9c576a toolchain.eclass: switch to /bin/sh shebang for Ada wrappers type -P is used in ebuild context, not in the script itself (it is expanded in the heredoc), so we can use POSIX shell. It might make things slightly faster given these tools get invoked a lot during the build. Signed-off-by: Sam James gentoo.org> eclass/toolchain.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 7800681a6fb8..f64128baef48 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -981,7 +981,7 @@ toolchain_src_configure() { local tool for tool in gnat{,bind,chop,clean,kr,link,ls,make,name,prep} ; do cat <<-EOF > "${T}"/ada-wrappers/${tool} || die - #!/bin/bash + #!/bin/sh exec $(type -P ${CBUILD}-${tool}-${ada_bootstrap}) -specs=${T}/ada.spec "\$@" EOF chmod +x "${T}"/ada-wrappers/${tool} || die