summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlina Moravcova Varekova <pmoravco@redhat.com>2019-04-07 07:23:47 +0200
committerPanu Matilainen <pmatilai@redhat.com>2020-03-26 11:57:58 +0200
commit6c638533595bea99eebaf45020d23717c015005b (patch)
treefad47deda8a1115f2b56482881cfe6699f1ef119
parentbc7f9d209a5d27ccb03063656c8ddf24f4dd3087 (diff)
downloadrpm-6c638533595bea99eebaf45020d23717c015005b.tar.gz
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. (cherry picked from commit 35b09eed946a7e2f2f327531b692c9f768bf9e3b)
-rwxr-xr-xscripts/find-debuginfo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
index baf3e6036..c16299600 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