[dpkg] 08/200: build: Use deterministic dates for generated man pages
Ximin Luo
infinity0 at debian.org
Wed Apr 5 15:17:06 UTC 2017
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository dpkg.
commit f3b7b1c9683b68066c11b32a0a839293d4a32636
Author: Reiner Herrmann <reiner at reiner-h.de>
Date: Sun Nov 6 23:46:12 2016 +0100
build: Use deterministic dates for generated man pages
Pin the timezone to UTC so that the computed dates are deterministic
and produce deterministic generated man pages.
Closes: #843469
Signed-off-by: Guillem Jover <guillem at debian.org>
---
debian/changelog | 3 +++
m4/dpkg-build.m4 | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 825b015..1b0b686 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,9 @@ dpkg (1.18.13) UNRELEASED; urgency=medium
- Add missing Breaks on old libdpkg-perl to dpkg. Closes: #843429
Thanks to Sven Joachim <svenjoac at gmx.de>.
- Ship deb-src-files(5) man page in dpkg-dev.
+ * Build system:
+ - Use deterministic dates for generated man pages. Closes: #843469
+ Thanks to Reiner Herrmann <reiner at reiner-h.de>.
-- Guillem Jover <guillem at debian.org> Sun, 06 Nov 2016 06:28:11 +0100
diff --git a/m4/dpkg-build.m4 b/m4/dpkg-build.m4
index afb2a7d..b970063 100644
--- a/m4/dpkg-build.m4
+++ b/m4/dpkg-build.m4
@@ -14,7 +14,7 @@ AC_DEFUN([DPKG_BUILD_SHARED_LIBS], [
# -----------------------
AC_DEFUN([DPKG_BUILD_RELEASE_DATE], [
TIMESTAMP=$(PERL=$PERL $srcdir/run-script scripts/dpkg-parsechangelog.pl -l$srcdir/debian/changelog -STimestamp)
- PACKAGE_RELEASE_DATE=$(date --date="@$TIMESTAMP" +%Y-%m-%d)
+ PACKAGE_RELEASE_DATE=$(date --utc --date="@$TIMESTAMP" +%Y-%m-%d)
AC_SUBST([PACKAGE_RELEASE_DATE])
])# DPKG_BUILD_RELEASE_DATE
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git
More information about the Reproducible-commits
mailing list