[Reproducible-commits] [gettext] 01/01: Added comment about setting env TZ=UTC

Eduard Sanou dhole-guest at moszumanska.debian.org
Thu Jul 16 16:13:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

dhole-guest pushed a commit to branch pu/reproducible_builds
in repository gettext.

commit 63114c0ef9549064443fef8ebea7adec46f9a76b
Author: Dhole <dhole at openmailbox.org>
Date:   Thu Jul 16 18:13:28 2015 +0200

    Added comment about setting env TZ=UTC
---
 debian/patches/03-Replace-timestamp-with-SOURCE_DATE_EPOCH | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/patches/03-Replace-timestamp-with-SOURCE_DATE_EPOCH b/debian/patches/03-Replace-timestamp-with-SOURCE_DATE_EPOCH
index 7bdec9a..9e1712e 100644
--- a/debian/patches/03-Replace-timestamp-with-SOURCE_DATE_EPOCH
+++ b/debian/patches/03-Replace-timestamp-with-SOURCE_DATE_EPOCH
@@ -13,7 +13,7 @@ Author: Dhole <dhole at openmailbox.org>
    static lex_pos_ty pos = { __FILE__, __LINE__ };
  
    if (package_name != NULL)
-@@ -3431,7 +3432,21 @@ the MSGID_BUGS_ADDRESS variable there; o
+@@ -3431,7 +3432,24 @@ the MSGID_BUGS_ADDRESS variable there; o
  specify an --msgid-bugs-address command line option.\n\
  ")));
  
@@ -28,6 +28,9 @@ Author: Dhole <dhole at openmailbox.org>
 +      if (errno != 0)
 +        error (EXIT_FAILURE, errno, _("\
 +SOURCE_DATE_EPOCH=\"%s\" is not a valid number"), source_date_epoch);
++
++      /* The function po_strftime uses localtime() to parse the timestamp, so 
++         we need to fix the environment timezone to get reproducible results */
 +      setenv("TZ", "UTC", 1);
 +    }
 +  else

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/gettext.git



More information about the Reproducible-commits mailing list