summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-12-01 13:17:14 -0800
committerZac Medico <zmedico@gentoo.org>2012-12-01 13:17:14 -0800
commitf930e2fafd14705e548637330cfc2d848c102cfa (patch)
treea1ea87cbc71bbd8cded5a20361400f0fb20fe79d /bin
parent05827f3b3bcdbb134633e39b1226715c8e4b3a8b (diff)
downloadportage-f930e2fafd14705e548637330cfc2d848c102cfa.tar.gz
portage-f930e2fafd14705e548637330cfc2d848c102cfa.tar.bz2
portage-f930e2fafd14705e548637330cfc2d848c102cfa.zip
prepstrip: avoid duplicates for bug #445336
This prevents us from trying to hardlink duplicate splitdebug files, avoiding ln "File exists" failure as reported in bug #445336.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild-helpers/prepstrip6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip
index 575001cf3..99acefb79 100755
--- a/bin/ebuild-helpers/prepstrip
+++ b/bin/ebuild-helpers/prepstrip
@@ -247,8 +247,10 @@ while read -r x ; do
inode_link=$(get_inode_number "${x}") || die "stat failed unexpectedly"
echo "${x}" >> "${inode_link}" || die "echo failed unexpectedly"
done < <(
- scanelf -yqRBF '#k%F' -k '.symtab' "$@"
- find "$@" -type f ! -type l -name '*.a'
+ (
+ scanelf -yqRBF '#k%F' -k '.symtab' "$@"
+ find "$@" -type f ! -type l -name '*.a'
+ ) | LC_ALL=C sort -u
)
# Now we look for unstripped binaries.