From cc2a3105304e22df01ba56ce15c086054712e142 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Tue, 12 May 2015 22:56:51 +0200 Subject: [PATCH] Hardcode file permissions for files generated by output redirection This should finally make the build really reproducible. --- debian/changelog | 7 +++++++ debian/rules | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/debian/changelog b/debian/changelog index f26296e..929cf3c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +t-prot (3.4-3) UNRELEASED; urgency=medium + + * Really make build reproducible by also hardcoding file permissions for + files generated by output redirection. + + -- Axel Beckert Tue, 12 May 2015 22:55:49 +0200 + t-prot (3.4-2) unstable; urgency=medium * debian/rules: Set timestamp of all new files to the same time to make diff --git a/debian/rules b/debian/rules index 3104ee7..4f411be 100755 --- a/debian/rules +++ b/debian/rules @@ -72,6 +72,10 @@ binary-indep: install dpkg-gencontrol -ldebian/changelog -isp -p$(PKG) -P$(TMP) cd $(TMP) && find * -type f ! -regex '^DEBIAN/.*' -print0 | \ xargs -r0 md5sum > DEBIAN/md5sums + # Make build reproducible: + # Hardcode permissions for files created by output redirection + chmod 644 $(TMP)/DEBIAN/md5sums $(TMP)/DEBIAN/templates + # Set timestamp of all files to timestamp in debian/changelog entry find $(TMP) -depth -newermt '$(BUILD_DATE)' -print0 | \ xargs -0r touch --no-dereference --date='$(BUILD_DATE)' dpkg --build $(TMP) .. -- 2.39.2