From: Bernhard M. Wiedemann Date: Mon, 30 Jul 2018 17:02:46 +0000 (+0200) Subject: find-debuginfo.sh: sort output of find X-Git-Tag: debugedit-0.1~35 X-Git-Url: https://www.sourceware.org/git/?a=commitdiff_plain;h=d17fbdbf1a6d03780d892f4a4fd523ec7e08ea92;p=debugedit.git find-debuginfo.sh: sort output of find to make build results more reproducible in spite of indeterministic filesystem readdir order. For openSUSE, this helped to make squid, openssh, postfix and shadow packages build reproducibly. See https://reproducible-builds.org/ for why this is good. --- diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh index 44d1642..11397b7 100755 --- a/scripts/find-debuginfo.sh +++ b/scripts/find-debuginfo.sh @@ -487,7 +487,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 | LC_ALL=C sort) if [ ${#dwz_files[@]} -gt 0 ]; then dwz_multifile_name="${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}-${RPM_PACKAGE_RELEASE}.${RPM_ARCH}" dwz_multifile_suffix=