Package: spectacle
Version: 0.22-3
Tags: patch
Severity: wishlist
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Cheetah embeds two timestamps into generated Python code by default
which makes the build not reproducible [0].
Patch attached that adds addTimestampsToCompilerOutput=False.
[0] https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/spectacle/dsc/Makefile b/spectacle/dsc/Makefile
index ce2f89e..ed2c6f7 100644
--- a/spectacle/dsc/Makefile
+++ b/spectacle/dsc/Makefile
@@ -8,7 +8,7 @@ TEMPLATE_MODS=$(patsubst %.tmpl,%.py,$(TEMPLATES))
all: $(TEMPLATE_MODS)
%.py: %.tmpl
- $(CHEETAH) compile --settings='useStackFrames=False' $<
+ $(CHEETAH) compile
--settings='useStackFrames=False,addTimestampsToCompilerOutput=False' $<
cp $@ __init__.py
clean:
diff --git a/spectacle/spec/Makefile b/spectacle/spec/Makefile
index ce2f89e..ed2c6f7 100644
--- a/spectacle/spec/Makefile
+++ b/spectacle/spec/Makefile
@@ -8,7 +8,7 @@ TEMPLATE_MODS=$(patsubst %.tmpl,%.py,$(TEMPLATES))
all: $(TEMPLATE_MODS)
%.py: %.tmpl
- $(CHEETAH) compile --settings='useStackFrames=False' $<
+ $(CHEETAH) compile
--settings='useStackFrames=False,addTimestampsToCompilerOutput=False' $<
cp $@ __init__.py
clean: