Blame SOURCES/0001-Sort-list-of-hard-linked-files-in-find-debuginfo.sh-.patch

0b2921
From 35b09eed946a7e2f2f327531b692c9f768bf9e3b Mon Sep 17 00:00:00 2001
0b2921
From: Pavlina Moravcova Varekova <pmoravco@redhat.com>
0b2921
Date: Sun, 7 Apr 2019 07:23:47 +0200
0b2921
Subject: [PATCH] Sort list of hard linked files in find-debuginfo.sh
0b2921
 (RhBug:1421272)
0b2921
0b2921
It helps to make build results reproducible. Based on Mark Wielaard's idea.
0b2921
---
0b2921
 scripts/find-debuginfo.sh | 2 +-
0b2921
 1 file changed, 1 insertion(+), 1 deletion(-)
0b2921
0b2921
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
0b2921
index c75d176ac..23286139e 100755
0b2921
--- a/scripts/find-debuginfo.sh
0b2921
+++ b/scripts/find-debuginfo.sh
0b2921
@@ -350,7 +350,7 @@ trap 'rm -rf "$temp"' EXIT
0b2921
 touch "$temp/primary"
0b2921
 find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*.debug" -type f \
0b2921
      		     \( -perm -0100 -or -perm -0010 -or -perm -0001 \) \
0b2921
-		     -print |
0b2921
+		     -print | LC_ALL=C sort |
0b2921
 file -N -f - | sed -n -e 's/^\(.*\):[ 	]*.*ELF.*, not stripped.*/\1/p' |
0b2921
 xargs --no-run-if-empty stat -c '%h %D_%i %n' |
0b2921
 while read nlinks inum f; do
0b2921
-- 
0b2921
2.17.2
0b2921