summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-11-30 19:37:12 -0800
committerZac Medico <zmedico@gentoo.org>2012-11-30 19:37:12 -0800
commitbba20c632e79426cd006dd2b732fcaed079ac43a (patch)
tree23ecde14435d6b7d7681ebaf4ae161a1c00121b7 /bin
parent3fce988f670ef2f7c9af677ceb3fbc0f56723bb0 (diff)
downloadportage-bba20c632e79426cd006dd2b732fcaed079ac43a.tar.gz
portage-bba20c632e79426cd006dd2b732fcaed079ac43a.tar.bz2
portage-bba20c632e79426cd006dd2b732fcaed079ac43a.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/prepstrip2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip
index 575001cf3..408060aeb 100755
--- a/bin/ebuild-helpers/prepstrip
+++ b/bin/ebuild-helpers/prepstrip
@@ -249,7 +249,7 @@ while read -r x ; do
done < <(
scanelf -yqRBF '#k%F' -k '.symtab' "$@"
find "$@" -type f ! -type l -name '*.a'
-)
+) | LC_ALL=C sort -u
# Now we look for unstripped binaries.
for inode_link in $(shopt -s nullglob; echo *) ; do