Source: osgearth Version: 2.5.0+dfsg-2 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-CC: reproducible-bui...@lists.alioth.debian.org
Hi! While working on Debian's “reproducible builds” effort [1], we have noticed that osgearth doesn't build reproducibly. During build the current date is embedded into the manpages. The attached patch uses the date from the latest changelog entry inside the manpages. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules index 4c26426..97fa72f 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 -S Date | 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
signature.asc
Description: OpenPGP digital signature