[eureka] 07/09: Make builds reproducible

Fabian Greffrath fabian-guest at moszumanska.debian.org
Mon Feb 23 09:30:40 UTC 2015


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

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

commit ebbfb5095fdddd8ace569aead90aa6d1a6b4261f
Author: Fabian Greffrath <fabian+debian at greffrath.com>
Date:   Mon Feb 23 10:16:48 2015 +0100

    Make builds reproducible
---
 debian/patches/reproducible-build.patch | 17 +++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 18 insertions(+)

diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..d427933
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,17 @@
+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/main.cc
++++ b/src/main.cc
+@@ -839,7 +839,7 @@ static void ShowHelp()
+ 
+ static void ShowVersion()
+ {
+-	printf("Eureka version " EUREKA_VERSION " (" __DATE__ ")\n");
++	printf("Eureka version " EUREKA_VERSION "\n");
+ 
+ 	fflush(stdout);
+ }
diff --git a/debian/patches/series b/debian/patches/series
index dcd340b..265de1c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 xdg-install.patch
+reproducible-build.patch

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



More information about the Pkg-games-commits mailing list