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


-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150706132134.gc91...@pyro.eu.org

Reply via email to