-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 'Inappropriate file type or format' in Archive Utility and bsdcpio
This reverts commit 1130fdc, "feat: no need for local zip64 extra when streaming" It was thought that there was no need for the ZIP_64 "extra" section in the local header. Tests ran fine without it, and there was an argument that having it made the ZIP file invalid at libarchive/libarchive#1834. However, it was found in #27 that it caused an error on OSX's Archive Utility: > Error 79 - Inappropriate file type or format and a very similar error in libarchive's bsdcpio > cpio: Inconsistent uncompressed size: 12 in central directory, 4294967295 in > local header: Inappropriate file type or format or in some situations > cpio: ZIP uncompressed data is wrong size (read 12, expected 0)
- Loading branch information
Showing
6 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,3 +127,5 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
libarchive-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# This version is the one that comes with macOS, and behaves most similarly to its Archive Utility | ||
curl --output libarchive-3.5.3.tar.gz https://www.libarchive.org/downloads/libarchive-3.5.3.tar.gz | ||
echo "72788e5f58d16febddfa262a5215e05fc9c79f2670f641ac039e6df44330ef51 libarchive-3.5.3.tar.gz" | sha256sum --check | ||
tar -zxf libarchive-3.5.3.tar.gz | ||
( | ||
cd libarchive-3.5.3 | ||
./configure | ||
make | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters