From f580d33cc9f0f91ee6c54b6de2d7bfb4efa92bc6 Mon Sep 17 00:00:00 2001 From: Jianyong Wu Date: Thu, 4 Mar 2021 10:00:40 +0800 Subject: [PATCH] musl/arm64: decompression before use the tarball. In the last fix, the decompression ops is deleted by mistake and need add it back. Fixes: #1490 Signed-off-by: Jianyong Wu --- tools/osbuilder/scripts/lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/osbuilder/scripts/lib.sh b/tools/osbuilder/scripts/lib.sh index 7938a3432a..982250ddec 100644 --- a/tools/osbuilder/scripts/lib.sh +++ b/tools/osbuilder/scripts/lib.sh @@ -285,7 +285,8 @@ ENV PATH=\$PATH:\$GOROOT/bin:\$GOPATH/bin RUN cd /tmp; \ mkdir -p /usr/local/musl/; \ if curl -sLO --fail https://musl.cc/${musl_tar}; then \ - cp -r ${musl_dir}/* /usr/local/musl/; \ + tar -zxf ${musl_tar}; \ + cp -r ${musl_dir}/* /usr/local/musl/; \ else \ git clone ${musl_source_url}; \ TARGET=${aarch64_musl_target} make -j$(nproc) -C ${musl_source_dir} install; \