From f6c1a60ef03547b421198a984cef80f17ead3a51 Mon Sep 17 00:00:00 2001 From: Pavlina Moravcova Varekova Date: Mar 25 2020 08:22:21 +0000 Subject: Sort list of hard linked files in find-debuginfo.sh (RhBug:1421272) It helps to make build results reproducible. Based on Mark Wielaard's idea. --- diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh index 73275a1..e460bb4 100755 --- a/scripts/find-debuginfo.sh +++ b/scripts/find-debuginfo.sh @@ -333,7 +333,7 @@ trap 'rm -rf "$temp"' EXIT touch "$temp/primary" find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*.debug" -type f \ \( -perm -0100 -or -perm -0010 -or -perm -0001 \) \ - -print | + -print | LC_ALL=C sort | file -N -f - | sed -n -e 's/^\(.*\):[ ]*.*ELF.*, not stripped.*/\1/p' | xargs --no-run-if-empty stat -c '%h %D_%i %n' | while read nlinks inum f; do