[osmium-tool] 01/03: Add patch by Chris Lamb for reproducible build.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Sat Jun 27 09:33:30 UTC 2015


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

sebastic pushed a commit to branch master
in repository osmium-tool.

commit f4f999c7d45744be889c49edb5304932e1251546
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Jun 27 10:35:28 2015 +0200

    Add patch by Chris Lamb for reproducible build.
---
 debian/changelog                        |  7 +++++++
 debian/patches/reproducible-build.patch | 17 +++++++++++++++++
 debian/patches/series                   |  1 +
 3 files changed, 25 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 1023924..a9b9491 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+osmium-tool (1.0.1-2) UNRELEASED; urgency=medium
+
+  * Add patch by Chris Lamb for reproducible build.
+    (closes: #790087)
+
+ -- Bas Couwenberg <sebastic at debian.org>  Sat, 27 Jun 2015 10:34:03 +0200
+
 osmium-tool (1.0.1-1) unstable; urgency=medium
 
   * Initial release (Closes: #779938)
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..2564708
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,17 @@
+Description: Make build reproducible by setting the date embedded in man pages.
+Author: Chris Lamb <lamby at debian.org>
+Bug-Debian: https://bugs.debian.org/790087
+Forwarded: not-needed
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -101,7 +101,8 @@ endfunction()
+ if(PANDOC)
+     message(STATUS "Looking for pandoc - found")
+     message(STATUS "  Manual pages will be built")
+-    execute_process(COMMAND date "+%Y-%m-%d" OUTPUT_VARIABLE PUBDATE OUTPUT_STRIP_TRAILING_WHITESPACE)
++    execute_process(COMMAND dpkg-parsechangelog -SDate OUTPUT_VARIABLE DEBDATE OUTPUT_STRIP_TRAILING_WHITESPACE)
++    execute_process(COMMAND env LC_ALL=C date --utc --date ${DEBDATE} "+%Y-%m-%d" OUTPUT_VARIABLE PUBDATE OUTPUT_STRIP_TRAILING_WHITESPACE)
+         set(PANDOC_MAN_OPTIONS
+         -s
+         -t man
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..55077d0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+reproducible-build.patch

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



More information about the Pkg-grass-devel mailing list