From c5936a31e5d8a581936db76928a6422ae2dd3ed2 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Thu, 12 Jun 2025 13:58:52 +0200 Subject: [PATCH] Remove __DATE__ from version message This made the build unreproducible. The Debian package has been patching out this information since 2016, with no ill effects reported. --- connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connection.c b/connection.c index ab18340e..d79550b7 100644 --- a/connection.c +++ b/connection.c @@ -1010,7 +1010,7 @@ static char CC_initial_log(ConnectionClass *self, const char *func) const ConnInfo *ci = &self->connInfo; char *encoding, vermsg[128]; - snprintf(vermsg, sizeof(vermsg), "Driver Version='%s,%s'" + snprintf(vermsg, sizeof(vermsg), "Driver Version='%s'" #ifdef WIN32 " linking %d" #ifdef _MT @@ -1028,7 +1028,7 @@ static char CC_initial_log(ConnectionClass *self, const char *func) #endif /* DEBUG */ " library" #endif /* WIN32 */ - "\n", POSTGRESDRIVERVERSION, __DATE__ + "\n", POSTGRESDRIVERVERSION #ifdef _MSC_VER , _MSC_VER #endif /* _MSC_VER */