linux-source: Exclude Python bytecode generated when running Sphinx

This commit is contained in:
Ben Hutchings 2016-09-12 03:50:22 +01:00
parent ec5c662dbf
commit ab1ec6c094
2 changed files with 8 additions and 1 deletions

4
debian/changelog vendored
View File

@ -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 <ben@decadent.org.uk> Fri, 16 Sep 2016 16:39:53 +0100
linux (4.8~rc5-1~exp1) experimental; urgency=medium

5
debian/rules.real vendored
View File

@ -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)'