[Reproducible-builds] Bug#791584: kfreebsd-source-10.1: umask setting can affect build
Steven Chamberlain
steven at pyro.eu.org
Mon Jul 6 13:00:53 UTC 2015
Package: kfreebsd-source-10.1
Version: 10.1~svn274115-6
Severity: wishlist
Tags: patch pending
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
Hi,
The kfreebsd-10 (kernel) packaging distributes a source tarball in
kfreebsd-source, a binary arch-indep package.
Files and directories in the tarball are owned by root:src, but
permissions depend on the package builder's umask setting. To ensure
reproducibility, I guess we could chmod before building the tarball:
--- debian/rules (revision 5716)
+++ debian/rules (working copy)
@@ -170,6 +170,7 @@
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 \
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 9.0-2-amd64-xenhvm-ipsec
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
More information about the Reproducible-builds
mailing list