Source: jsmath
Version: 3.6e-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi,

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

The attached patch removes timezone-varying timestamps from the
files extracted with unzip. Once applied, jsmath can be built
reproducibly in our reproducible toolchain.

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


Regards,
-- 
Dhole
diff -Nru jsmath-3.6e/debian/changelog jsmath-3.6e/debian/changelog
--- jsmath-3.6e/debian/changelog        2014-05-18 20:21:54.000000000 +0200
+++ jsmath-3.6e/debian/changelog        2015-07-15 18:08:15.000000000 +0200
@@ -1,3 +1,11 @@
+jsmath (3.6e-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * add TZ=UTC before unzip in debian/rules to make the files mtime 
+    invariant to timezone to make the package build reproducibly.
+
+ -- red <r...@viper.home>  Wed, 15 Jul 2015 18:06:34 +0200
+
 jsmath (3.6e-1) unstable; urgency=medium
 
   * upgraded to the newest upstream package.
diff -Nru jsmath-3.6e/debian/rules jsmath-3.6e/debian/rules
--- jsmath-3.6e/debian/rules    2014-05-18 22:33:01.000000000 +0200
+++ jsmath-3.6e/debian/rules    2015-07-15 18:06:25.000000000 +0200
@@ -17,7 +17,7 @@
        dh $@ --with apache2
 
 override_dh_auto_build:
-       unzip -q jsMath-*.zip
+       TZ=UTC unzip -q jsMath-*.zip
 
 override_dh_clean:
        dh_clean

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to