Steven Chamberlain wrote:
> [...] I guess we could chmod before building the tarball:

On second thoughts, that's not as efficient as using tar's --mode option
so I'll use that.  The example given on the Debian Wiki page is more
comprehensive than my chmod anyway.

--- debian/rules        (revision 5717)
+++ debian/rules        (revision 5719)
@@ -176,8 +176,11 @@
         | xargs -0r touch --no-dereference --date="$(BUILD_DATE)"
        # Create tarball with files sorted in a stable order, see
        # https://wiki.debian.org/ReproducibleBuilds/FileOrderInTarballs
+       # and normalised file permissions regardless of umask, see
+       # 
https://wiki.debian.org/ReproducibleBuilds/VaryingPermissionsInTarballs
        find $(SRC_DIR) -print0 | LC_ALL=C sort -z \
         | tar --null --no-recursion --files-from - \
+           --mode=go=rX,u+rw,a-s \
            -cJf $(SOURCE_PACKAGE)/usr/src/$(SRC_TAR)
 
        touch install-indep-stamp

Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org

_______________________________________________
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