[Reproducible-builds] Bug#791584: kfreebsd-source-10.1: umask setting can affect build
Steven Chamberlain
steven at pyro.eu.org
Mon Jul 6 13:21:34 UTC 2015
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
steven at pyro.eu.org
More information about the Reproducible-builds
mailing list