Source: sgabios Version: 0.0~svn8-3 Severity: wishlist Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: timestamps hostname X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org
Hi, While working on the "reproducible builds" effort [1], we have noticed that sgabios could not be built reproducibly. The attached patch removes timestamps and hostnames from the build system. Once applied, sgabios can be built reproducibly in our reproducible toolchain. [1]: https://wiki.debian.org/ReproducibleBuilds Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
diff -urNad sgabios.orig/sgabios-0.0~svn8/debian/rules sgabios/sgabios-0.0~svn8/debian/rules --- sgabios.orig/sgabios-0.0~svn8/debian/rules 2015-02-24 17:02:48.789379462 +0000 +++ sgabios/sgabios-0.0~svn8/debian/rules 2015-02-24 18:14:54.836871967 +0000 @@ -1,5 +1,10 @@ #!/usr/bin/make -f +BUILD_HOST = debian +BUILD_USER = debian +BUILD_DATE = $(shell dpkg-parsechangelog --show-field=Date) +BUILD_SHORT_DATE = $(shell date --date="$(BUILD_DATE)" +%D) + %: +dh $@ @@ -7,6 +12,13 @@ make clean rm -f .depend +override_dh_auto_build: + make \ + BUILD_HOST="\\\"$(BUILD_HOST)\\\"" \ + BUILD_USER="\\\"$(BUILD_USER)\\\"" \ + BUILD_DATE="\\\"$(BUILD_DATE)\\\"" \ + BUILD_SHORT_DATE="\\\"$(BUILD_SHORT_DATE)\\\"" + override_dh_auto_configure override_dh_auto_test: # nothing to do
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds