Source: libtnt Version: 1.2.6-1 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 libtnt could not be built reproducibly. The attached patch removes timestamps from the build system. Once applied, libtnt 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 libtnt.orig/libtnt-1.2.6/debian/rules libtnt/libtnt-1.2.6/debian/rules --- libtnt.orig/libtnt-1.2.6/debian/rules 2015-02-08 02:55:19.292570122 +0000 +++ libtnt/libtnt-1.2.6/debian/rules 2015-02-08 02:59:18.775358745 +0000 @@ -2,6 +2,8 @@ # Copyright (C) 2004-2005 Anibal Monsalve Salazar <ani...@debian.org> # Copyright (c) 2005-2006 Juan Esteban Monsalve Tobon <este...@v7w.com> +BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date) + binary: binary-arch binary-indep binary-indep: build @@ -15,11 +17,11 @@ install -p -m 644 Changes debian/tmp/usr/share/doc/libtnt-dev/changelog install -p -m 644 debian/changelog debian/tmp/usr/share/doc/libtnt-dev/changelog.Debian install -p -m 644 examples debian/tmp/usr/share/doc/libtnt-dev - gzip -9 debian/tmp/usr/share/doc/libtnt-dev/* + gzip -9n debian/tmp/usr/share/doc/libtnt-dev/* install -p -m 644 README debian/tmp/usr/share/doc/libtnt-dev install -p -m 644 debian/copyright debian/tmp/usr/share/doc/libtnt-dev - tar cf debian/tmp/usr/share/doc/libtnt-dev/html-tnt.tar html - gzip -9 debian/tmp/usr/share/doc/libtnt-dev/html-tnt.tar + tar cf debian/tmp/usr/share/doc/libtnt-dev/html-tnt.tar html --mtime="$(BUILD_DATE)" + gzip -9n debian/tmp/usr/share/doc/libtnt-dev/html-tnt.tar chmod 644 debian/tmp/usr/share/doc/libtnt-dev/html-tnt.tar.gz dpkg-gencontrol -isp