changeset 935:40459793181a

Debian: make build reproducible While working on the “reproducible builds” effort [1], we have noticed that perdition could not be built reproducibly. The attached patch removes extra timestamps from the gzip files. Once applied, perdition can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787998#5 Signed-off-by: Simon Horman <horms@verge.net.au>
author Dhole <dhole@openmailbox.org>
date Sat, 13 Jun 2015 09:33:50 +0900
parents 3895fb98913f
children 32568d1f0e7d
files debian/rules
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/debian/rules	Sat Jun 13 09:07:42 2015 +0900
+++ b/debian/rules	Sat Jun 13 09:33:50 2015 +0900
@@ -61,22 +61,22 @@
 	chmod 755 $(pwd)/debian/tmp/usr/share/doc/perdition
 	install -c -m 644 perdition/db/nis/README.perditiondb_nis \
 	  $(pwd)/debian/tmp/usr/share/doc/perdition/README.perditiondb_nis
-	gzip --best \
+	gzip --best -n \
 	  $(pwd)/debian/tmp/usr/share/doc/perdition/README.perditiondb_nis
 	install -c -m 644 README \
 	  $(pwd)/debian/tmp/usr/share/doc/perdition/README
-	gzip --best $(pwd)/debian/tmp/usr/share/doc/perdition/README
+	gzip --best -n $(pwd)/debian/tmp/usr/share/doc/perdition/README
 	install -c -m 644 ChangeLog \
 	  $(pwd)/debian/tmp/usr/share/doc/perdition/changelog
-	gzip --best $(pwd)/debian/tmp/usr/share/doc/perdition/changelog
+	gzip --best -n $(pwd)/debian/tmp/usr/share/doc/perdition/changelog
 	install -c -m 644 TODO \
 	  $(pwd)/debian/tmp/usr/share/doc/perdition/TODO
-	gzip --best $(pwd)/debian/tmp/usr/share/doc/perdition/TODO
+	gzip --best -n $(pwd)/debian/tmp/usr/share/doc/perdition/TODO
 
 	mkdir -p $(pwd)/debian/tmp/usr/share/doc/perdition-ldap
 	install -c -m 644 perdition/db/ldap/perdition.schema \
 	  $(pwd)/debian/tmp/usr/share/doc/perdition-ldap/perdition.schema
-	gzip --best \
+	gzip --best -n \
 	  $(pwd)/debian/tmp/usr/share/doc/perdition-ldap/perdition.schema
 
 	dh_movefiles --source=debian/tmp