Do not print timestamp in python-Cheeta by setting an argument. 70/86070/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170104.142939 accepted/tizen/3.0.m2/tv/20170104.143435 accepted/tizen/3.0.m2/wearable/20170104.143831 accepted/tizen/3.0/common/20161114.110907 accepted/tizen/3.0/ivi/20161011.044345 accepted/tizen/3.0/mobile/20161015.033522 accepted/tizen/3.0/tv/20161016.004709 accepted/tizen/3.0/wearable/20161015.083244 accepted/tizen/4.0/unified/20170816.013948 accepted/tizen/4.0/unified/20170828.222950 accepted/tizen/common/20160913.170436 accepted/tizen/ivi/20160921.232926 accepted/tizen/mobile/20160921.232912 accepted/tizen/tv/20160921.232920 accepted/tizen/unified/20170309.035902 accepted/tizen/wearable/20160921.232905 submit/tizen/20160913.071022 submit/tizen/20160921.004331 submit/tizen_3.0.m2/20170104.093752 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000003 submit/tizen_3.0_mobile/20161015.000003 submit/tizen_3.0_tv/20161015.000002 submit/tizen_3.0_wearable/20161015.000003 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100006 submit/tizen_unified/20170308.100413 tizen_4.0.m1_release
authorJunghyun Kim <jh0822.kim@samsung.com>
Tue, 30 Aug 2016 10:09:21 +0000 (19:09 +0900)
committerJunghyun Kim <jh0822.kim@samsung.com>
Tue, 30 Aug 2016 10:12:36 +0000 (03:12 -0700)
- 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 <jh0822.kim@samsung.com>
kickstart/Makefile

index ce2f89e..ed2c6f7 100644 (file)
@@ -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: