commit: a57a0962a54f1a84295f506a00f61f9b613bc802
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 11 19:47:55 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 13 19:57:52 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a57a0962
kernel-2.eclass: decompress xz in parallel
No-op until >=app-arch/xz-utils-5.3.3_alpha. Recently added support
for this in Portage and pkgcore too for unpacking.
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/kernel-2.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index 50464470a9bb..c18ef21099d1 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -281,7 +281,7 @@
# If you do change them, there is a chance that we will not fix resulting bugs;
# that of course does not mean we're not willing to help.
-inherit estack toolchain-funcs
+inherit estack multiprocessing toolchain-funcs
case ${EAPI} in
7|8) ;;
@@ -1065,7 +1065,7 @@ unipatch() {
extention=${extention/:*/}
PIPE_CMD=""
case ${extention} in
- xz) PIPE_CMD="xz -dc";;
+ xz) PIPE_CMD="xz -T$(makeopts_jobs) -dc";;
lzma) PIPE_CMD="lzma -dc";;
bz2) PIPE_CMD="bzip2 -dc";;
patch*) PIPE_CMD="cat";;