Source: deejayd
Version: 0.10.0-6
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

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

The attached patch removes timezone-varying timestamps from the
files compressed with zip. Once applied, deejayd can be built
reproducibly in our current experimental framework.

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


Regards,
-- 
Dhole
diff -Nru deejayd-0.10.0/debian/changelog deejayd-0.10.0/debian/changelog
--- deejayd-0.10.0/debian/changelog     2014-05-06 07:34:18.000000000 +0200
+++ deejayd-0.10.0/debian/changelog     2015-07-22 16:55:19.000000000 +0200
@@ -1,3 +1,10 @@
+deejayd (0.10.0-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix timezone before creating zip file to make package build reproducible.
+
+ -- Dhole <dh...@openmailbox.org>  Wed, 22 Jul 2015 16:54:50 +0200
+
 deejayd (0.10.0-6) unstable; urgency=medium
 
   * Depend on libxine2-x (Closes: #747099).
diff -Nru deejayd-0.10.0/debian/patches/fix_timezone 
deejayd-0.10.0/debian/patches/fix_timezone
--- deejayd-0.10.0/debian/patches/fix_timezone  1970-01-01 01:00:00.000000000 
+0100
+++ deejayd-0.10.0/debian/patches/fix_timezone  2015-07-22 16:56:04.000000000 
+0200
@@ -0,0 +1,21 @@
+Description: Fix timezone before creating zip
+ .
+ deejayd (0.10.0-6.1) UNRELEASED; urgency=medium
+ .
+   * Non-maintainer upload.
+   * Fix timezone before creating zip file to make package build reproducible.
+Author: Dhole <dh...@openmailbox.org>
+
+---
+
+--- deejayd-0.10.0.orig/setup.py
++++ deejayd-0.10.0/setup.py
+@@ -62,6 +62,8 @@ class build_extension(Command):
+ 
+         # first remove old zip file
+         self.clean()
++        # Fix timezone to get reproducible results when adding files to zip
++        os.environ['TZ'] = 'UTC'
+         ext_file = ZipFile(self.ext_path, 'w')
+         for root, dirs, files in os.walk(self.ext_dir):
+             for f in files:
diff -Nru deejayd-0.10.0/debian/patches/series 
deejayd-0.10.0/debian/patches/series
--- deejayd-0.10.0/debian/patches/series        2014-05-06 07:27:53.000000000 
+0200
+++ deejayd-0.10.0/debian/patches/series        2015-07-22 16:55:44.000000000 
+0200
@@ -7,3 +7,4 @@
 mobileuifix
 xul-webui-firefox-version
 inotifyfixes
+fix_timezone

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