[Glibc-bsd-commits] r5719 - trunk/kfreebsd-10/debian

stevenc-guest at alioth.debian.org stevenc-guest at alioth.debian.org
Mon Jul 6 13:19:06 UTC 2015


Author: stevenc-guest
Date: 2015-07-06 13:19:06 +0000 (Mon, 06 Jul 2015)
New Revision: 5719

Modified:
   trunk/kfreebsd-10/debian/rules
Log:
Rather than chmod, use tar's --mode flag as suggested by
https://wiki.debian.org/ReproducibleBuilds/VaryingPermissionsInTarballs


Modified: trunk/kfreebsd-10/debian/rules
===================================================================
--- trunk/kfreebsd-10/debian/rules	2015-07-06 13:08:39 UTC (rev 5718)
+++ trunk/kfreebsd-10/debian/rules	2015-07-06 13:19:06 UTC (rev 5719)
@@ -170,15 +170,17 @@
 
 	mkdir -p $(SOURCE_PACKAGE)/usr/src
 	chown -R root.src $(SRC_DIR)
-	chmod -R go+r-w $(SRC_DIR)
 	# Clamp timestamps to be no newer than last changelog entry, see
 	# https://wiki.debian.org/ReproducibleBuilds/TimestampsInTarball
 	find $(SRC_DIR) -newermt "$(BUILD_DATE)" -print0 \
 	 | 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




More information about the Glibc-bsd-commits mailing list