From a6bc93b059ea4d5d01c8d4d7a114d7cc1115a732 Mon Sep 17 00:00:00 2001 From: Paul Dersey Date: Tue, 23 Feb 2021 20:35:35 -0500 Subject: [PATCH] helpers.sh: fix default_src_unpack for tar 1.12 tar 1.12 does not support j for bzip2 or J for xz. Instead use --use-compress-program --- sysa/helpers.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sysa/helpers.sh b/sysa/helpers.sh index 5a78ce2..74b25a4 100755 --- a/sysa/helpers.sh +++ b/sysa/helpers.sh @@ -73,12 +73,10 @@ default_src_unpack() { source="${src_dir}/${pkg}.tar.${suf}" if test -e "${source}"; then case "${suf}" in - gz) xtr="z" ;; - bz2) xtr="j" ;; - xz) xtr="J" ;; + gz) tar -xzf "${source}" ;; + bz2) tar -xf "${source}" --use-compress-program=bzip2 ;; + xz) tar -xf "${source}" --use-compress-program=xz ;; esac - tar "-${xtr}" -xf "${source}" - break fi done }