[osgearth] 09/13: 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 May 25 19:42:17 UTC 2015


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

sebastic pushed a commit to branch stretch
in repository osgearth.

commit a172d00a978b41a9499833d20384a960058a4b6c
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)
    
    Conflicts:
    	debian/changelog
---
 debian/changelog | 2 ++
 debian/rules     | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index ed8678a..9b3e117 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,8 @@ osgearth (2.5.0+dfsg-3) UNRELEASED; urgency=medium
     shouldn't override pedantic tags.
   * Bump Standards-Version to 3.9.6, no changes.
   * 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 debian.org>  Mon, 25 May 2015 17:55:21 +0200
 
diff --git a/debian/rules b/debian/rules
index 4c26426..8a11c4d 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