[brainparty] 05/06: Add reproducible-build.patch and make the build reproducible.
Markus Koschany
apo at moszumanska.debian.org
Sun Jun 5 16:18:05 UTC 2016
This is an automated email from the git hooks/post-receive script.
apo pushed a commit to branch master
in repository brainparty.
commit 8da9dc0e0c12bad695327c6c958f6149528b5aa8
Author: Markus Koschany <apo at debian.org>
Date: Sun Jun 5 18:14:33 2016 +0200
Add reproducible-build.patch and make the build reproducible.
Thanks: Reiner Herrmann for the report and patch.
Closes: #826408
---
debian/patches/reproducible-build.patch | 12 ++++++++++++
debian/patches/series | 1 +
2 files changed, 13 insertions(+)
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..146d61c
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,12 @@
+Author: Reiner Herrmann <reiner at reiner-h.de>
+Description: Sort object files for deterministic linking order
+
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,5 @@
+ MACHINE= $(shell uname -s)
+-OBJFILES := $(patsubst %.cpp,%.o,$(wildcard *.cpp))
++OBJFILES := $(patsubst %.cpp,%.o,$(sort $(wildcard *.cpp)))
+
+ ifeq ($(MACHINE),Darwin)
+ INCLUDES = -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/SDL_image.framework/Headers -I/Library/Frameworks/SDL_mixer.framework/Headers -I/Library/Frameworks/SDL_ttf.framework/Headers -I/System/Library/Frameworks/OpenGL.framework/Headers
diff --git a/debian/patches/series b/debian/patches/series
index d70055e..3075f32 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ make.patch
unbundle-ttf.patch
disable-fistrun-prompt.patch
fix-FTBFS-with-GCC-4.9.patch
+reproducible-build.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/brainparty.git
More information about the Pkg-games-commits
mailing list