mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
libarchive: Limit xz compression level to 6 on AIX
Since libarchive commit `aff9809c` (Enable compression level up to 9 for
xz, xar, 7zip, 2020-07-26, v3.5.0~19^2), libarchive fails to initialize
xz compression on AIX with error
Internal error initializing compression library: Cannot allocate memory
Revert to the old limit of level 6 on AIX.
Issue: #22553
This commit is contained in:
@@ -384,6 +384,10 @@ archive_compressor_xz_options(struct archive_write_filter *f,
|
||||
data->compression_level = value[0] - '0';
|
||||
if (data->compression_level > 9)
|
||||
data->compression_level = 9;
|
||||
#ifdef _AIX
|
||||
if (data->compression_level > 6)
|
||||
data->compression_level = 6;
|
||||
#endif
|
||||
return (ARCHIVE_OK);
|
||||
} else if (strcmp(key, "threads") == 0) {
|
||||
char *endptr;
|
||||
|
||||
Reference in New Issue
Block a user