[prboom+] 01/01: Remove CPP timestamps to make builds reproducible

Fabian Greffrath fabian-guest at moszumanska.debian.org
Mon Feb 23 08:39:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

fabian-guest pushed a commit to branch master
in repository prboom+.

commit 99df02bb41d220aa20ec3fff896e1f9c852d8ac6
Author: Fabian Greffrath <fabian+debian at greffrath.com>
Date:   Mon Feb 23 09:37:43 2015 +0100

    Remove CPP timestamps to make builds reproducible
---
 debian/patches/reproducible-build.patch | 29 +++++++++++++++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 30 insertions(+)

diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..e6ea25e
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,29 @@
+Description: Remove timestamps from CPP macros
+ The C pre-processor macros '__DATE__' and '__TIME__' capture the current time
+ and thus will obviously make a build unreproducible. Usage of these macros
+ must simply be removed in order to make builds reproducible.
+Author: Fabian Greffrath <fabian+debian at greffrath.com>
+
+--- a/src/version.c
++++ b/src/version.c
+@@ -35,4 +35,3 @@
+ 
+ #include "version.h"
+ 
+-const char version_date[] = __DATE__ " " __TIME__;
+--- a/src/d_main.c
++++ b/src/d_main.c
+@@ -1466,11 +1466,11 @@ static void D_DoomMainSetup(void)
+     }
+ 
+     /* cphipps - the main display. This shows the build date, copyright, and game type */
+-    lprintf(LO_ALWAYS,PACKAGE_NAME" (built %s), playing: %s\n"
++    lprintf(LO_ALWAYS,PACKAGE_NAME", playing: %s\n"
+       PACKAGE_NAME" is released under the GNU General Public license v2.0.\n"
+       "You are welcome to redistribute it under certain conditions.\n"
+       "It comes with ABSOLUTELY NO WARRANTY. See the file COPYING for details.\n",
+-      version_date, doomverstr);
++      doomverstr);
+   }
+ 
+   if (devparm)
diff --git a/debian/patches/series b/debian/patches/series
index 85a12dc..5c86af4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ snd_midiplayer.patch
 snd_soundfont.patch
 cap_soundcommand.patch
 remove_google_adsense.patch
+reproducible-build.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/prboom+.git



More information about the Pkg-games-commits mailing list