Source: debirf Version: 0.34 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 debirf could not be built reproducibly. The attached patch removes timestamps from the build system. Once applied, debirf 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 debirf.orig/debirf-0.34/Makefile debirf/debirf-0.34/Makefile --- debirf.orig/debirf-0.34/Makefile 2015-02-06 00:21:39.924918777 +0000 +++ debirf/debirf-0.34/Makefile 2015-02-06 00:37:36.881716535 +0000 @@ -7,6 +7,7 @@ # Licensed under GPL v3 or later VERSION := `head -n1 debian/changelog | sed 's/.*(\([^-]*\).*/\1/'` +BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date) PREFIX ?= /usr MANPREFIX ?= $(PREFIX)/share/man @@ -23,6 +24,8 @@ for m in $(shell cat $<); do ln -s /usr/share/debirf/modules/$$m $@/; done doc/example-profiles/%.tgz: doc/example-profiles/% doc/example-profiles/%/modules + # Ensure deterministic mtimes + find $< -print0 | xargs -0r touch --no-dereference --date="$(BUILD_DATE)" (cd doc/example-profiles && tar c --exclude='*~' $(notdir $<)) | gzip -9 -n > "$@" install: installman profiles
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds