[Rpm-maint] [PATCH 2/3] find-debuginfo.sh: Make the duplicate id links deterministic
Michal Marek
mmarek at suse.com
Fri Jul 1 20:43:44 UTC 2016
Signed-off-by: Michal Marek <mmarek at suse.com>
---
scripts/find-debuginfo.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
index 3a84aad6a60b..f3a3e45d122f 100644
--- a/scripts/find-debuginfo.sh
+++ b/scripts/find-debuginfo.sh
@@ -210,7 +210,7 @@ find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*.debug" -type f \
\( -perm -0100 -or -perm -0010 -or -perm -0001 \) \
-print |
file -N -f - | sed -n -e 's/^\(.*\):[ ]*.*ELF.*, not stripped.*/\1/p' |
-xargs --no-run-if-empty stat -c '%h %D_%i %n' |
+xargs --no-run-if-empty stat -c '%h %D_%i %n' | sort -k3 |
while read nlinks inum f; do
if [ $nlinks -gt 1 ]; then
var=seen_$inum
--
2.6.2
More information about the Rpm-maint
mailing list