[Reproducible-builds] Bug#790371: djvulibre: please make the build reproducible

Dhole dhole at openmailbox.org
Sun Jun 28 15:23:53 UTC 2015


Source: djvulibre
Version: 3.5.27.1-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 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
-------------- next part --------------
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 <dhole at 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 <dhole at 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_ at AM_V@)
+ svg_verbose_ = $(svg_verbose_ at 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
-------------- 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/20150628/4b92d861/attachment.sig>


More information about the Reproducible-builds mailing list