RunCMake.CommandLineTar: pax-zstd - FAILED
Hello,
the RunCMake.CommandLineTar: pax-zstd
test fails on macOS 10.14 and 10.15 when built against local libarchive (3.3.3) and zstd (1.4.3):
brew install curl expat jsoncpp libarchive rhash libuv xz zstd
cmake .. -GNinja -DCMAKE_USE_SYSTEM_LIBRARIES=ON -DLibArchive_ROOT=$(brew --prefix libarchive)
ctest -V -R CommandLineTar
It fails with:
462: actual-err> CMake Error: archive_write_header: INTERNAL ERROR: Function 'archive_write_header' invoked with archive structure in state 'new', should be in state 'header/data'
462: actual-err> CMake Error: Problem creating tar: /Users/gregorj/Git/cmake/_build/Tests/RunCMake/CommandLineTar/pax-zstd-build/test.tar.zstd
462: actual-err> CMake Error at roundtrip.cmake:14 (message):
462: actual-err> tar failed with arguments
462: actual-err> [cvf;/Users/gregorj/Git/cmake/_build/Tests/RunCMake/CommandLineTar/pax-zstd-build/test.tar.zstd;--format=pax;--zstd;compress_dir]
462: actual-err> result [1]
462: actual-err> Call Stack (most recent call first):
462: actual-err> roundtrip.cmake:49 (run_tar)
462: actual-err> pax-zstd.cmake:8 (include)
462: actual-err> CMakeLists.txt:3 (include)
The same test works when CMake is built against bundled dependencies.