summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunghyun Kim <jh0822.kim@samsung.com>2016-08-30 11:35:39 (GMT)
committerJunghyun Kim <jh0822.kim@samsung.com>2016-08-30 11:35:39 (GMT)
commit8c7ac37bf288684d734fd3d3d03b65b823a005ae (patch)
treeb7a3b3b61b707c585f7b064225cf036cbc57132e
parent53a531a071f1d58e5c6a06b1d9459b25546c7ecb (diff)
downloadlsof-accepted/tizen_3.0_wearable.zip
lsof-accepted/tizen_3.0_wearable.tar.gz
lsof-accepted/tizen_3.0_wearable.tar.bz2
Store build_date in .tizen.build-id section to avoid unnecessary rebuildsHEADtizen_5.5.m2_releasetizen_4.0.m2_releasetizen_4.0.m1_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_unified/20170308.100415submit/tizen_5.5/20191031.000007submit/tizen_5.0/20181101.000007submit/tizen_4.0/20170828.100006submit/tizen_4.0/20170811.094300submit/tizen_3.0_wearable/20161015.000004submit/tizen_3.0_tv/20161015.000004submit/tizen_3.0_mobile/20161015.000004submit/tizen_3.0_ivi/20161010.000004submit/tizen_3.0_common/20161104.104000submit/tizen_3.0.m2/20170104.093753submit/tizen/20160921.004331submit/tizen/20160913.071022accepted/tizen/wearable/20160921.232909accepted/tizen/unified/20170309.040309accepted/tizen/tv/20160921.232922accepted/tizen/mobile/20160921.232915accepted/tizen/ivi/20160921.232929accepted/tizen/common/20160913.170440accepted/tizen/5.5/unified/20191031.010926accepted/tizen/5.0/unified/20181102.025845accepted/tizen/4.0/unified/20170828.222711accepted/tizen/4.0/unified/20170816.013237accepted/tizen/3.0/wearable/20161015.083712accepted/tizen/3.0/tv/20161016.005135accepted/tizen/3.0/mobile/20161015.033823accepted/tizen/3.0/ivi/20161011.050702accepted/tizen/3.0.m2/wearable/20170105.025053accepted/tizen/3.0.m2/tv/20170105.024929accepted/tizen/3.0.m2/mobile/20170105.024754tizen_5.5_tvtizen_5.5tizen_5.0tizen_4.0_tvtizen_4.0tizen_3.0_tvtizen_3.0.m2tizen_3.0tizenaccepted/tizen_wearableaccepted/tizen_unifiedaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_commonaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unifiedaccepted/tizen_4.0_unifiedaccepted/tizen_3.0_wearableaccepted/tizen_3.0_tvaccepted/tizen_3.0_mobileaccepted/tizen_3.0_iviaccepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_tvaccepted/tizen_3.0.m2_mobilerefs/changes/83/86083/1
- 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 LSOF_CCDATE in Makefile. This makes 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: I514d14b215ed2a49509d26ed24a00732612d27f7 Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
-rw-r--r--usage.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usage.c b/usage.c
index 7060c21..35a2794 100644
--- a/usage.c
+++ b/usage.c
@@ -39,6 +39,8 @@ static char *rcsid = "$Id: usage.c,v 1.31 2013/01/02 17:14:59 abe Exp $";
#include "lsof.h"
#include "version.h"
+__attribute__((__section__(".tizen.build-id")))
+static const char BUILD_DATE[] = LSOF_CCDATE;
/*
* Local function prototypes
@@ -916,7 +918,7 @@ usage(xv, fh, version)
(void) fprintf(stderr, " configuration info: %s\n", cp);
#endif /* defined(LSOF_CINFO) */
- if ((cp = isnullstr(LSOF_CCDATE)))
+ if ((cp = isnullstr(BUILD_DATE)))
(void) fprintf(stderr, " constructed: %s\n", cp);
cp = isnullstr(LSOF_HOST);
if (!(cp1 = isnullstr(LSOF_LOGNAME)))