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 #99
  • Loading branch information
ThomasAdam committed May 25, 2020
1 parent 193a5c8 commit 096bc21
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 096bc21

Please sign in to comment.