From 096bc21fdf95d5ec9c1d9c12de837d2ae28eb6a7 Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Mon, 25 May 2020 21:16:52 +0100 Subject: [PATCH] Reproducable builds: remove __DATE__/__TIME__ So that reproducible builds are possible, remove __DATE__/__TIME__ macros from the code. It's not clear who the original author(s) of this patch are, but it's not originally authored by me (Thomas Adam), but is most definitely a good idea. Fixes #99 --- fvwm/fvwm3.c | 3 +-- fvwm/session.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fvwm/fvwm3.c b/fvwm/fvwm3.c index 68db7b5d1..74342d991 100644 --- a/fvwm/fvwm3.c +++ b/fvwm/fvwm3.c @@ -1261,8 +1261,7 @@ static void setVersionInfo(void) int support_len; /* Set version information string */ - sprintf(version_str, "fvwm3 %s (%s) compiled on %s at %s", - VERSION, VERSIONINFO, __DATE__, __TIME__); + sprintf(version_str, "fvwm3 %s (%s)", VERSION, VERSIONINFO); Fvwm_VersionInfo = fxstrdup(version_str); sprintf(license_str, diff --git a/fvwm/session.c b/fvwm/session.c index 220605d4b..7ad006e8e 100644 --- a/fvwm/session.c +++ b/fvwm/session.c @@ -138,7 +138,7 @@ static char *get_version_string(void) { /* migo (14-Mar-2001): it is better to manually update a version string * in the stable branch, otherwise saving sessions becomes useless */ - return CatString3(VERSION, ", ", __DATE__); + return CatString3(VERSION, ", ", " "); /* return "2.6-0"; */ }