[linux] 01/01: linux-source: Fix compression of the source tarball (Closes: #795199)
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Wed Aug 12 16:07:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch sid
in repository linux.
commit 3bb9b71582f72bb67f8b799393894d01b6feff16
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Wed Aug 12 18:02:17 2015 +0200
linux-source: Fix compression of the source tarball (Closes: #795199)
When we introduced the find | sort | xargs tar pipeline to make the
tarball reproducible, I was concerned that there could be so many
arguments that xargs would call tar more than once. I therefore
changed the tar -c option to -r so that it would append rather
than overwriting in this case.
However, the -a option seems to have no effect when -r is used, so
the tarball is no longer compressed.
Instead of using xargs, use tar's -T option and change the -r
back to -c.
---
debian/changelog | 1 +
debian/rules.real | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 56c4fdc..b5b331d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -227,6 +227,7 @@ linux (4.1.5-1) UNRELEASED; urgency=medium
* virtio-net: drop NETIF_F_FRAGLIST (CVE-2015-5156)
* ovl: Add support for NFS as lower filesystem (Closes: #786925)
* perf: Fix double-free of the AUX buffer
+ * linux-source: Fix compression of the source tarball (Closes: #795199)
-- Ian Campbell <ijc at debian.org> Tue, 04 Aug 2015 19:31:45 +0100
diff --git a/debian/rules.real b/debian/rules.real
index 6f90f75..f16cd09 100644
--- a/debian/rules.real
+++ b/debian/rules.real
@@ -91,7 +91,7 @@ $(BUILD_DIR)/linux-source-$(UPSTREAMVERSION).tar.xz: $(STAMPS_DIR)/source
xargs -0r touch --no-dereference --date='$(SOURCE_DATE)'
cd '$(BUILD_DIR)'; find 'linux-source-$(UPSTREAMVERSION)' -print0 | \
LC_ALL=C sort -z | \
- xargs -0 tar --no-recursion -raf 'linux-source-$(UPSTREAMVERSION).tar.xz'
+ tar --no-recursion --null -T - -caf 'linux-source-$(UPSTREAMVERSION).tar.xz'
rm -rf '$(DIR)'
$(BUILD_DIR)/linux-patch-$(UPSTREAMVERSION)-%.patch.xz: $(STAMPS_DIR)/source_none $(STAMPS_DIR)/source_%
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git
More information about the Kernel-svn-changes
mailing list