Source: remake
Version: 3.82+dbg0.9+dfsg-2
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 the "reproducible builds" effort [1], we have noticed
that remake could not be built reproducibly.
The generated info page embeds a timestamp of the last modification
date. Because a patch is applied to the texinfo source, the modification
date changes to the build date.

The attached patch resets the timestamp back to the changelog date
to get a reproducible result.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules
index 3c64a40..7c6dfac 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,3 +11,7 @@
 override_dh_auto_configure:
 	dh_auto_configure $@ -- --disable-nls --enable-maintainer-mode
 
+override_dh_auto_build:
+	# fix timestamp of patched texinfo file for reproducible build
+	touch --date="@$(SOURCE_DATE_EPOCH)" doc/remake.texi
+	dh_auto_build

Attachment: signature.asc
Description: PGP signature

Reply via email to