commit:     04302e2d4d5fafd3ed2f2375473d6fe3a2a2faa8
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 29 06:37:19 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 29 20:45:39 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=04302e2d

bin: ecompress: zstd: pass -j from MAKEOPTS for parallel compression

Signed-off-by: Sam James <sam <AT> gentoo.org>

 NEWS          | 3 +++
 bin/ecompress | 1 +
 2 files changed, 4 insertions(+)

diff --git a/NEWS b/NEWS
index 8ed871e5d..67cb6a795 100644
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,9 @@ Features:
 * bin: ecompress: xz: Pass -T N where N is the number of jobs from ${MAKEOPTS}
   to xz for parallel compression.
 
+* bin: ecompress: zstd: Pass -T N where N is the number of jobs from 
${MAKEOPTS}
+  to zstd for parallel compression.
+
 Bug fixes:
 * emerge: Scheduler: Fix filenames for binpkgs in some cases - reuse existing
   filename and don't allocate a new one (bug #872392).

diff --git a/bin/ecompress b/bin/ecompress
index 57c518705..a77bb7e35 100755
--- a/bin/ecompress
+++ b/bin/ecompress
@@ -129,6 +129,7 @@ if [[ ${PORTAGE_COMPRESS_FLAGS+set} != "set" ]] ; then
                # Setting '--rm' will remove the source files after a 
successful compression.
                lz4)  PORTAGE_COMPRESS_FLAGS="-m --rm";;
                xz)   PORTAGE_COMPRESS_FLAGS="-9 -T$(__makeopts_jobs)";;
+               zstd) PORTAGE_COMPRESS_FLAGS="-T$(__makeopts_jobs)";;
        esac
 fi
 

Reply via email to