Michael Schröder
c96845c1e8
Add reproducible-debuginfo.patch to generate debuginfo in a reproducible way OBS-URL: https://build.opensuse.org/request/show/627983 OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=476
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
commit 5b29a1d4b1d25a16c24c2365980ac5fd847e1aa6
|
|
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
|
|
Date: Mon Jul 30 19:02:46 2018 +0200
|
|
|
|
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 44d164299..11397b7e8 100755
|
|
--- scripts/find-debuginfo.sh
|
|
+++ 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=
|