Source: miceamaze
Version: 1.8-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps

Hi!

While working on Debian's “reproducible builds” effort [1], we have
noticed that miceamaze doesn't build reproducibly.
A PNG icon contains an embedded timestamp of the build time.

The attached patch fixes this. Once applied, miceamaze can be
built reproducibly in our current experimental framework.

Regards,
 Reiner

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



diff --git a/debian/patches/no_png_timestamps.patch b/debian/patches/no_png_timestamps.patch
new file mode 100644
index 0000000..c22cbef
--- /dev/null
+++ b/debian/patches/no_png_timestamps.patch
@@ -0,0 +1,16 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Description: Prevent ambedding of timestamps into PNG icon.
+
+Index: miceamaze-1.8/Makefile
+===================================================================
+--- miceamaze-1.8.orig/Makefile
++++ miceamaze-1.8/Makefile
+@@ -29,7 +29,7 @@ miceamaze.xpm: data/images/mouse.png
+ 	convert -scale 32x32 $^ $@
+ 
+ miceamaze.png: data/images/mouse.png
+-	convert -scale 64x64 $^ $@
++	convert -scale 64x64 $^ +set date:create +set date:modify -define png:exclude-chunk=time $@
+ 
+ miceamaze.6.gz: man/miceamaze.6
+ 	gzip -nc $^ > $@
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d2ea731
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+no_png_timestamps.patch

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