GNU bug report logs - #20314
mdate-sh has undeterministic output

Previous Next

Package: automake;

Reported by: Eric Dorland <eric <at> debian.org>

Date: Sun, 12 Apr 2015 18:51:02 UTC

Severity: normal

Tags: fixed, patch

Done: Mathieu Lirzin <mthl <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Reiner Herrmann <reiner <at> reiner-h.de>
Cc: Eric Dorland <eric <at> debian.org>, Gnulib bugs <bug-gnulib <at> gnu.org>, Mathieu Lirzin <mthl <at> gnu.org>, 782345-forwarded <at> bugs.debian.org, automake-patches <at> gnu.org, 20314 <at> debbugs.gnu.org, reproducible-builds <at> lists.alioth.debian.org
Subject: bug#20314: [PATCH] Make output of mdate-sh deterministic
Date: Thu, 21 Sep 2017 20:21:25 -0700
[Message part 1 (text/plain, inline)]
Unfortunately that patch to Automake's mdate-sh is not portable, as TZ='UTC' is 
not a portable setting for the TZ environment variable. POSIX says you're 
supposed to use something like TZ='UTC0' instead. Although TZ='UTC' works when 
glibc is used, this is not necessarily true on other POSIX platforms.

I noticed this problem when recent Automake changes were merged into Gnulib, and 
installed the attached patch to the Automake master branch to fix this. Please 
review any other patches you may be using for reproducible builds, and fix them 
to use TZ='UTC0' instead of TZ='UTC'. Thanks.

For reference, here's the POSIX spec for TZ:

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_03

and look for "TZ".
[0001-lib-mdate.sh-TZ-Use-portable-setting.patch (text/x-patch, attachment)]

This bug report was last modified 7 years and 322 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.