[megaglest] 04/06: Add reproducible-build.patch

Markus Koschany apo-guest at moszumanska.debian.org
Fri Nov 13 20:39:41 UTC 2015


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

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

commit 2a14cb06657b7853e07538a846071a168373b8ae
Author: Markus Koschany <apo at debian.org>
Date:   Fri Nov 13 20:45:03 2015 +0100

    Add reproducible-build.patch
    
    and make the build reproducible.
---
 debian/patches/reproducible-build.patch | 31 +++++++++++++++++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 32 insertions(+)

diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..e63e01b
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,31 @@
+From: Markus Koschany <apo at debian.org>
+Date: Fri, 13 Nov 2015 20:44:49 +0100
+Subject: reproducible build
+
+---
+ source/glest_game/facilities/game_util.cpp | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/source/glest_game/facilities/game_util.cpp b/source/glest_game/facilities/game_util.cpp
+index e83b0a7..f3b9b5c 100644
+--- a/source/glest_game/facilities/game_util.cpp
++++ b/source/glest_game/facilities/game_util.cpp
+@@ -198,9 +198,6 @@ string getNetworkVersionGITString() {
+ 
+ string getCompileDateTime() {
+ 	static string result = "";
+-	if(result == "") {
+-		result = string(__DATE__) + " " + string(__TIME__);
+-	}
+ 	return result;
+ }
+ 
+@@ -211,7 +208,7 @@ string getNetworkPlatformFreeVersionString() {
+ string getAboutString1(int i) {
+ 	switch(i) {
+ 	case 0: return "MegaGlest " + glestVersionString + " (" + "Shared Library " + sharedLibVersionString + ")";
+-	case 1: return "Built: " + string(__DATE__) + " " + GIT_Rev;
++	case 1: return "Built: " + GIT_Rev;
+ 	case 2: return "Copyright 2001-2010 The Glest Team";
+ 	case 3: return "Copyright 2010-2015 The MegaGlest Team";
+ 	}
diff --git a/debian/patches/series b/debian/patches/series
index 054e352..5bcaaf6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix-cmake-3.2-X11-FTBFS.patch
+reproducible-build.patch

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



More information about the Pkg-games-commits mailing list