[sr-dev] git:master:e066edee: Merge pull request #258 from kamailio/vseva/kex_fix_date

Victor Seva linuxmaniac at torreviejawireless.org
Mon Jul 20 20:11:27 CEST 2015


Module: kamailio
Branch: master
Commit: e066edee83e468f8257b6268eae8fc532141b717
URL: https://github.com/kamailio/kamailio/commit/e066edee83e468f8257b6268eae8fc532141b717

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2015-07-20T20:11:22+02:00

Merge pull request #258 from kamailio/vseva/kex_fix_date

kex: support VERSION_NODATE and VERSION_DATE for reproducible builds

---

Modified: modules/kex/mi_core.c

---

Diff:  https://github.com/kamailio/kamailio/commit/e066edee83e468f8257b6268eae8fc532141b717.diff
Patch: https://github.com/kamailio/kamailio/commit/e066edee83e468f8257b6268eae8fc532141b717.patch

---

diff --git a/modules/kex/mi_core.c b/modules/kex/mi_core.c
index 9174809..9a1dcc8 100644
--- a/modules/kex/mi_core.c
+++ b/modules/kex/mi_core.c
@@ -51,7 +51,15 @@
 #include "../../cfg/cfg.h"
 #include "../../cfg/cfg_ctx.h"
 
+#ifdef VERSION_NODATE
+#define BUILD_STR __FILE__ " compiled with " COMPILER "\n"
+#else
+#ifdef VERSION_DATE
+#define BUILD_STR __FILE__ " compiled on " VERSION_DATE " with " COMPILER "\n"
+#else
 #define BUILD_STR __FILE__ " compiled on "__TIME__ " " __DATE__ " with " COMPILER "\n"
+#endif
+#endif
 #define BUILD_STR_LEN (sizeof(BUILD_STR)-1)
 
 #ifndef SVNREVISION




More information about the sr-dev mailing list