commit: 4f9c576ac91e273b0023084d4be134c94c65f7df
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 30 02:04:48 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> 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 <sam <AT> 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