Source: libsdl2
Version: 2.0.2+dfsg1-7
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: umask
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that libsdl2 could not be built reproducibly.
The permissions inside a tarball vary because of different umasks.

The attached patch tells tar to normalize the permissions.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds

diff --git a/debian/rules b/debian/rules
index 31472fa..6a038d0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -69,7 +69,7 @@ override_dh_auto_configure:
 
 override_dh_auto_build:
 	dh_auto_build
-	tar czf debian/examples.tar.gz test --owner=0 --group=0
+	tar czf debian/examples.tar.gz test --owner=0 --group=0 --mode=go=rX,u+rw,a-s
 
 override_dh_auto_clean:
 	dh_auto_clean

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to