From: Zac Medico Date: Sat, 1 Dec 2012 03:37:12 +0000 (-0800) Subject: prepstrip: avoid duplicates for bug #445336 X-Git-Tag: v2.2.0_alpha144~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bba20c632e79426cd006dd2b732fcaed079ac43a;p=portage.git 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. --- 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