[osgearth] 01/05: Apply patch by Reiner Herrmann to make build reproducible by setting the date embedded in man pages. (closes: #783026)

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Mon Apr 20 20:35:55 UTC 2015


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

sebastic pushed a commit to branch master
in repository osgearth.

commit 177114548d6f88e7baa2953a13c86d21b889959d
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Mon Apr 20 21:51:21 2015 +0200

    Apply patch by Reiner Herrmann to make build reproducible by setting the date embedded in man pages. (closes: #783026)
---
 debian/changelog | 2 ++
 debian/rules     | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 234c8e8..d4aa0d2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 osgearth (2.6.0+dfsg-1~exp2) UNRELEASED; urgency=medium
 
   * Add upstream metadata.
+  * Apply patch by Reiner Herrmann to make build reproducible by setting the
+    date embedded in man pages. (closes: #783026)
 
  -- Bas Couwenberg <sebastic at xs4all.nl>  Sat, 29 Nov 2014 00:50:38 +0100
 
diff --git a/debian/rules b/debian/rules
index 2f16caa..1de85b1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,6 +18,7 @@ CXXFLAGS += $(CPPFLAGS)
 
 PACKAGE := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
 VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//')
+BUILD_DATE := $(shell dpkg-parsechangelog | sed -n 's/^Date: //p' | LC_ALL=C date -u "+%d %B %Y" -f -)
 
 MANPAGES:=$(wildcard debian/man/*.*.xml)
 
@@ -38,7 +39,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/osgearth.git



More information about the Pkg-grass-devel mailing list