[mapserver] 01/08: Make build reproducible by setting the date embedded in man pages.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Thu Apr 23 22:57:35 UTC 2015


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

sebastic pushed a commit to branch master
in repository mapserver.

commit 0beff73e34d9371eae13123667c4e74424a67b78
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Thu Apr 23 20:03:14 2015 +0200

    Make build reproducible by setting the date embedded in man pages.
---
 debian/changelog | 3 +++
 debian/rules     | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 3b35a73..d041a08 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,9 @@
 mapserver (6.4.1-6) UNRELEASED; urgency=medium
 
   * Add upstream metadata.
+  * Make build reproducible by setting the date embedded in man pages.
+    Thanks to Reiner Herrmann for the patch.
+    (closes: #783146)
 
  -- Bas Couwenberg <sebastic at xs4all.nl>  Fri, 28 Nov 2014 21:07:43 +0100
 
diff --git a/debian/rules b/debian/rules
index 604b749..c30657e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,6 +26,7 @@ PHP5API=$(shell php-config5 --phpapi)
 MANPAGES:=$(wildcard debian/man/*.*.xml)
 
 MS_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')
+BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u "+%d %B %Y" -f -)
 
 CMAKE_OPTS:= \
 		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
@@ -106,7 +107,7 @@ override_dh_auto_configure:
 override_dh_auto_build:
 	# Create man pages from DocBook XML
 	for x in $(MANPAGES) ; do \
-	  docbook2x-man $$x ; \
+	  docbook2x-man --string-param header-3="$(BUILD_DATE)" $$x ; \
 	  mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \
 	done
 

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



More information about the Pkg-grass-devel mailing list