[osmcoastline] 01/03: Add patch to make the build reproducible.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Sat Jun 27 18:02:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository osmcoastline.
commit 9af6cf5b15db7e7c84b5572e836d2f2c17c24331
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sat Jun 27 19:53:59 2015 +0200
Add patch to make the build reproducible.
---
debian/changelog | 6 ++++++
debian/patches/reproducible-build.patch | 19 +++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 26 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index e6116d7..99d6f4f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+osmcoastline (2.0.1-2) UNRELEASED; urgency=medium
+
+ * Add patch to make the build reproducible.
+
+ -- Bas Couwenberg <sebastic at debian.org> Sat, 27 Jun 2015 19:53:46 +0200
+
osmcoastline (2.0.1-1) unstable; urgency=medium
* Initial release (Closes: #779944)
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..c280752
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,19 @@
+Description: Make build reproducible by setting the date embedded in man pages.
+ This patch was initially developed for osmium-tools,
+ but osmcoastline has the same issue.
+Author: Chris Lamb <lamby at debian.org>
+Bug-Debian: https://bugs.debian.org/790087
+Forwarded: not-needed
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -189,7 +189,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
index 6e496c3..30a23e3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
curently-typo.patch
+reproducible-build.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osmcoastline.git
More information about the Pkg-grass-devel
mailing list