mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-16 12:03:50 +02:00
libarchive: limit threads for xz to max 12
See #11050 for the reasoning to limit the parallelism.
This commit is contained in:
parent
819581a563
commit
f945da4235
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ Enable xz multithreaded compression by default.
|
||||||
f->data = data;
|
f->data = data;
|
||||||
data->compression_level = LZMA_PRESET_DEFAULT;
|
data->compression_level = LZMA_PRESET_DEFAULT;
|
||||||
- data->threads = 1;
|
- data->threads = 1;
|
||||||
+ data->threads = lzma_cputhreads();
|
+ data->threads = lzma_cputhreads() > 12 ? 12 : lzma_cputhreads();
|
||||||
f->open = &archive_compressor_xz_open;
|
f->open = &archive_compressor_xz_open;
|
||||||
f->close = archive_compressor_xz_close;
|
f->close = archive_compressor_xz_close;
|
||||||
f->free = archive_compressor_xz_free;
|
f->free = archive_compressor_xz_free;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libarchive'
|
# Template file for 'libarchive'
|
||||||
pkgname=libarchive
|
pkgname=libarchive
|
||||||
version=3.3.2
|
version=3.3.2
|
||||||
revision=1
|
revision=2
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="$(vopt_enable acl) $(vopt_enable acl xattr)
|
configure_args="$(vopt_enable acl) $(vopt_enable acl xattr)
|
||||||
|
|
Loading…
Add table
Reference in a new issue