[libparse-debianchangelog-perl] 01/02: Set TZ=UTC for the whole build (again) to make the build reproducible
Niko Tyni
ntyni at moszumanska.debian.org
Tue Aug 25 20:47:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
ntyni pushed a commit to branch master
in repository libparse-debianchangelog-perl.
commit 6116de864aa718ce89086babac377d252bcf7c67
Author: Niko Tyni <ntyni at debian.org>
Date: Tue Aug 25 23:17:15 2015 +0300
Set TZ=UTC for the whole build (again) to make the build reproducible
While PO_BUILD_DATE will set the time to a reproducible value,
the time zone of the build got appended to it.
This was originally correct in 498bd59250d5c10401db97e68219a9047f563140,
which set TZ for just dh_auto_build.
The method was somewhat unnecessarily simplified with
916244245d85a12a085de1cd9884d13c61a10659, which set TZ for the
whole build. This was an incorrect fix (oops) for the lack of
time zone in the date call of debian/rules, properly fixed with
abbb370d87f0b5555476fd4cafd3fbd425d3c4aa.
Unfortunately abbb370d87f0b5555476fd4cafd3fbd425d3c4aa also removed the TZ
setting from the rest of the build, reintroducing this issue. Oops again.
While the original fix of setting TZ just for dh_auto_build would
work just as well, setting it for all targets seems simpler and clearer.
The author of this message would like to apologize for the weak
handling of these issues on his part.
---
debian/rules | 1 +
1 file changed, 1 insertion(+)
diff --git a/debian/rules b/debian/rules
index c3614f3..dd3b088 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,7 @@
export PO_BUILD_DATE = $(shell date --utc -d "`dpkg-parsechangelog --show-field Date`" \
'+%F %T')
+export TZ=UTC
%:
dh $@ --buildsystem=perl_build
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libparse-debianchangelog-perl.git
More information about the Pkg-perl-cvs-commits
mailing list