Bug#786710: armada-backlight: please make the build reproducible

2016-10-20 Thread Jari Aalto
Fixed
https://anonscm.debian.org/cgit/collab-maint/armada-backlight.git/commit/?id=d994c086c57ba6afd6b62a16d5951240844e9d8a



Bug#786710: armada-backlight: please make the build reproducible

2015-05-24 Thread Reiner Herrmann
Source: armada-backlight
Version: 1.1-8
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 armada-backlight doesn't build reproducibly.
The build date is embedded into the manpage.

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

Regards,
 Reiner

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

diff --git a/debian/pod2man.mk b/debian/pod2man.mk
index d639c59..65df237 100644
--- a/debian/pod2man.mk
+++ b/debian/pod2man.mk
@@ -36,7 +36,7 @@ RELEASE ?= $(PACKAGE)
 
 # Optional variables to set
 MANSECT		?= 1
-PODCENTER	?= $$(date +%Y-%m-%d)
+PODCENTER	?= $$(dpkg-parsechangelog -S Date -l changelog | date -u +%Y-%m-%d -f -)
 
 # Directories
 MANSRC		=


signature.asc
Description: OpenPGP digital signature