From f404bdb5804a32fe60cef374db82cda9643d5382 Mon Sep 17 00:00:00 2001
From: Reiner Herrmann <reiner@reiner-h.de>
Date: Mon, 2 Mar 2015 10:00:19 +0100
Subject: [PATCH] Removed the timestamp from the PNG files to make the build
 reproducible (Closes: #779056)

---
 debian/changelog | 6 ++++++
 debian/rules     | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 9748108..c91298c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,12 @@
 javahelp2 (2.0.05.ds1-8) UNRELEASED; urgency=medium
 
   * Team upload.
+
+  [ Reiner Herrmann ]
+  * Removed the timestamp from the PNG files to make the build reproducible.
+    (Closes: #779056)
+
+  [ Emmanuel Bourg ]
   * Moved the package to Git
   * Standards-Version updated to 3.9.6 (no changes)
 
diff --git a/debian/rules b/debian/rules
index 5dde641..7d3230c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,7 @@ makebuilddir/$(p_jh)::
 	cd $(DEB_SRCDIR)/debian/icons/; \
 	for file in *.xpm; do \
 		fileTarget=`echo $$file|sed -e 's|.xpm|.png|g'`; \
-		convert $(DEB_SRCDIR)/$$file $(CURDIR)/jhMaster/JavaHelp/src/new/javax/help/plaf/basic/images/$$fileTarget; \
+		convert $(DEB_SRCDIR)/$$file +set date:create +set date:modify -define png:exclude-chunk=time $(CURDIR)/jhMaster/JavaHelp/src/new/javax/help/plaf/basic/images/$$fileTarget; \
 	done
 
 build/$(p_jh):: stamp-build-$(p_jh)
-- 
GitLab