Package: graphviz Version: 2.42.2-4 Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
When built on machines with different timezones, many of the .pdf files in the graphviz packages embed a different date. There is already support in the code for using SOURCE_DATE_EPOCH, which is great! It also needs pass the "-gmt True" argument when rendering the time in order to ensure the system timezone doesn't change the result. Patch attached which does this. Thanks! live well, vagrant
From e32c9a0e6832cf2e0a2cee6cba4075abaf302187 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Mon, 1 Jun 2020 23:37:44 +0000 Subject: [PATCH] gv_doc_template.tcl: Pass "-gmt True" to support reproducible dates. While the code already uses SOURCE_DATE_EPOCH, it also needs to ensure that the times are emitted in UTC/GMT, otherwise building on machines configured with different timezones may result in different embedded timestamps. --- tclpkg/gv/gv_doc_template.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tclpkg/gv/gv_doc_template.tcl b/tclpkg/gv/gv_doc_template.tcl index 1aeaac2..4a15a05 100644 --- a/tclpkg/gv/gv_doc_template.tcl +++ b/tclpkg/gv/gv_doc_template.tcl @@ -3,7 +3,7 @@ if { [info exists ::env(SOURCE_DATE_EPOCH) ] } { set buildtime $::env(SOURCE_DATE_EPOCH) } - clock format $buildtime -format "%d %B %Y"]\" + clock format $buildtime -gmt True -format "%d %B %Y"]\" .SH NAME -- 2.20.1
signature.asc
Description: PGP signature