libarchive: limit threads for xz to max 12

See #11050 for the reasoning to limit the parallelism.
This commit is contained in:
Jürgen Buchmüller 2018-01-24 11:41:13 +01:00
parent 819581a563
commit f945da4235
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ Enable xz multithreaded compression by default.
f->data = data;
data->compression_level = LZMA_PRESET_DEFAULT;
- data->threads = 1;
+ data->threads = lzma_cputhreads();
+ data->threads = lzma_cputhreads() > 12 ? 12 : lzma_cputhreads();
f->open = &archive_compressor_xz_open;
f->close = archive_compressor_xz_close;
f->free = archive_compressor_xz_free;

View File

@ -1,7 +1,7 @@
# Template file for 'libarchive'
pkgname=libarchive
version=3.3.2
revision=1
revision=2
bootstrap=yes
build_style=gnu-configure
configure_args="$(vopt_enable acl) $(vopt_enable acl xattr)