From 820c93097cb2767983f57c266660080bee46d0d3 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 8 Dec 2019 21:13:48 +0100 Subject: [PATCH] build: Generate ChangeLog reproducibly. Thanks, Timothy! * build-aux/gitlog-to-changelog (git_dir_option): Avoid non-reproducible localtime. --- build-aux/gitlog-to-changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog index 9ed1cc0e..b9e0fd44 100755 --- a/build-aux/gitlog-to-changelog +++ b/build-aux/gitlog-to-changelog @@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS "$0" "$@"' if 0; # Convert git log output to ChangeLog format. -my $VERSION = '2016-10-16 06:30'; # UTC +my $VERSION = '2019-12-08 20:13'; # UTC # The definition above must lie within the first 8 lines in order # for the Emacs time-stamp write hook (at end) to update it. # If you change this file with Emacs, please let the write hook @@ -345,7 +345,7 @@ sub git_dir_option($) ? ' (tiny change)' : ''); my $date_line = sprintf "%s %s$tiny\n", - strftime ("%Y-%m-%d", localtime ($1)), $2; + strftime ("%Y-%m-%d", gmtime ($1)), $2; my @coauthors = grep /^Co-authored-by:.*$/, @line; # Omit meta-data lines we've already interpreted.