From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0005B158095 for ; Thu, 29 Sep 2022 20:45:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3A7E52BC03C; Thu, 29 Sep 2022 20:45:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1D4F02BC03C for ; Thu, 29 Sep 2022 20:45:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 128B2340D81 for ; Thu, 29 Sep 2022 20:45:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 709E35E8 for ; Thu, 29 Sep 2022 20:45:44 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1664484339.9ae3ec1af0071354db3bf57bc5cdec963b056e77.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: /, bin/ X-VCS-Repository: proj/portage X-VCS-Files: NEWS bin/ecompress X-VCS-Directories: / bin/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 9ae3ec1af0071354db3bf57bc5cdec963b056e77 X-VCS-Branch: master Date: Thu, 29 Sep 2022 20:45:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8200fdb6-d41e-424a-afab-edccd57976e3 X-Archives-Hash: 7af0ea28ea69950771745baf2937efb2 commit: 9ae3ec1af0071354db3bf57bc5cdec963b056e77 Author: Sam James gentoo org> AuthorDate: Thu Sep 29 06:37:19 2022 +0000 Commit: Sam James gentoo org> CommitDate: Thu Sep 29 20:45:39 2022 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=9ae3ec1a bin: ecompress: xz: set -9, pass -j from MAKEOPTS for parallel compression - Pass -9 like we do for bzip2 & gzip. - Pass -j from MAKEOPTS for parallel compression. Signed-off-by: Sam James gentoo.org> NEWS | 5 +++++ bin/ecompress | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 8586e35cd..8ed871e5d 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,11 @@ Features: checking for dependencies. Update @goland-rebuild accordingly which now includes all packages depending on dev-lang/go (bug #827974, bug #865115) +* bin: ecompress: xz: Pass -9 to xz for compression level like we do for bzip2 & gzip. + +* bin: ecompress: xz: Pass -T N where N is the number of jobs from ${MAKEOPTS} + to xz 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 c69e8d6dd..57c518705 100755 --- a/bin/ecompress +++ b/bin/ecompress @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH}"/isolated-functions.sh || exit 1 @@ -128,6 +128,7 @@ if [[ ${PORTAGE_COMPRESS_FLAGS+set} != "set" ]] ; then # See: https://bugs.gentoo.org/672916 # 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)";; esac fi