[Reproducible-builds] Bug#787998: perdition: please make the build reproducible

Dhole dhole at openmailbox.org
Sun Jun 7 16:01:12 UTC 2015


Source: perdition
Version: 2.1-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps

Hi!

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

-- 
Dhole
-------------- next part --------------
diff --git a/perdition-2.1/debian/rules b/perdition-2.1/debian/rules
index 542c195..a018e65 100755
--- a/perdition-2.1/debian/rules
+++ b/perdition-2.1/debian/rules
@@ -61,22 +61,22 @@ install: build
 	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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150607/7cfa6476/attachment.sig>


More information about the Reproducible-builds mailing list