Store build_date in .tizen.build-id section to avoid unnecessary rebuilds 46/86146/1 accepted/tizen/common/20160831.162119 accepted/tizen/ivi/20160901.065307 accepted/tizen/mobile/20160901.065050 accepted/tizen/tv/20160901.065143 accepted/tizen/wearable/20160901.065220 submit/tizen/20160831.052250
authorJunghyun Kim <jh0822.kim@samsung.com>
Tue, 30 Aug 2016 10:56:02 +0000 (19:56 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Tue, 30 Aug 2016 23:55:08 +0000 (08:55 +0900)
commit4f4333c6c52b654b01a297baae12b4897009b631
tree939e6ae7fa21ebf8fc6ebef4c612d50d50c0de50
parenta218eca9234089549c533a7b0379ada48997dd3b
Store build_date in .tizen.build-id section to avoid unnecessary rebuilds

- 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 __DATE__ and __TIME__ which make the result binary
is different everytime it is built.
To efficiently utilize OBS build mechanism and to modify the package
as little as possible, I propose to store this macro in .tizen.build-id
section. OBS build-compare tool does not check *.build-id section
in the binary.

Change-Id: Icc1b62f5f56506d64deae3a5fadabb82eca6f1e6
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
cmdutils.c