[savi] 15/16: Add patch by Reiner Herrmann for reproducible builds. (closes: #829717)

Bas Couwenberg sebastic at debian.org
Fri Oct 21 16:44:01 UTC 2016


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

sebastic pushed a commit to branch master
in repository savi.

commit 3ebe2bdd3b899f2de35c14fb9375408f80c68d2d
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Sep 30 18:22:16 2016 +0200

    Add patch by Reiner Herrmann for reproducible builds. (closes: #829717)
---
 debian/changelog                        |  2 ++
 debian/patches/reproducible-build.patch | 15 +++++++++++++++
 debian/patches/series                   |  1 +
 3 files changed, 18 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a0d1ffc..c1879b5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,8 @@ savi (1.5.0-1) UNRELEASED; urgency=medium
   * Enable parallel dh.
   * Use CFLAGS from environment set by dpkg-buildflags.
   * Enable all hardening buildflags.
+  * Add patch by Reiner Herrmann for reproducible builds.
+    (closes: #829717)
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 30 Sep 2016 16:56:33 +0200
 
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..96d6096
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,15 @@
+Description: Strip build date, username and hostname to enable reproducible building
+Author: Reiner Herrmann <reiner at reiner-h.de>
+Bug-Debian: https://bugs.debian.org/829717
+
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -122,7 +122,7 @@ all:
+ 
+ version.c: FORCE
+ # echo -E may be useful on Linux if output is over multiple lines
+-	@echo "char *Version = \"SaVi was compiled with 'make ARCH=$(ARCH)'$(LINEEND)\\nVersion" `cat ../VERSION`"$(LINEEND)\\nBuilt by $(USER)@$(HOST)$(HOSTNAME), `date`\";" > ./version.c
++	@echo "char *Version = \"SaVi was compiled with 'make ARCH=$(ARCH)'$(LINEEND)\\nVersion" `cat ../VERSION`"\";" > ./version.c
+ 
+ 
+ objs: $(OBJS)
diff --git a/debian/patches/series b/debian/patches/series
index 9aa50f0..8e88990 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 enable_zlib.diff
 share_lib_div.diff
+reproducible-build.patch

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



More information about the Pkg-grass-devel mailing list