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.
This commit is contained in:
parent
66b5a7750a
commit
801ee2e8eb
|
@ -487,7 +487,7 @@ fi
|
||||||
# Invoke the DWARF Compressor utility.
|
# Invoke the DWARF Compressor utility.
|
||||||
if $run_dwz \
|
if $run_dwz \
|
||||||
&& [ -d "${RPM_BUILD_ROOT}/usr/lib/debug" ]; then
|
&& [ -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
|
if [ ${#dwz_files[@]} -gt 0 ]; then
|
||||||
dwz_multifile_name="${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}-${RPM_PACKAGE_RELEASE}.${RPM_ARCH}"
|
dwz_multifile_name="${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}-${RPM_PACKAGE_RELEASE}.${RPM_ARCH}"
|
||||||
dwz_multifile_suffix=
|
dwz_multifile_suffix=
|
||||||
|
|
Loading…
Reference in New Issue