Source: xtel
Version: 3.3.0-17.1
Severity: wishlist
Tags: patch
User: reproducible-builds@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
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 <dh...@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

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