aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2020-09-28 23:16:50 +0200
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2021-01-10 22:06:58 +0100
commitec50e407befe50ef605873dd6d113790e7e6126b (patch)
tree213676ca8f32ea2e80be4fabfd3f7d93a78e7144 /support
parentc043ecb20ce6ac316fe31da6d2db5b13a34dc414 (diff)
downloadbuildroot-ec50e407befe50ef605873dd6d113790e7e6126b.tar.gz
buildroot-ec50e407befe50ef605873dd6d113790e7e6126b.tar.bz2
support/dependencies: drop check for maximal tar version
So far, we checked that the tar present on the host was at most tar 1.29, because tar 1.30 changed the way it generates archives. Having a maximum tar version requirement meant that we would eventually always have to build our own host-tar, as distributions are updating the version they use. But now, we have found a way to generate reproducible archives starting with tar 1.27 onward, so we no longer need the check for a maximum tar version, so we can drop that requirement. Note: this is semantically a revert of b8fa273d500b (check-host-tar.sh: blacklist tar 1.30+), but keeping the new, mostly-linear code-path. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Vincent Fazio <vfazio@xes-inc.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Vincent Fazio <vfazio@xes-inc.com>
Diffstat (limited to 'support')
-rwxr-xr-xsupport/dependencies/check-host-tar.sh14
1 files changed, 1 insertions, 13 deletions
diff --git a/support/dependencies/check-host-tar.sh b/support/dependencies/check-host-tar.sh
index 934cb61299..b7d607a47a 100755
--- a/support/dependencies/check-host-tar.sh
+++ b/support/dependencies/check-host-tar.sh
@@ -33,14 +33,7 @@ fi
major_min=1
minor_min=27
-# Maximal version = 1.29 (1.30 changed --numeric-owner output for
-# filenames > 100 characters). This is really a fix for a bug in
-# earlier tar versions regarding deterministic output so it is
-# unlikely to be reverted in later versions.
-major_max=1
-minor_max=29
-
-if [ $major -lt $major_min -o $major -gt $major_max ]; then
+if [ $major -lt $major_min ]; then
# echo nothing: no suitable tar found
exit 1
fi
@@ -50,10 +43,5 @@ if [ $major -eq $major_min -a $minor -lt $minor_min ]; then
exit 1
fi
-if [ $major -eq $major_max -a $minor -gt $minor_max ]; then
- # echo nothing: no suitable tar found
- exit 1
-fi
-
# valid
echo $tar