Source: gravitation
Version: 3+dfsg1-4
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 gravitation doesn't build reproducibly.
PNG icons generated with convert have timestamps embedded.

The attached patch fixes this by preventing the embedding of timestamps.
Once applied, gravitation can be built reproducibly in our current
experimental framework.

Regards,
 Reiner

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

diff --git a/debian/changelog b/debian/changelog
index f522ee9..f6d9293 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+gravitation (3+dfsg1-4.0~reproducible1) UNRELEASED; urgency=low
+
+  * Prevent embedding of timestamps in icons to make build reproducible.
+
+ -- Reiner Herrmann <rei...@reiner-h.de>  Mon, 02 Feb 2015 19:44:58 +0100
+
 gravitation (3+dfsg1-4) unstable; urgency=low
 
   * Wrap and sort various files
diff --git a/debian/rules b/debian/rules
index 5adbc36..694260a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,9 +11,9 @@ override_dh_auto_configure:
 
 override_dh_auto_build:
 	convert -type Grayscale -negate ./game5/build/macOSX/iconMask.png mask.png
-	composite -compose CopyOpacity mask.png ./game5/build/macOSX/iconColor.png gravitation.png
+	composite -compose CopyOpacity mask.png ./game5/build/macOSX/iconColor.png -define png:exclude-chunk=time gravitation.png
 	mkdir -p 32x32
-	convert -scale 32x32 gravitation.png 32x32/gravitation.png
+	convert -scale 32x32 gravitation.png +set date:create +set date:modify -define png:exclude-chunk=time 32x32/gravitation.png
 	convert 32x32/gravitation.png 32x32/gravitation.xpm
 	sed -i -e 's/PLATFORM_COMPILE_FLAGS = */PLATFORM_COMPILE_FLAGS = $$(CFLAGS) $$(CPPFLAGS) /' game5/gameSource/Makefile
 	sed -i -e 's/PLATFORM_LINK_FLAGS = */PLATFORM_LINK_FLAGS = $$(LDFLAGS) /' game5/gameSource/Makefile

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