Bug#782211: desproxy: please make the build reproducible

2016-10-20 Thread Jari Aalto
Fixed
https://anonscm.debian.org/cgit/collab-maint/dbar.git/commit/?id=3e474047a5bcacf8fc0b3817a518531625e9593d



Bug#782211: desproxy: please make the build reproducible

2015-04-09 Thread Reiner Herrmann
Source: desproxy
Version: 0.1.0~pre3-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 desproxy doesn't build reproducibly.
It embeds the current date into the manpage.

The attached patch fixes this by using the last changelog date
as a timestamp that will be embedded.

Regards,
 Reiner

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






diff --git a/debian/pod2man.mk b/debian/pod2man.mk
index 64bc797..f878a28 100644
--- a/debian/pod2man.mk
+++ b/debian/pod2man.mk
@@ -34,9 +34,10 @@ endif
 PACKAGE		?= package
 
 # Optional variables to set
+BUILD_DATE	?= $$(dpkg-parsechangelog -S Date -lchangelog)
 MANSECT		?= 1
 PODCENTER 	?= User Commands
-PODDATE		= $$(date +%Y-%m-%d)
+PODDATE		= $$(date -u +%Y-%m-%d -d $(BUILD_DATE))
 
 # Directories
 MANSRC		=


signature.asc
Description: OpenPGP digital signature