From 69af6d0e1ba6b17f188213fb0d9f367b54f4753f Mon Sep 17 00:00:00 2001 From: Junghyun Kim Date: Tue, 30 Aug 2016 19:09:21 +0900 Subject: [PATCH] Do not print timestamp in python-Cheeta by setting an argument. - PROBLEM We use OBS to build packages in Tizen. There is a mechanism not to rebuild if the result binary is the same. For example, there is a dependency graph: A->B->C. If A is modified, B would be built. If the result RPM of B is not changed, OBS does not trigger a build of C. To effectively use this mechanism, each packages make sure that the result binary should be the same if the input source is the same. This package uses python-Cheeta package. This python-Cheeta package prints code generation time like below: [ 49s] -__CHEETAH_genTime__ = 1471828672.098387 [ 49s] -__CHEETAH_genTimestamp__ = 'Mon Aug 22 01:17:52 2016' [ 49s] +__CHEETAH_genTime__ = 1471844774.503833 [ 49s] +__CHEETAH_genTimestamp__ = 'Mon Aug 22 05:46:14 2016 This timelog is not printed if we insert settings parameter: $(CHEETAH) compile --settings='useStackFrames=False,addTimestampsToCompilerOutput=False' $< Change-Id: Ie81694a9244974b41d2cfa4d9d8bf91641648515 Signed-off-by: Junghyun Kim --- kickstart/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kickstart/Makefile b/kickstart/Makefile index ce2f89e..ed2c6f7 100644 --- a/kickstart/Makefile +++ b/kickstart/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: -- 2.7.4