Source: mboxcheck
Version: 0.2.0
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 mboxcheck could not be built reproducibly.
The manpage generated during build contains the build date.

The attached patch fixes this by setting the embedded date to
the last date from the changelog.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules
index 67bc158..e411bb3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,7 +20,7 @@ build: configure-stamp build-stamp
 build-stamp:
 	dh_testdir
 
-	$(MAKE)
+	$(MAKE) DDATE="$(shell dpkg-parsechangelog -S Date | LC_ALL=C date -u "+%b %Y" -f -)"
 
 	# Add here commands to compile the package.
 	touch build-stamp

Attachment: signature.asc
Description: PGP 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