summaryrefslogtreecommitdiffstats
path: root/src/crashhandler.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2021-01-16 00:55:28 +0100
committerSlávek Banko <[email protected]>2021-01-16 00:55:44 +0100
commitd8cf6f1988801f096114bdba6df552c78069dca6 (patch)
tree638b384a6bd36460529eb0df27d37a000463472c /src/crashhandler.cpp
parent83e491dc13f70e76bd4cd79313098379123be1e2 (diff)
downloadtork-d8cf6f1988801f096114bdba6df552c78069dca6.tar.gz
tork-d8cf6f1988801f096114bdba6df552c78069dca6.zip
Replace __DATE__ with PACKAGE_DATETIME in the crash handler
to allow reproducible build. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 46ca3fa9524fb1800a26b65fc49b1e5bc41be613)
Diffstat (limited to 'src/crashhandler.cpp')
-rw-r--r--src/crashhandler.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/crashhandler.cpp b/src/crashhandler.cpp
index 3deb9a6..cd2bafc 100644
--- a/src/crashhandler.cpp
+++ b/src/crashhandler.cpp
@@ -10,6 +10,10 @@
* *
***************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <tqfile.h>
#include <tqregexp.h>
#include <tqtextstream.h>
@@ -90,10 +94,14 @@ namespace torK
body += "======== DEBUG INFORMATION =======\n"
"Version: " TORK_VERSION "\n"
+#if defined( PACKAGE_DATETIME )
+ "Date, time: " PACKAGE_DATETIME "\n"
+#else
"Build date: " __DATE__ "\n"
+#endif
"CC version: " __VERSION__ "\n" //assuming we're using GCC
- "KDElibs: " TDE_VERSION_STRING "\n"
- "TQt: %2\n"
+ "TDElibs: " TDE_VERSION_STRING "\n"
+ "TQt: %2\n"
"CPU count: %6\n";
TQString cpucount = "unknown";