Source: mailcrypt
Version: 3.5.9-7
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 mailcrypt could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, mailcrypt 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 mailcrypt.orig/mailcrypt-3.5.9/debian/install.in 
mailcrypt/mailcrypt-3.5.9/debian/install.in
--- mailcrypt.orig/mailcrypt-3.5.9/debian/install.in    2015-02-08 
23:05:22.159289587 +0000
+++ mailcrypt/mailcrypt-3.5.9/debian/install.in 2015-02-08 23:15:20.533581251 
+0000
@@ -37,7 +37,7 @@
     find <:=if($_=${lisp})=~s|emacs|\${FLAVOR}|:> -type f -name \*.el \
        -print0 | xargs --null rm -f ,dummy, \
        >> <:=if($_=${lisp})=~s|emacs|\${FLAVOR}|:>/<:=${ELCLOG}:> 2>&1
-    gzip -9fq <:=if($_=${lisp})=~s|emacs|\${FLAVOR}|:>/<:=${ELCLOG}:>
+    gzip -9nfq <:=if($_=${lisp})=~s|emacs|\${FLAVOR}|:>/<:=${ELCLOG}:>
     cat ><:=if($_="${sstartd}/${EPRIORITY}${PACKAGE}.el")
           =~s|emacs|\${FLAVOR}|:> <<EOF
 ;;; This file is automatically generated.
diff -urNad mailcrypt.orig/mailcrypt-3.5.9/debian/README.in 
mailcrypt/mailcrypt-3.5.9/debian/README.in
--- mailcrypt.orig/mailcrypt-3.5.9/debian/README.in     2015-02-08 
23:05:22.159289587 +0000
+++ mailcrypt/mailcrypt-3.5.9/debian/README.in  2015-02-08 23:11:33.819686612 
+0000
@@ -23,7 +23,7 @@
 TeXInfo sources may be found in 
"<:=if($_="$doc/$PACKAGE.texi.gz")=~tr|/|/|s:>".
 
 
--- Davide G. M. Salvetti <sa...@debian.org>, <:=$_=gmtime:>.
+-- Davide G. M. Salvetti <sa...@debian.org>, <? system("dpkg-parsechangelog 
--show-field Date"); !>>.
 <:
 # arch-tag: a9aeff50-cd75-470a-ac70-65b89b0abb04
 #
diff -urNad mailcrypt.orig/mailcrypt-3.5.9/debian/rules 
mailcrypt/mailcrypt-3.5.9/debian/rules
--- mailcrypt.orig/mailcrypt-3.5.9/debian/rules 2015-02-08 23:05:22.159289587 
+0000
+++ mailcrypt/mailcrypt-3.5.9/debian/rules      2015-02-08 23:09:02.973107598 
+0000
@@ -103,14 +103,14 @@
        done
        $(MAKE) INSTALL_INFO="echo install-info" \
                install-info infodir=$(tmp)/usr/share/info
-       gzip -9frv $(tmp)/usr/share/info
+       gzip -9nfrv $(tmp)/usr/share/info
 
        $(INSTDIR) $(tmp)/usr/share/doc/mailcrypt
        $(INSTDATA) ANNOUNCE ChangeLog.1 NEWS ONEWS README README.gpg WARNINGS 
$(tmp)/usr/share/doc/mailcrypt
        $(INSTDATA) debian/README $(tmp)/usr/share/doc/mailcrypt/README.Debian
        $(INSTDATA) ChangeLog $(tmp)/usr/share/doc/mailcrypt
        $(INSTDATA) debian/changelog 
$(tmp)/usr/share/doc/mailcrypt/changelog.Debian
-       gzip -9frv $(tmp)/usr/share/doc/mailcrypt
+       gzip -9nfrv $(tmp)/usr/share/doc/mailcrypt
        ln -sf ChangeLog.gz $(tmp)/usr/share/doc/mailcrypt/changelog.gz
        $(INSTDATA) debian/copyright $(tmp)/usr/share/doc/mailcrypt
        $(INSTDIR) $(tmp)/usr/share/doc/mailcrypt/HTML
diff -urNad mailcrypt.orig/mailcrypt-3.5.9/debian/rules.in 
mailcrypt/mailcrypt-3.5.9/debian/rules.in
--- mailcrypt.orig/mailcrypt-3.5.9/debian/rules.in      2015-02-08 
23:05:22.159289587 +0000
+++ mailcrypt/mailcrypt-3.5.9/debian/rules.in   2015-02-08 23:15:13.269264056 
+0000
@@ -92,7 +92,7 @@
        done
        $(MAKE) INSTALL_INFO="echo install-info" \
                install-info infodir=$(tmp)<:=${info}:>
-       gzip -9frv $(tmp)<:=${info}:>
+       gzip -9nfrv $(tmp)<:=${info}:>
 
 <:# install Debian doc :>//
        $(INSTDIR) $(tmp)<:=${doc}:>
@@ -100,7 +100,7 @@
        $(INSTDATA) debian/README $(tmp)<:=${doc}:>/README.Debian
        $(INSTDATA) ChangeLog $(tmp)<:=${doc}:>
        $(INSTDATA) debian/changelog $(tmp)<:=${doc}:>/changelog.Debian
-       gzip -9frv $(tmp)<:=${doc}:>
+       gzip -9nfrv $(tmp)<:=${doc}:>
        ln -sf ChangeLog.gz $(tmp)<:=${doc}:>/changelog.gz
        $(INSTDATA) debian/copyright $(tmp)<:=${doc}:>
        $(INSTDIR) $(tmp)<:=${html}:>

Reply via email to