Source: maradns
Version: 2.0.09-4
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 Debian's “reproducible builds” effort [1], we have
noticed that maradns doesn't build reproducibly.
One problem is that it is embedding the build date into the binary.

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

Regards,
 Reiner

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

diff --git a/debian/rules b/debian/rules
index 1c5e26f..39f234f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,7 @@
 
 DH_VERBOSE=1
 UNAME:=$(shell uname -s)
-DATE:=$(shell date)
+DATE:=$(shell dpkg-parsechangelog -S Date)
 COMPILED:="${UNAME} system at ${DATE}"
 VERSION:=${shell dpkg-parsechangelog -ldebian/changelog | grep ^Version | cut -d" " -f2 | cut -d"-" -f1}
 ifeq ($(UNAME),Linux)

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