From f930e2fafd14705e548637330cfc2d848c102cfa Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 1 Dec 2012 13:17:14 -0800 Subject: 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. --- bin/ebuild-helpers/prepstrip | 6 ++++-- 1 file 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. -- cgit v1.2.3-1-g7c22