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

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