summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunghyun Kim <jh0822.kim@samsung.com>2016-08-30 16:21:19 +0900
committerJiyong Min <jiyong.min@samsung.com>2016-08-31 09:49:27 +0900
commit1491cb513376d428780c3dcfa03383f532e06d8a (patch)
treef8cd5004567aea6c012fb555ad0c432326686fc3
parenta152ebfeb96620337dd37433b7397a0fd921c055 (diff)
downloadgiflib-1491cb513376d428780c3dcfa03383f532e06d8a.tar.gz
giflib-1491cb513376d428780c3dcfa03383f532e06d8a.tar.bz2
giflib-1491cb513376d428780c3dcfa03383f532e06d8a.zip
- 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>
-rw-r--r--util/gif2rgb.c3
-rw-r--r--util/gifbg.c3
-rw-r--r--util/gifbuild.c3
-rw-r--r--util/gifclrmp.c3
-rw-r--r--util/gifcolor.c3
-rw-r--r--util/gifecho.c3
-rw-r--r--util/giffix.c3
-rw-r--r--util/gifhisto.c3
-rw-r--r--util/gifinto.c3
-rw-r--r--util/giftext.c3
-rw-r--r--util/gifwedge.c3
11 files changed, 22 insertions, 11 deletions
diff --git a/util/gif2rgb.c b/util/gif2rgb.c
index 1489435..c71d4fa 100644
--- a/util/gif2rgb.c
+++ b/util/gif2rgb.c
@@ -36,8 +36,9 @@ with our utilities mainly interesting as test tools.
#define PROGRAM_NAME "gif2rgb"
+__attribute__((__section__(".tizen.build-id")))
static char
- *VersionStr =
+ VersionStr[] =
PROGRAM_NAME
VERSION_COOKIE
" Gershon Elber, "
diff --git a/util/gifbg.c b/util/gifbg.c
index e647269..eb15a50 100644
--- a/util/gifbg.c
+++ b/util/gifbg.c
@@ -39,8 +39,9 @@ gifbg - generate a test-pattern GIF
#define DEFAULT_DIR "T" /* TOP (North) direction. */
+__attribute__((__section__(".tizen.build-id")))
static char
- *VersionStr =
+ VersionStr[] =
PROGRAM_NAME
VERSION_COOKIE
" Gershon Elber, "
diff --git a/util/gifbuild.c b/util/gifbuild.c
index e58ea15..70fea58 100644
--- a/util/gifbuild.c
+++ b/util/gifbuild.c
@@ -16,8 +16,9 @@ gifbuild - dump GIF data in a textual format, or undump it to a GIF
#define PROGRAM_NAME "gifbuild"
+__attribute__((__section__(".tizen.build-id")))
static char
- *VersionStr =
+ VersionStr[] =
PROGRAM_NAME
VERSION_COOKIE
" Eric Raymond, "
diff --git a/util/gifclrmp.c b/util/gifclrmp.c
index c44b95d..7d35d7c 100644
--- a/util/gifclrmp.c
+++ b/util/gifclrmp.c
@@ -17,8 +17,9 @@ gifclrmap - extract colormaps from GIF images
#define PROGRAM_NAME "gifclrmp"
+__attribute__((__section__(".tizen.build-id")))
static char
- *VersionStr =
+ VersionStr[] =
PROGRAM_NAME
VERSION_COOKIE
" Gershon Elber, "
diff --git a/util/gifcolor.c b/util/gifcolor.c
index a97ed6b..1700b07 100644
--- a/util/gifcolor.c
+++ b/util/gifcolor.c
@@ -18,8 +18,9 @@ gifcolor - generate color test-pattern GIFs
#define LINE_LEN 40
#define IMAGEWIDTH LINE_LEN*GIF_FONT_WIDTH
+__attribute__((__section__(".tizen.build-id")))
static char
- *VersionStr =
+ VersionStr[] =
PROGRAM_NAME
VERSION_COOKIE
" Gershon Elber, "
diff --git a/util/gifecho.c b/util/gifecho.c
index d868c3f..9b748f8 100644
--- a/util/gifecho.c
+++ b/util/gifecho.c
@@ -25,8 +25,9 @@ gifecho - generate a GIF from ASCII text
#define DEFAULT_COLOR_GREEN 255
#define DEFAULT_COLOR_BLUE 255
+__attribute__((__section__(".tizen.build-id")))
static char
- *VersionStr =
+ VersionStr[] =
PROGRAM_NAME
VERSION_COOKIE
" Gershon Elber, "
diff --git a/util/giffix.c b/util/giffix.c
index 370a110..907c3ef 100644
--- a/util/giffix.c
+++ b/util/giffix.c
@@ -15,8 +15,9 @@ giffix - attempt to fix a truncated GIF
#define PROGRAM_NAME "giffix"
+__attribute__((__section__(".tizen.build-id")))
static char
- *VersionStr =
+ VersionStr[] =
PROGRAM_NAME
VERSION_COOKIE
" Gershon Elber, "
diff --git a/util/gifhisto.c b/util/gifhisto.c
index 2e6bd7b..e8e695f 100644
--- a/util/gifhisto.c
+++ b/util/gifhisto.c
@@ -19,8 +19,9 @@ gifhisto - make a color histogram from image color frequencies
#define DEFAULT_HISTO_HEIGHT 256
#define HISTO_BITS_PER_PIXEL 2 /* Size of bitmap for histogram GIF. */
+__attribute__((__section__(".tizen.build-id")))
static char
- *VersionStr =
+ VersionStr[] =
PROGRAM_NAME
VERSION_COOKIE
" Gershon Elber, "
diff --git a/util/gifinto.c b/util/gifinto.c
index 31d3548..306c489 100644
--- a/util/gifinto.c
+++ b/util/gifinto.c
@@ -27,8 +27,9 @@ gifinto - save GIF on stdin to file if size over set threshold
#define DEFAULT_OUT_NAME "GifInto.Gif"
#define DEFAULT_TMP_NAME "TempInto.XXXXXX"
+__attribute__((__section__(".tizen.build-id")))
static char
- *VersionStr =
+ VersionStr[] =
PROGRAM_NAME
VERSION_COOKIE
" Gershon Elber, "
diff --git a/util/giftext.c b/util/giftext.c
index e010f40..864f2d5 100644
--- a/util/giftext.c
+++ b/util/giftext.c
@@ -21,8 +21,9 @@ giftext - dump GIF pixels and metadata as text
#define MAKE_PRINTABLE(c) (isprint(c) ? (c) : ' ')
+__attribute__((__section__(".tizen.build-id")))
static char
- *VersionStr =
+ VersionStr[] =
PROGRAM_NAME
VERSION_COOKIE
" Gershon Elber, "
diff --git a/util/gifwedge.c b/util/gifwedge.c
index a8f587f..d8be2d9 100644
--- a/util/gifwedge.c
+++ b/util/gifwedge.c
@@ -20,8 +20,9 @@ gifwedge - create a GIF test pattern
#define DEFAULT_NUM_LEVELS 16 /* Number of colors to gen the image. */
+__attribute__((__section__(".tizen.build-id")))
static char
- *VersionStr =
+ VersionStr[] =
PROGRAM_NAME
VERSION_COOKIE
" Gershon Elber, "