diff mbox series

[7/7,RFC] support/dependencies: drop check for maximal tar version

Message ID a71f772a27d008b72b67b081c4a4aaaa9f83ea53.1601329249.git.yann.morin.1998@free.fr
State Changes Requested
Headers show
Series [1/7,RFC] core/pkg-infra: prepare for alternate default source archives | expand

Commit Message

Yann E. MORIN Sept. 28, 2020, 9:41 p.m. UTC
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 always have
to build our own host-tar, as distributions are updating the version they

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.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Vincent Fazio <vfazio@xes-inc.com>
 support/dependencies/check-host-tar.sh | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)
diff mbox series


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
-# 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.
-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
@@ -50,10 +43,5 @@  if [ $major -eq $major_min -a $minor -lt $minor_min ]; then
 	exit 1
-if [ $major -eq $major_max -a $minor -gt $minor_max ]; then
-	# echo nothing: no suitable tar found
-	exit 1
 # valid
 echo $tar