From cf924e57a92a74fe99f83b8dc53721c574f522b1 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Thu, 21 Nov 2024 05:52:36 -0500 Subject: [PATCH] Fix unarchiving of zstd dep on Windows with hack. --- dep/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dep/Makefile b/dep/Makefile index 9b0a99d7..fc031df0 100755 --- a/dep/Makefile +++ b/dep/Makefile @@ -147,6 +147,9 @@ $(libcurl): | $(openssl) curl-8.10.0 zstd-1.5.6: $(WGET) "https://github.com/facebook/zstd/releases/download/v1.5.6/zstd-1.5.6.tar.gz" $(SHA256) zstd-1.5.6.tar.gz 8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a34fd403c1 + # HACK This tar archive creates a symlink "untar" to "tar" before tar exists. This is okay on UNIX but not on Windows where symlinks are copies of files. So create a fake "tar" so the unarchiving works. + mkdir -p zstd-1.5.6/tests/cli-tests/bin + touch zstd-1.5.6/tests/cli-tests/bin/zstd $(UNTAR) zstd-1.5.6.tar.gz rm zstd-1.5.6.tar.gz