Source: mimefilter
Version: 1.7+nmu1
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 mimefilter could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, mimefilter 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 mimefilter.orig/mimefilter-1.7+nmu1/debian/README.in 
mimefilter/mimefilter-1.7+nmu1/debian/README.in
--- mimefilter.orig/mimefilter-1.7+nmu1/debian/README.in        2015-02-08 
19:28:41.678327211 +0000
+++ mimefilter/mimefilter-1.7+nmu1/debian/README.in     2015-02-08 
19:49:19.780643542 +0000
@@ -5,7 +5,7 @@
 This is the Debian GNU/Linux version of the MimeFilter program, a script
 useful to strip unwanted MIME parts out of a message.
 
-Davide G. M. Salvetti <sa...@debian.org>, <:=$_=gmtime:>.
+Davide G. M. Salvetti <sa...@debian.org>, <? system("dpkg-parsechangelog 
--show-field Date"); !>>.
 <:
 # Local variables:
 # mode: text
diff -urNad mimefilter.orig/mimefilter-1.7+nmu1/debian/rules 
mimefilter/mimefilter-1.7+nmu1/debian/rules
--- mimefilter.orig/mimefilter-1.7+nmu1/debian/rules    2015-02-08 
19:28:41.678327211 +0000
+++ mimefilter/mimefilter-1.7+nmu1/debian/rules 2015-02-08 19:47:27.619723019 
+0000
@@ -71,7 +71,7 @@
 # install package
        $(MAKE) prefix=$(tmp)//usr/ mandir=$(tmp)//usr/share/man/\
                etcdir=$(tmp)//etc/ install
-       gzip -9frv $(tmp)//usr/share/man/
+       gzip -9nfrv $(tmp)//usr/share/man/
 
 # install Debian doc and examples
        $(INSTDIR) $(tmp)//usr/share/doc/mimefilter/
@@ -81,7 +81,7 @@
        $(INSTDATA) debian/changelog 
$(tmp)//usr/share/doc/mimefilter//changelog.Debian
        $(INSTDIR) $(tmp)//usr/share/doc/mimefilter/examples/
        $(INSTDATA) config/mimefilter.rc config/it-mimefilter.rc 
smartlist/rc.local.s10 smartlist/rc.custom 
$(tmp)//usr/share/doc/mimefilter/examples/
-       gzip -9frv $(tmp)//usr/share/doc/mimefilter/
+       gzip -9nfrv $(tmp)//usr/share/doc/mimefilter/
        ln -sf ChangeLog.gz $(tmp)//usr/share/doc/mimefilter//changelog.gz
        $(INSTDATA) debian/copyright $(tmp)//usr/share/doc/mimefilter/
 
diff -urNad mimefilter.orig/mimefilter-1.7+nmu1/debian/rules.in 
mimefilter/mimefilter-1.7+nmu1/debian/rules.in
--- mimefilter.orig/mimefilter-1.7+nmu1/debian/rules.in 2015-02-08 
19:28:41.678327211 +0000
+++ mimefilter/mimefilter-1.7+nmu1/debian/rules.in      2015-02-08 
19:47:34.936043982 +0000
@@ -59,7 +59,7 @@
 # install package
        $(MAKE) prefix=$(tmp)/<:=${usr}:> mandir=$(tmp)/<:=${man}:>\
                etcdir=$(tmp)/<:=${ETC}:> install
-       gzip -9frv $(tmp)/<:=${man}:>
+       gzip -9nfrv $(tmp)/<:=${man}:>
 
 # install Debian doc and examples
        $(INSTDIR) $(tmp)/<:=${doc}:>
@@ -69,7 +69,7 @@
        $(INSTDATA) debian/changelog $(tmp)/<:=${doc}:>/changelog.Debian
        $(INSTDIR) $(tmp)/<:=${examples}:>
        $(INSTDATA) <:=${EXAMPLES}:> $(tmp)/<:=${examples}:>
-       gzip -9frv $(tmp)/<:=${doc}:>
+       gzip -9nfrv $(tmp)/<:=${doc}:>
        ln -sf ChangeLog.gz $(tmp)/<:=${doc}:>/changelog.gz
        $(INSTDATA) debian/copyright $(tmp)/<:=${doc}:>
 
_______________________________________________
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