Source: acorn
Version: 0.11.0-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds"€ effort [1], we have noticed
that acorn could not be built reproducibly.
THe build date is embedded into a manpage generated by docbook2x-man

The attached patch fixes this by using the date from the latest
changelog entry instead.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds


diff --git a/debian/rules b/debian/rules
index 57836dd..7fb9b2a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+BUILD_DATE=$(shell dpkg-parsechangelog -S Date | LC_ALL=C date -u "+%d %B %Y" -f -)
+
 MANPAGES := $(wildcard debian/man/*.*.xml)
 
 %:
@@ -15,7 +17,7 @@ override_dh_clean:
 override_dh_auto_build:
 	# Create man page 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
 

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to