From ab1ec6c09426278df09ff7391562ff075a4e2494 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 12 Sep 2016 03:50:22 +0100 Subject: [PATCH] linux-source: Exclude Python bytecode generated when running Sphinx --- debian/changelog | 4 ++++ debian/rules.real | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 66cb13128..1898e29e3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,10 @@ linux (4.8~rc5-1~exp2) UNRELEASED; urgency=medium [ Héctor Orón ] * [arm64] Enable ACPI, ARM64_VA_BITS_48 (Closes: #834505) + [ Ben Hutchings ] + * Fix some new reproducibility issues: + - linux-source: Exclude Python bytecode generated when running Sphinx + -- Ben Hutchings Fri, 16 Sep 2016 16:39:53 +0100 linux (4.8~rc5-1~exp1) experimental; urgency=medium diff --git a/debian/rules.real b/debian/rules.real index e320c822f..71717d665 100644 --- a/debian/rules.real +++ b/debian/rules.real @@ -109,7 +109,10 @@ $(BUILD_DIR)/$(SOURCE_PACKAGE_NAME)-source-$(UPSTREAMVERSION).tar.xz: $(STAMPS_D chmod -R u+rw,go=rX '$(DIR)' find '$(DIR)' -depth -newermt '$(SOURCE_DATE)' -print0 | \ xargs -0r touch --no-dereference --date='$(SOURCE_DATE)' - cd '$(BUILD_DIR)'; find '$(SOURCE_PACKAGE_NAME)-source-$(UPSTREAMVERSION)' -print0 | \ + cd '$(BUILD_DIR)'; \ + find '$(SOURCE_PACKAGE_NAME)-source-$(UPSTREAMVERSION)' \ + -name '*.pyc' -prune -o \ + -print0 | \ sort -z | \ tar --no-recursion --null -T - -caf '$(SOURCE_PACKAGE_NAME)-source-$(UPSTREAMVERSION).tar.xz' rm -rf '$(DIR)'