]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
make.sh: Explicitely call zstd to extract toolchain
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Jul 2021 13:12:15 +0000 (14:12 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 14 Jul 2021 08:30:31 +0000 (08:30 +0000)
Some older versions of tar do not recognise Zstandard, yet.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Tested-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index 7bdeeaf62787a5b8160bc07debcb0a1c0a96c824..13a48f4616ec0641cccbfe8517d973c0d42923be 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1735,7 +1735,7 @@ build)
                        PACKAGENAME=${PACKAGE%.tar.zst}
                        print_build_stage "Packaged toolchain compilation"
                        if [ `md5sum $PACKAGE | awk '{print $1}'` == `cat $PACKAGENAME.md5 | awk '{print $1}'` ]; then
-                               tar axf $PACKAGE
+                               zstd -d < "${PACKAGE}" | tar x
                                prepareenv
                        else
                                exiterror "$PACKAGENAME md5 did not match, check downloaded package"