[gnurobbo] 02/07: Sort the sources so the package can build reproducibly.

Stephen Kitt skitt at moszumanska.debian.org
Sun Jun 5 20:54:46 UTC 2016


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

skitt pushed a commit to branch master
in repository gnurobbo.

commit d81800413d5c3821529d04809405c16770a08aca
Author: Stephen Kitt <steve at sk2.org>
Date:   Sun Jun 5 22:46:05 2016 +0200

    Sort the sources so the package can build reproducibly.
---
 debian/changelog                        |  2 ++
 debian/patches/reproducible-build.patch | 14 ++++++++++++++
 debian/patches/series                   |  1 +
 3 files changed, 17 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index d7a276e..ee0014b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 gnurobbo (0.68+dfsg-2) UNRELEASED; urgency=medium
 
   * Switch to https: VCS URIs (see #810378).
+  * Sort the sources so the package can build reproducibly; thanks to
+    Reiner Herrmann for the patch (closes: #826424).
 
  -- Stephen Kitt <skitt at debian.org>  Fri, 22 Jan 2016 19:00:47 +0100
 
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..bbd7582
--- /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/Makefile
++++ b/Makefile
+@@ -46,7 +46,7 @@
+ 
+ # You won't need to alter these
+ TARGET=$(shell cat TARGET)
+-SOURCES=$(wildcard *.c)
++SOURCES=$(sort $(wildcard *.c))
+ OBJECTS=$(patsubst %.c, %.o, $(SOURCES))
+ VERSION=$(shell cat VERSION)
+ 
diff --git a/debian/patches/series b/debian/patches/series
index fc50065..8fe44ce 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 format-security.patch
 Makefile.diff
+reproducible-build.patch

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



More information about the Pkg-games-commits mailing list