diff options
author | Sam James <sam@gentoo.org> | 2024-09-30 03:04:48 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-09-30 03:05:23 +0100 |
commit | 4f9c576ac91e273b0023084d4be134c94c65f7df (patch) | |
tree | ae25b066614999d1ddb447295f60c616f41d722f /eclass/toolchain.eclass | |
parent | toolchain.eclass: move GNAT comment (diff) | |
download | gentoo-4f9c576ac91e273b0023084d4be134c94c65f7df.tar.gz gentoo-4f9c576ac91e273b0023084d4be134c94c65f7df.tar.bz2 gentoo-4f9c576ac91e273b0023084d4be134c94c65f7df.zip |
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@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
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 |