From f945da4235f017e83bd03336cefd6dcecabae86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 24 Jan 2018 11:41:13 +0100 Subject: [PATCH] libarchive: limit threads for xz to max 12 See #11050 for the reasoning to limit the parallelism. --- srcpkgs/libarchive/patches/filter-xz-enable-threads.patch | 2 +- srcpkgs/libarchive/template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/libarchive/patches/filter-xz-enable-threads.patch b/srcpkgs/libarchive/patches/filter-xz-enable-threads.patch index 2b9bcf2f71a..658b4718ab6 100644 --- a/srcpkgs/libarchive/patches/filter-xz-enable-threads.patch +++ b/srcpkgs/libarchive/patches/filter-xz-enable-threads.patch @@ -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; diff --git a/srcpkgs/libarchive/template b/srcpkgs/libarchive/template index e28229ade35..366ae4aca7e 100644 --- a/srcpkgs/libarchive/template +++ b/srcpkgs/libarchive/template @@ -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)