[Reproducible-builds] Bug#789965: xtel: please make the build reproducible

Dhole dhole at openmailbox.org
Thu Jun 25 18:05:58 UTC 2015


Source: xtel
Version: 3.3.0-17.1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that xtel could not be built reproducibly.

The attached patch removes extra timestamps from compressed files by
gzip and from the png icon.
Once applied, and with a patched version of the dependency xutils-dev,
xtel can be built reproducibly in our current experimental framework.

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

-- 
Dhole
-------------- next part --------------
diff -u xtel-3.3.0/debian/changelog xtel-3.3.0/debian/changelog
--- xtel-3.3.0/debian/changelog
+++ xtel-3.3.0/debian/changelog
@@ -1,3 +1,11 @@
+xtel (3.3.0-17.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Don't store timestamps when calling gzip and remove timestamps from png
+    to make package build reproducibly
+
+ -- Dhole <dhole at openmailbox.org>  Thu, 25 Jun 2015 16:30:25 +0200
+
 xtel (3.3.0-17.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u xtel-3.3.0/debian/rules xtel-3.3.0/debian/rules
--- xtel-3.3.0/debian/rules
+++ xtel-3.3.0/debian/rules
@@ -20,7 +20,7 @@
 	xmkmf
 	make Xtel
 	# convert the mean gif file into a png file
-	convert xtel.gif xtel.png
+	convert xtel.gif +set date:create +set date:modify -define png:exclude-chunk=time xtel.png
 	touch build-stamp
 
 clean:
@@ -62,7 +62,7 @@
 	install -m 644 LISEZMOI.txt debian/xtel/usr/share/doc/LANG/fr/xtel/
 	install -m 644 FAQ.txt debian/xtel/usr/share/doc/LANG/fr/xtel/
 	install -m 644 README_IMINITEL.txt debian/xtel/usr/share/doc/LANG/fr/xtel/
-	gzip -9v debian/xtel/usr/share/doc/LANG/fr/xtel/*.txt
+	gzip -9vn debian/xtel/usr/share/doc/LANG/fr/xtel/*.txt
 	# Install png image example
 	install -m 644 xtel.png debian/xtel/usr/share/doc/xtel/
 	# Create a symlink in /usr/share/doc/xtel to the french doc directory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150625/f7f26d3d/attachment.sig>


More information about the Reproducible-builds mailing list