path: root/package
diff options
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2018-11-17 18:15:51 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-24 15:14:58 +0100
commit2218dc85bef9bb1c9d27788e5ac69593144fe268 (patch)
tree2ef9ee7608d8911deec61c1405b9cd82207bbbac /package
parent170160633efbf25b356c094d9e136b435d3142f1 (diff)
support/dependencies: add a check for a suitable gzip
Recently, some hash mismatch have been reported, both by users as well as autobuilder failures, about tarballs generated from git repositories. This turned out to be caused by users having the 'gzip' command somehow aliased to 'pigz' (which stand for: parallel implementation of gzip, which takes advantage of multi-processor system to parallelise the compression). Unfortunately, the output of pigz-compressed archives differ from that of gzip (even though they *are* valid gzip-compressed streams). Add a dependency check that ensures that gzip is not pigz. If that is the case, define a conditional dependency to host-gzip, that is used as a download dependency for packages that will generate compressed files, i.e. cvs, git, and svn. Fixes: http://autobuild.buildroot.org/results/330/3308271fc641cadb59dbf1b5ee529a84f79e6d5c/ Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Peter Korsgaard <peter@korsgaard.com> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Marcin Niestrój <m.niestroj@grinn-global.com> Cc: Erico Nunes <nunes.erico@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package')
1 files changed, 3 insertions, 1 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index f34f46afc8..ef890981bb 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -583,7 +583,9 @@ $(2)_DEPENDENCIES += host-skeleton
ifneq ($$(filter cvs git svn,$$($(2)_SITE_METHOD)),)
ifeq ($$(filter host-tar host-skeleton host-fakedate,$(1)),)