commit: cae7df944bce64dd21689d9d6f12cc6e891dec79
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Mon Jun 9 20:28:41 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 11 03:26:19 2025 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=cae7df94
estrip: split the SAFE_STRIP_FLAGS variable exactly once
There is no sense in having each worker process compose the
'safe_strip_flags' array over and over.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
bin/estrip | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/estrip b/bin/estrip
index 65932e9886..5d1ac2ee3d 100755
--- a/bin/estrip
+++ b/bin/estrip
@@ -582,6 +582,7 @@ else
fi
# Now we look for unstripped binaries.
+read -rd '' -a safe_strip_flags <<<"${SAFE_STRIP_FLAGS}"
for inode_link in *; do
test -e "${inode_link}" || continue
# shellcheck disable=2094
@@ -644,7 +645,6 @@ for inode_link in *; do
process_elf "${x}" "${inode_link}"
"${portage_strip_flags[@]}"
elif [[ ${f} == *"SB relocatable"* ]] ; then
[[ ${x} == *.ko ]] || do_splitdebug=0
- read -rd '' -a safe_strip_flags <<<"${SAFE_STRIP_FLAGS}"
process_elf "${x}" "${inode_link}"
"${safe_strip_flags[@]}"
fi