X-Git-Url: https://git.deb.at/w?p=pkg%2Ft-prot.git;a=blobdiff_plain;f=debian%2Frules;fp=debian%2Frules;h=4f411be445df673a3b3fd66fa460917ebb2b4314;hp=3104ee7cbf347106377ae6d7f445ed75433c6d83;hb=cc2a3105304e22df01ba56ce15c086054712e142;hpb=4c3c6412ee61a2ef2f8e11e71dd8a2f3ffee7335;ds=sidebyside 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) ..