[airstrike] 01/02: Add reproducible-build.patch and sort the list of source files

Markus Koschany apo at moszumanska.debian.org
Sun Jun 12 13:08:22 UTC 2016


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

apo pushed a commit to branch master
in repository airstrike.

commit bac39ac329d9413fc2a4f788d2e743e0d6003d77
Author: Markus Koschany <apo at debian.org>
Date:   Sun Jun 12 14:58:26 2016 +0200

    Add reproducible-build.patch and sort the list of source files
    
    to make the build reproducible.
    
    Thanks: Reiner Herrmann for the report and patch.
    Closes: #826421
---
 debian/patches/reproducible-build.patch | 14 ++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 15 insertions(+)

diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..e0b466c
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,14 @@
+Author: Reiner Herrmann <reiner at reiner-h.de>
+Description: Sort source files for deterministic linking order
+
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -2,7 +2,7 @@
+ #
+ CFLAGS += $(shell sdl-config --cflags) -Isprite -I. -Isupport -DINLINE=inline
+ CFLAGS += `dpkg-buildflags --get CFLAGS`
+-CFILES:= $(shell find . -name '*.c')
++CFILES:= $(sort $(shell find . -name '*.c'))
+ OBJECTS:= $(CFILES:.c=.o)
+ 
+ airstrike: $(OBJECTS)
diff --git a/debian/patches/series b/debian/patches/series
index 940d3b2..b038b3b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@ fix-spawn-level.patch
 Add-lm-to-fix-FTBFS-with-binutils-gold.patch
 hardening.patch
 spelling.patch
+reproducible-build.patch

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



More information about the Pkg-games-commits mailing list