Source: sunflow
Version: 0.07.2.svn396+dfsg-13
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps

Hi!

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

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

Regards,
 Reiner

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

diff --git a/debian/rules b/debian/rules
index a9ebb20..f67c0ac 100755
--- a/debian/rules
+++ b/debian/rules
@@ -74,7 +74,7 @@ build/sunflow::
 		debian/sunflow.pod -o debian/sunflow.1
 
 	# Render icons
-	convert -background "rgba(255,255,255,0)" -geometry 48x48 debian/sunflow.svg debian/sunflow.png
+	convert -background "rgba(255,255,255,0)" -geometry 48x48 debian/sunflow.svg +set date:create +set date:modify -define png:exclude-chunk=time debian/sunflow.png
 	convert -background "rgba(255,255,255,0)" -geometry 32x32 debian/sunflow.svg debian/sunflow.xpm
 
 clean::

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to