Gentoo Archives: gentoo-dev

From: Sam James <sam@g.o>
To: gentoo-dev@l.g.o
Cc: dist-kernel@g.o, kernel@g.o, Sam James <sam@g.o>
Subject: [gentoo-dev] [PATCH 1/8] kernel-2.eclass: decompress xz in parallel
Date: Tue, 11 Oct 2022 22:55:12
Message-Id: 20221011225444.56032-1-sam@gentoo.org
1 No-op until >=app-arch/xz-utils-5.3.3_alpha. Recently added support
2 for this in Portage and pkgcore too for unpacking.
3
4 Signed-off-by: Sam James <sam@g.o>
5 ---
6 eclass/kernel-2.eclass | 4 ++--
7 1 file changed, 2 insertions(+), 2 deletions(-)
8
9 diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
10 index 50464470a9bb..c18ef21099d1 100644
11 --- a/eclass/kernel-2.eclass
12 +++ b/eclass/kernel-2.eclass
13 @@ -281,7 +281,7 @@
14 # If you do change them, there is a chance that we will not fix resulting bugs;
15 # that of course does not mean we're not willing to help.
16
17 -inherit estack toolchain-funcs
18 +inherit estack multiprocessing toolchain-funcs
19
20 case ${EAPI} in
21 7|8) ;;
22 @@ -1065,7 +1065,7 @@ unipatch() {
23 extention=${extention/:*/}
24 PIPE_CMD=""
25 case ${extention} in
26 - xz) PIPE_CMD="xz -dc";;
27 + xz) PIPE_CMD="xz -T$(makeopts_jobs) -dc";;
28 lzma) PIPE_CMD="lzma -dc";;
29 bz2) PIPE_CMD="bzip2 -dc";;
30 patch*) PIPE_CMD="cat";;
31 --
32 2.38.0

Replies