[simutrans] 02/03: Add reproducible-build.patch

Markus Koschany apo-guest at moszumanska.debian.org
Fri Nov 20 16:22:43 UTC 2015


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

apo-guest pushed a commit to branch master
in repository simutrans.

commit b6d8451515b4ec529b2c06dca7fd3edefee052c2
Author: Markus Koschany <apo at debian.org>
Date:   Fri Nov 20 16:59:42 2015 +0100

    Add reproducible-build.patch
---
 debian/patches/reproducible-build.patch | 23 +++++++++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..95877b6
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,23 @@
+From: Markus Koschany <apo at debian.org>
+Date: Fri, 20 Nov 2015 16:54:36 +0100
+Subject: reproducible build
+
+Make the build reproducible by removing the __DATE__ macro.
+See also https://wiki.debian.org/ReproducibleBuilds
+---
+ simversion.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/simversion.h b/simversion.h
+index 0ead8ad..78034b3 100644
+--- a/simversion.h
++++ b/simversion.h
+@@ -45,7 +45,7 @@
+ 
+ #define VERSION_NUMBER QUOTEME(SIM_VERSION_MAJOR) "." QUOTEME(SIM_VERSION_MINOR) SIM_VERSION_PATCH_STRING SIM_VERSION_BUILD_STRING
+ 
+-#define VERSION_DATE __DATE__
++#define VERSION_DATE ""
+ 
+ #define SAVEGAME_PREFIX  "Simutrans "
+ #define XML_SAVEGAME_PREFIX  "<?xml version=\"1.0\"?>"
diff --git a/debian/patches/series b/debian/patches/series
index 2ff1211..dae1c24 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@
 0505-link-less-libraries.diff
 0110-sha1-replacement.diff
 0510-missing_uncommon_mk.patch
+reproducible-build.patch

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



More information about the Pkg-games-commits mailing list