Store build_date in .tizen.build-id section to avoid unnecessary rebuilds sandbox/jh0822kim/avoid_rebuilds
authorJunghyun Kim <jh0822.kim@samsung.com>
Tue, 30 Aug 2016 11:51:45 +0000 (20:51 +0900)
committerJunghyun Kim <jh0822.kim@samsung.com>
Tue, 30 Aug 2016 11:51:45 +0000 (20:51 +0900)
commite6c4e2b1de8299a78b33b94727a133a61d1b54eb
tree31813ae1346d06752ea3921a4e08e201508993f7
parent1b3368a79d7b58324b563d173b77be434c7920d8
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: I22d1498ab0ccc7d1ba1eaef2475069fdc5677b8d
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
libutil/op_version.c
pe_counting/ocount.cpp
pe_profiling/operf.cpp