From 60f2efab89e5ea66261798274c5ce77e56e78da1 Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Wed, 24 Dec 2025 12:27:11 +0900
Subject: Remove build date code. The info does not add anything useful and
 make reproducible builds not possible

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 admin/acinclude.m4.in                      | 12 ------------
 src/config.h.in                            |  3 ---
 src/kvi_configstatus.h                     |  3 ---
 src/kvilib/config/kvi_settings.h           |  5 -----
 src/kvilib/config/kvi_wincfg.h             |  3 ---
 src/kvirc/kernel/kvi_main.cpp              |  1 -
 src/kvirc/kvs/kvi_kvs_corefunctions_sz.cpp |  1 -
 src/kvirc/sparser/kvi_sp_ctcp.cpp          |  2 +-
 8 files changed, 1 insertion(+), 29 deletions(-)

diff --git a/admin/acinclude.m4.in b/admin/acinclude.m4.in
index 0484874..564c121 100644
--- a/admin/acinclude.m4.in
+++ b/admin/acinclude.m4.in
@@ -2212,18 +2212,6 @@ AC_DEFUN([AC_SS_FINAL_CONFIG],
 	AC_SUBST(SS_QT_MOC)
 	AC_SUBST(SS_QT_MOC_FLAGS)
 
- 	build_date=`date -u`
-
-	if test -z "$build_date"; then
-		build_date=`date`
-	fi
-
-	if test -z "$build_date"; then
-		build_date="unknown"
-	fi
-
-	AC_DEFINE_UNQUOTED([BUILD_DATE],"$build_date", [this is the build date (configure date rather)])
-
 	dnl # Let's sort the build flags
 
 	SS_AUX_CHARS="a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9"
diff --git a/src/config.h.in b/src/config.h.in
index c19a4ad..a339fad 100644
--- a/src/config.h.in
+++ b/src/config.h.in
@@ -6,9 +6,6 @@
 /* define this if you are on a big endian machine */
 #undef BIG_ENDIAN_MACHINE_BYTE_ORDER
 
-/* this is the build date (configure date rather) */
-#undef BUILD_DATE
-
 /* these are the build flags */
 #undef BUILD_FLAGS
 
diff --git a/src/kvi_configstatus.h b/src/kvi_configstatus.h
index 022bf91..1ef6747 100644
--- a/src/kvi_configstatus.h
+++ b/src/kvi_configstatus.h
@@ -7,9 +7,6 @@
 /* define this if you are on a big endian machine */
 /* #undef BIG_ENDIAN_MACHINE_BYTE_ORDER */
 
-/* this is the build date (configure date rather) */
-#define BUILD_DATE "Thu Aug 18 18:45:24 UTC 2011"
-
 /* these are the build flags */
 #define BUILD_FLAGS "i686-bcefiopsxAGTZ"
 
diff --git a/src/kvilib/config/kvi_settings.h b/src/kvilib/config/kvi_settings.h
index c9baf3a..de93871 100644
--- a/src/kvilib/config/kvi_settings.h
+++ b/src/kvilib/config/kvi_settings.h
@@ -76,10 +76,6 @@
 		#define VERSION "?.?.?"
 	#endif
 	
-	#ifndef BUILD_DATE
-		#define BUILD_DATE "?"
-	#endif
-	
 	#ifndef BUILD_FLAGS
 		#define BUILD_FLAGS "?"
 	#endif
@@ -88,7 +84,6 @@
 
 #define KVI_VERSION VERSION
 #define KVI_VERSION_BRANCH VERSION_BRANCH
-#define KVI_BUILD_DATE BUILD_DATE
 #define KVI_BUILD_FLAGS BUILD_FLAGS
 
 #define KVI_RELEASE_NAME "Virgo"
diff --git a/src/kvilib/config/kvi_wincfg.h b/src/kvilib/config/kvi_wincfg.h
index 062aa81..c10ad5b 100644
--- a/src/kvilib/config/kvi_wincfg.h
+++ b/src/kvilib/config/kvi_wincfg.h
@@ -85,9 +85,6 @@
 /* define if you have the SIOCGIFADDR ioctl and the related headers */
 /* #undef COMPILE_GET_INTERFACE_ADDRESS */
 
-/* this is the build date (configure date rather) */
-#define BUILD_DATE __DATE__" "__TIME__
-
 /* these are the build flags */
 #define BUILD_FLAGS "win32"
 
diff --git a/src/kvirc/kernel/kvi_main.cpp b/src/kvirc/kernel/kvi_main.cpp
index aade9ad..944f71b 100644
--- a/src/kvirc/kernel/kvi_main.cpp
+++ b/src/kvirc/kernel/kvi_main.cpp
@@ -77,7 +77,6 @@ int parseArgs(ParseArgs * a)
 		{
 			KviTQString::appendFormatted(szMessage,"KVIrc %s '%s'\n",KVI_VERSION,KVI_RELEASE_NAME);
 			KviTQString::appendFormatted(szMessage,"Sources date: %s\n",KVI_SOURCES_DATE);
-			KviTQString::appendFormatted(szMessage,"Build date: %s\n",KVI_BUILD_DATE);
 			KviTQString::appendFormatted(szMessage,"Home page: http://www.kvirc.net/\n");
 
 #ifdef COMPILE_ON_WINDOWS
diff --git a/src/kvirc/kvs/kvi_kvs_corefunctions_sz.cpp b/src/kvirc/kvs/kvi_kvs_corefunctions_sz.cpp
index 8feb7ee..b78c0be 100644
--- a/src/kvirc/kvs/kvi_kvs_corefunctions_sz.cpp
+++ b/src/kvirc/kvs/kvi_kvs_corefunctions_sz.cpp
@@ -1037,7 +1037,6 @@ namespace KviKvsCoreFunctions
 		else {
 			if(szType.find('r') != -1)KVSCF_pRetBuffer->setString(KVI_RELEASE_NAME);
 			else if(szType.find('s') != -1)KVSCF_pRetBuffer->setString(KVI_SOURCES_DATE);
-			else if(szType.find('b') != -1)KVSCF_pRetBuffer->setString(KVI_BUILD_DATE);
 			else KVSCF_pRetBuffer->setString(KVI_VERSION);
 		}
 		return true;
diff --git a/src/kvirc/sparser/kvi_sp_ctcp.cpp b/src/kvirc/sparser/kvi_sp_ctcp.cpp
index 7ed3dc7..865f35d 100644
--- a/src/kvirc/sparser/kvi_sp_ctcp.cpp
+++ b/src/kvirc/sparser/kvi_sp_ctcp.cpp
@@ -1143,7 +1143,7 @@ void KviServerParser::parseCtcpRequestVersion(KviCtcpMessage *msg)
 	{
 		if(!KVI_OPTION_BOOL(KviOption_boolIgnoreCtcpVersion))
 		{
-			TQString szVersion = "KVIrc " KVI_VERSION " '" KVI_RELEASE_NAME "' " KVI_SOURCES_DATE " - build " KVI_BUILD_DATE " - " KVI_BUILD_FLAGS;
+			TQString szVersion = "KVIrc " KVI_VERSION " '" KVI_RELEASE_NAME "' " KVI_SOURCES_DATE " - " KVI_BUILD_FLAGS;
 			szVersion.append(TQString(" - %1 (%2)").arg(KviOsInfo::name()).arg(KviOsInfo::release()));
 			//szVersion.append(TQString(" - TQt Version: %1 - %2").arg(tqVersion()).arg(__tr2qs("http://www.kvirc.net/")));
 			if(!KVI_OPTION_STRING(KviOption_stringCtcpVersionPostfix).isEmpty())
-- 
cgit v1.2.3

