Source: wily
Version: 0.13.41-7.2
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 wily could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, wily can be built reproducibly in our current experimental
framework.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff -urNad wily.orig/wily-0.13.41/debian/rules wily/wily-0.13.41/debian/rules
--- wily.orig/wily-0.13.41/debian/rules 2015-02-07 17:53:39.882032020 +0000
+++ wily/wily-0.13.41/debian/rules      2015-02-07 18:02:08.272734095 +0000
@@ -3,6 +3,8 @@
 
 #export DH_VERBOSE=1
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
+
 build: build-stamp
 build-stamp:
        dh_testdir
@@ -37,7 +39,7 @@
        install -m755 -s tools/win/wgoto debian/wily/usr/bin
        install -m755 -s tools/win/wreplace debian/wily/usr/bin
        install -m644 debian/wily.1x debian/wily/usr/share/man/man1
-       gzip -9 debian/wily/usr/share/man/man1/wily.1x
+       gzip -9n debian/wily/usr/share/man/man1/wily.1x
        install -m644 tools/win/w*.1 debian/wily/usr/share/man/man1
        install -m644 misc/fixed.9.font debian/wily/usr/X11R6/lib/X11/wily
        install -m644 misc/prop.9.font debian/wily/usr/X11R6/lib/X11/wily
@@ -51,8 +53,10 @@
        install -m644 Doc/changes.txt debian/wily/usr/share/doc/wily/html
        install -m644 Doc/*.html debian/wily/usr/share/doc/wily/html
        install -m644 Doc/*.gif debian/wily/usr/share/doc/wily/html
-       cd Doc && tar -czhf ../debian/wily/usr/share/doc/wily/tute.tar.gz tute
-       cd misc && tar -czhf ../debian/wily/usr/share/doc/wily/wily.tar.gz wily
+       cd Doc && GZIP="-9n" tar -czhf \
+               ../debian/wily/usr/share/doc/wily/tute.tar.gz tute 
--mtime="$(BUILD_DATE)"
+       cd misc && GZIP="-9n" tar -czhf \
+               ../debian/wily/usr/share/doc/wily/wily.tar.gz wily 
--mtime="$(BUILD_DATE)"
        touch install-stamp
 
 binary-indep: build install
_______________________________________________
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