diff options
author | Pavlina Moravcova Varekova <pmoravco@redhat.com> | 2019-04-07 07:23:47 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2020-03-26 11:57:58 +0200 |
commit | 6c638533595bea99eebaf45020d23717c015005b (patch) | |
tree | fad47deda8a1115f2b56482881cfe6699f1ef119 | |
parent | bc7f9d209a5d27ccb03063656c8ddf24f4dd3087 (diff) | |
download | rpm-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-x | scripts/find-debuginfo.sh | 2 |
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 |