Skip to content

Commit

Permalink
Reproducable builds: remove __DATE__/__TIME__
Browse files Browse the repository at this point in the history
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 fvwmorg#99
  • Loading branch information
ThomasAdam authored and mikeandmore committed Nov 28, 2020
1 parent e27996d commit 5cfe597
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions fvwm/fvwm3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion fvwm/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"; */
}

Expand Down

0 comments on commit 5cfe597

Please sign in to comment.