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