Source: vera
Version: 1.21-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps buildpath
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

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

The attached patch removes timestamps and buildpaths from the build
system. Once applied, vera 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 vera.orig/vera-1.21/debian/rules vera/vera-1.21/debian/rules
--- vera.orig/vera-1.21/debian/rules    2015-01-27 06:38:16.188357031 +0000
+++ vera/vera-1.21/debian/rules 2015-01-27 11:03:03.315444232 +0000
@@ -5,21 +5,25 @@
 pkg-ver  := $(shell dpkg-parsechangelog | sed -ne 's/^Version: //p')
 pkg-dte  := $(shell grep '@set RELEASE' vera.texi | cut -f3,4 -d' ')
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
+
 %:
        dh $@
 
 override_dh_auto_build-indep:
        makeinfo --no-split vera.texi
        sed -f debian/sedfile vera.? >> vera
-       /usr/bin/dictfmt -f -u http://home.snafu.de/ohei \
+       /usr/bin/dictfmt -f -u http://home.snafu.de/ohei --without-time \
            -s "V.E.R.A. -- Virtual Entity of Relevant Acronyms ($(pkg-dte))" \
           vera < vera 
+       # Ensure deterministic mtime for dictzip to inherit
+       touch --date='$(BUILD_DATE)' vera.dict
        /usr/bin/dictzip -v vera.dict
        rm -f vera.tmp vera
 
 debian/changes: build-indep
        info ./vera.info History | \
-           sed -n '/^File: vera.info, .*/d;/^\*Installation as Info 
file\*$$/q;p' > $@
+           sed -n '1d;/^File: vera.info, .*/d;/^\*Installation as Info 
file\*$$/q;p' > $@
 
 override_dh_installchangelogs: debian/changes
        dh_installchangelogs $<
_______________________________________________
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