[Buildroot] [PATCH 4 of 5] tar: create a host version

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Wed Sep 21 06:55:34 UTC 2011


Some systems, like RedHat/CentOS, are even today shipped with ancient versions
of GNU tar, like 1.15. This can cause trouble, for example when unpacking
archives containing hardlinks with the --strip-components option.

To avoid such problems, let buildroot create a host-tar that can be used when
unpacking.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
---

 package/tar/tar.mk |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/package/tar/tar.mk b/package/tar/tar.mk
--- a/package/tar/tar.mk
+++ b/package/tar/tar.mk
@@ -8,3 +8,6 @@
 TAR_SITE = $(BR2_GNU_MIRROR)/tar
 
 $(eval $(call AUTOTARGETS,package,tar))
+$(eval $(call AUTOTARGETS,package,tar,host))
+
+HOST_TAR = $(HOST_DIR)/usr/bin/tar


More information about the buildroot mailing list