1 |
From: Sam James <sam@g.o> |
2 |
|
3 |
>= xz 5.3.3_alpha supports parallel decompression, so let's use it. |
4 |
|
5 |
As recently added to Portage (see https://github.com/gentoo/portage/commit/48d107e5c1a103d59a053aebeefa9a5aac5c32ff). |
6 |
|
7 |
Signed-off-by: Sam James <sam@g.o> |
8 |
--- |
9 |
eclass/unpacker.eclass | 4 ++-- |
10 |
1 file changed, 2 insertions(+), 2 deletions(-) |
11 |
|
12 |
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass |
13 |
index 70a46ac19709..d96b56609869 100644 |
14 |
--- a/eclass/unpacker.eclass |
15 |
+++ b/eclass/unpacker.eclass |
16 |
@@ -23,7 +23,7 @@ esac |
17 |
if [[ -z ${_UNPACKER_ECLASS} ]]; then |
18 |
_UNPACKER_ECLASS=1 |
19 |
|
20 |
-inherit toolchain-funcs |
21 |
+inherit multiprocessing toolchain-funcs |
22 |
|
23 |
# @ECLASS_VARIABLE: UNPACKER_BZ2 |
24 |
# @USER_VARIABLE |
25 |
@@ -395,7 +395,7 @@ _unpacker_get_decompressor() { |
26 |
*.z|*.gz|*.tgz) |
27 |
echo "gzip -dc" ;; |
28 |
*.lzma|*.xz|*.txz) |
29 |
- echo "xz -dc" ;; |
30 |
+ echo "xz -T$(makeopts_jobs) -dc" ;; |
31 |
*.lz) |
32 |
: ${UNPACKER_LZIP:=$(type -P plzip || type -P pdlzip || type -P lzip)} |
33 |
echo "${UNPACKER_LZIP} -dc" ;; |
34 |
-- |
35 |
2.37.3 |