A new user interface for you! Read more...

File reproducible.patch of Package rpm

Index: rpm-4.14.1/scripts/find-debuginfo.sh
===================================================================
--- rpm-4.14.1.orig/scripts/find-debuginfo.sh
+++ rpm-4.14.1/scripts/find-debuginfo.sh
@@ -524,7 +524,7 @@ fi
 # Invoke the DWARF Compressor utility.
 if $run_dwz \
    && [ -d "${RPM_BUILD_ROOT}/usr/lib/debug" ]; then
-  readarray dwz_files < <(cd "${RPM_BUILD_ROOT}/usr/lib/debug"; find -type f -name \*.debug)
+  readarray dwz_files < <(cd "${RPM_BUILD_ROOT}/usr/lib/debug"; find -type f -name \*.debug | sort)
   if [ ${#dwz_files[@]} -gt 0 ]; then
     dwz_multifile_name="${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}-${RPM_PACKAGE_RELEASE}.${RPM_ARCH}"
     dwz_multifile_suffix=
@@ -610,12 +610,12 @@ if [ -d "${RPM_BUILD_ROOT}/usr/lib" -o -
   ((nout > 0)) ||
   test ! -d "${RPM_BUILD_ROOT}/usr/lib" ||
   (cd "${RPM_BUILD_ROOT}/usr/lib"; test ! -d debug || find debug -type d) |
-  sed 's,^,%dir /usr/lib/,' >> "$LISTFILE"
+  sed 's,^,%dir /usr/lib/,' | sort >> "$LISTFILE"
 
   (cd "${RPM_BUILD_ROOT}/usr"
    test ! -d lib/debug || find lib/debug ! -type d
    test ! -d src/debug -o -n "$srcout" || find src/debug -mindepth 1 -maxdepth 1
-  ) | sed 's,^,/usr/,' >> "$LISTFILE"
+  ) | sed 's,^,/usr/,' | sort >> "$LISTFILE"
 fi
 
 if [ -n "$srcout" ]; then
@@ -624,7 +624,7 @@ if [ -n "$srcout" ]; then
   if [ -d "${RPM_BUILD_ROOT}/usr/src/debug" ]; then
     (cd "${RPM_BUILD_ROOT}/usr"
      find src/debug -mindepth 1 -maxdepth 1
-    ) | sed 's,^,/usr/,' >> "$srcout"
+    ) | sed 's,^,/usr/,' | sort >> "$srcout"
   fi
 fi