[Rpm-maint] [PATCH v2 2/3] find-debuginfo.sh: Make the duplicate id links deterministic
Michal Marek
mmarek at suse.com
Mon Jul 4 05:29:59 UTC 2016
Signed-off-by: Michal Marek <mmarek at suse.com>
---
v2: No changes.
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 a09c1a77e578..7eb2d936b68d 100644
--- a/scripts/find-debuginfo.sh
+++ b/scripts/find-debuginfo.sh
@@ -211,7 +211,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