From d8cf6f1988801f096114bdba6df552c78069dca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 16 Jan 2021 00:55:28 +0100 Subject: Replace __DATE__ with PACKAGE_DATETIME in the crash handler to allow reproducible build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 46ca3fa9524fb1800a26b65fc49b1e5bc41be613) --- src/crashhandler.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/crashhandler.cpp') 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 #include #include @@ -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"; -- cgit v1.2.1