[PATCH inputproto] specs: Set TZ=UTC before calling asciidoc

Peter Hutterer peter.hutterer at who-t.net
Wed Mar 30 04:26:36 UTC 2016


On Fri, Dec 11, 2015 at 10:49:33AM +0100, Andreas Boll wrote:
> Set TZ=UTC before calling asciidoc to make the embedded dates invariant
> to timezones in order to make the package build reproducibly.

quick check shows that the date embedded includes a timestamp with seconds
granularity. So unless your build system forces the exact same time for
every build, the result is still not reproducible. And if the build system
forces the time, why can't it force the timezone too?

what am I missing here?

Cheers,
   Peter


> 
> Fixes bug:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795981
> 
> v2: Set TZ=UTC after $(AM_V_GEN) (fixes non-verbose build)
> 
> Suggested-by: Eduard Sanou <dhole at openmailbox.org>
> Signed-off-by: Andreas Boll <andreas.boll.dev at gmail.com>
> ---
>  specs/Makefile.am | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/specs/Makefile.am b/specs/Makefile.am
> index a83cf40..f2454bc 100644
> --- a/specs/Makefile.am
> +++ b/specs/Makefile.am
> @@ -6,7 +6,7 @@ doc_DATA = XI2proto.html XIproto.html
>  dist_doc_DATA = XI2proto.txt XIproto.txt
>  
>  %.html: %.txt
> -	$(AM_V_GEN)$(ASCIIDOC) -o $@ $<
> +	$(AM_V_GEN)TZ=UTC $(ASCIIDOC) -o $@ $<
>  
>  CLEANFILES = $(doc_DATA)
>  
> -- 
> 2.1.4
 


More information about the xorg-devel mailing list