Source: dpkg Version: 1.18.12 Severity: wishlist Tags: patch upstream User: reproducible-bui...@lists.alioth.debian.org Usertags: timezone X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi! While working on the "reproducible builds" effort [1], we have noticed that dpkg could not be built reproducibly. The manpages generated during build contain a date, which varies with the configured timezone. The attached patch fixes this by fixing the timezone to UTC. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
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
signature.asc
Description: PGP signature