Source: joe
Version: 3.7-2.4
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 joe could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, joe 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 joe.orig/joe-3.7/debian/rules joe/joe-3.7/debian/rules
--- joe.orig/joe-3.7/debian/rules       2015-02-11 22:52:21.433009820 +0000
+++ joe/joe-3.7/debian/rules    2015-02-11 23:01:36.351926648 +0000
@@ -30,8 +30,8 @@
        strip --remove-section=.comment --remove-section=.note 
$(tmp)/usr/bin/joe
 endif
        rm -f $(tmp)/usr/bin/termidx
-       gzip -9 $(tmp)/usr/share/man/man1/joe.1
-       gzip -9 $(tmp)/usr/share/man/ru/man1/joe.1
+       gzip -9n $(tmp)/usr/share/man/man1/joe.1
+       gzip -9n $(tmp)/usr/share/man/ru/man1/joe.1
        for i in jmacs jstar rjoe jpico; do \
           ln -s joe.1.gz $(tmp)/usr/share/man/man1/$$i.1.gz; \
         done
@@ -43,11 +43,11 @@
 binary-arch: install
        install -m 755 -d $(tmp)/usr/share/doc/joe
        for doc in README LIST TODO NEWS; do \
-          gzip -9c $$doc >$(tmp)/usr/share/doc/joe/$$doc.gz; \
+          gzip -9nc $$doc >$(tmp)/usr/share/doc/joe/$$doc.gz; \
         done
        rm -rf $(tmp)/etc/joe/doc
-       gzip -9c debian/changelog > $(tmp)/usr/share/doc/joe/changelog.Debian.gz
-       gzip -9c ChangeLog > $(tmp)/usr/share/doc/joe/changelog.gz
+       gzip -9nc debian/changelog > 
$(tmp)/usr/share/doc/joe/changelog.Debian.gz
+       gzip -9nc ChangeLog > $(tmp)/usr/share/doc/joe/changelog.gz
        install -m 644 debian/help.pl.txt $(tmp)/usr/share/doc/joe/
        install -m 644 debian/copyright debian/README.Debian 
$(tmp)/usr/share/doc/joe
        install -m 755 -d $(tmp)/DEBIAN
_______________________________________________
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