]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Run asciidoc in UTC timezone for build reproducibility.
authorintrigeri <intrigeri@boum.org>
Sun, 3 Jul 2016 18:44:13 +0000 (18:44 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 5 Jul 2016 16:38:24 +0000 (12:38 -0400)
asciidoc adds a timestamp at the end of a generated HTML file.
This timestamp is based on the date of the file but it can change
depending on the TZ environment variable.

changes/asciidoc-UTC [new file with mode: 0644]
doc/asciidoc-helper.sh

diff --git a/changes/asciidoc-UTC b/changes/asciidoc-UTC
new file mode 100644 (file)
index 0000000..21fbfc1
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (build):
+    - When building manual pages, set the timezone to "UTC", so that the
+      output is reproducible. Fixes bug 19558; bugfix on 0.2.2.9-alpha.
+      Patch from intrigeri.
index c06b57026b3a72da81c1e343e0a7df7b712d80b8..a3ef53f8840618c300597b477ca978e37357ffdd 100755 (executable)
@@ -19,7 +19,7 @@ if [ "$1" = "html" ]; then
     base=${output%%.html.in}
 
     if [ "$2" != none ]; then
-      "$2" -d manpage -o $output $input;
+      TZ=UTC "$2" -d manpage -o $output $input;
     else
       echo "==================================";
       echo;