Source: equivs
Version: 2.0.9
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-CC: [email protected]

Hi!

While working on Debian's “reproducible builds” effort [1], we have
noticed that equivs 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/rules b/debian/rules
index 7d54ec4..cb2563f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,9 +5,10 @@
 #export DH_VERBOSE=1
 PKG := equivs
 MANPAGES := debian/equivs-control.1 debian/equivs-build.1
+BUILD_DATE = $(shell dpkg-parsechangelog -S Date)
 
 %.1: %.pod
-	pod2man --section=1 --release="$$(date +'%d %b %Y')" \
+	pod2man --section=1 --release="$$(LC_ALL=C date -u +'%d %b %Y' -d '$(BUILD_DATE)')" \
 	--center="Debian/GNU" --date=' ' $< > $@
 
 build-arch:

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to