Source: djvulibre
Version: 3.5.27.1-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 djvulibre could not be built reproducibly.

The attached patch removes extra timestamps from the gzip files. Once
applied, djvulibre can be built reproducibly in our current experimental
framework.

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

-- 
Dhole
diff -Nru djvulibre-3.5.27.1/debian/changelog 
djvulibre-3.5.27.1/debian/changelog
--- djvulibre-3.5.27.1/debian/changelog 2015-05-05 10:30:15.000000000 +0200
+++ djvulibre-3.5.27.1/debian/changelog 2015-06-25 19:40:13.000000000 +0200
@@ -1,3 +1,10 @@
+djvulibre (3.5.27.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Remove timestamp when calling gzip to make package build reproducibly 
+
+ -- Dhole <dh...@openmailbox.org>  Thu, 25 Jun 2015 19:39:52 +0200
+
 djvulibre (3.5.27.1-1) unstable; urgency=medium
 
   * freeze is over, can target to unstable once more
diff -Nru djvulibre-3.5.27.1/debian/patches/remove_gzip_timestamp 
djvulibre-3.5.27.1/debian/patches/remove_gzip_timestamp
--- djvulibre-3.5.27.1/debian/patches/remove_gzip_timestamp     1970-01-01 
01:00:00.000000000 +0100
+++ djvulibre-3.5.27.1/debian/patches/remove_gzip_timestamp     2015-06-25 
19:40:46.000000000 +0200
@@ -0,0 +1,21 @@
+Description: Remove gzip timestamp
+ .
+ djvulibre (3.5.27.1-1.1) UNRELEASED; urgency=medium
+ .
+   * Non-maintainer upload.
+   * Remove timestamp when calling gzip to make package build reproducibly
+Author: Dhole <dh...@openmailbox.org>
+
+---
+
+--- djvulibre-3.5.27.1.orig/desktopfiles/Makefile.am
++++ djvulibre-3.5.27.1/desktopfiles/Makefile.am
+@@ -61,7 +61,7 @@ else
+ endif
+ 
+ svg_process =\
+-cat $< | gzip >$@
++cat $< | gzip -n >$@
+ 
+ svg_verbose = $(svg_verbose_@AM_V@)
+ svg_verbose_ = $(svg_verbose_@AM_DEFAULT_V@)
diff -Nru djvulibre-3.5.27.1/debian/patches/series 
djvulibre-3.5.27.1/debian/patches/series
--- djvulibre-3.5.27.1/debian/patches/series    2015-05-05 10:31:09.000000000 
+0200
+++ djvulibre-3.5.27.1/debian/patches/series    2015-06-25 19:40:30.000000000 
+0200
@@ -1 +1,2 @@
 debian-changes
+remove_gzip_timestamp

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