Bug#1042955: zzzeeksphinx: please make the output reproducible

2024-07-07 Thread James Addison
Source: zzzeeksphinx
Followup-For: Bug #1042955
Control: tags -1 - pending
Control: fixed -1 1.5.0-1
Control: close -1

I think this can be closed; the reproducibility fix here was included in the
upload of 1.5.0-1 and appears to be working well: mako is building
reproducibly.

There may be other nondeterminism issue(s) to track down in sqlalchemy but
those do not appear to be related to this bug.

If I'm mistaken and/or there's another reason to keep this active, please feel
free to re-open the bug.



Bug#1042955: zzzeeksphinx: please make the output reproducible

2024-03-01 Thread James Addison
Source: zzzeeksphinx
Followup-For: Bug #1042955
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Control: tags -1 fixed-upstream

The patch from this bugreport has been forwarded and accepted (with
modifications) into the upstream zzzeeksphinx theme, and is included in the
v1.5.0 release.



Bug#1042955: zzzeeksphinx: please make the output reproducible

2024-02-20 Thread James Addison
Followup-For: Bug #1042955
Control: forwarded -1 https://github.com/sqlalchemyorg/zzzeeksphinx/issues/23



Bug#1042955: zzzeeksphinx: please make the output reproducible

2023-08-03 Thread Chris Lamb
Source: zzzeeksphinx
Version: 1.4.0-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: toolchain timestamps
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
zzzeeksphinx was generating output that was not reproducible.

This is because the template includes:

% if show_sphinx:
Created using http://sphinx.pocoo.org/;>Sphinx 
${sphinx_version|h}.
% endif

Documentation last generated: ${datetime.datetime.now().strftime("%c")}
^^

This was affecting the reproduciblity of (at least) the mako in
Debian. A patch is attached that makes this use SOURCE_DATE_EPOCH
instead.

  [0] https://reproducible-builds.org/


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-
diff --git a/zzzeeksphinx/themes/zsbase/layout.mako 
b/zzzeeksphinx/themes/zsbase/layout.mako
index 969b6df..dfea0e1 100644
--- a/zzzeeksphinx/themes/zsbase/layout.mako
+++ b/zzzeeksphinx/themes/zsbase/layout.mako
@@ -1,8 +1,14 @@
 ## coding: utf-8
 
 <%!
+import os
+import time
 import datetime
 
+now = datetime.datetime.utcfromtimestamp(
+int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
+)
+
 local_script_files = []
 
 default_css_files = [
@@ -307,7 +313,7 @@ withsidebar = bool(toc) and (
 Created using http://sphinx.pocoo.org/;>Sphinx 
${sphinx_version|h}.
 % endif
 
-Documentation last generated: ${datetime.datetime.now().strftime("%c")}
+Documentation last generated: ${now.strftime("%c")}