From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Fazio Date: Thu, 7 Jan 2021 13:40:42 -0600 Subject: [Buildroot] [PATCH 09/10 v3] support/dependencies: drop check for maximal tar version In-Reply-To: <3cf9b1b08bc5025058ad6dfaefaaead9a9cb82b5.1609239666.git.yann.morin.1998@free.fr> References: <3cf9b1b08bc5025058ad6dfaefaaead9a9cb82b5.1609239666.git.yann.morin.1998@free.fr> Message-ID: <2182bb91-e642-e1f9-c6cf-475539ec23ad@xes-inc.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 12/29/20 5:01 AM, Yann E. MORIN wrote: > 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. > > Signed-off-by: Yann E. MORIN > Cc: Thomas Petazzoni > Cc: Vincent Fazio > --- > support/dependencies/check-host-tar.sh | 14 +------------- > 1 file changed, 1 insertion(+), 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 > Reviewed-by: Vincent Fazio -- Vincent Fazio Embedded Software Engineer - Linux Extreme Engineering Solutions, Inc http://www.xes-inc.com