Store build_date in .tizen.build-id section to avoid unnecessary rebuilds 54/86154/1 accepted/tizen/common/20160831.162039 accepted/tizen/ivi/20160901.065252 accepted/tizen/mobile/20160901.065030 accepted/tizen/tv/20160901.065129 accepted/tizen/wearable/20160901.065207 submit/tizen/20160831.052250
authorJunghyun Kim <jh0822.kim@samsung.com>
Tue, 30 Aug 2016 07:21:19 +0000 (16:21 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Wed, 31 Aug 2016 00:49:27 +0000 (09:49 +0900)
commit1491cb513376d428780c3dcfa03383f532e06d8a
treef8cd5004567aea6c012fb555ad0c432326686fc3
parenta152ebfeb96620337dd37433b7397a0fd921c055
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: Ic3af17799ab4fe5f06cb85e5a261033d87391bac
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
util/gif2rgb.c
util/gifbg.c
util/gifbuild.c
util/gifclrmp.c
util/gifcolor.c
util/gifecho.c
util/giffix.c
util/gifhisto.c
util/gifinto.c
util/giftext.c
util/gifwedge.c