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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A4229158020 for ; Mon, 17 Oct 2022 18:35:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6A9CBE0917; Mon, 17 Oct 2022 18:35:27 +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 518A8E0917 for ; Mon, 17 Oct 2022 18:35:27 +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 0C57D340D3C for ; Mon, 17 Oct 2022 18:35:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2C34D617 for ; Mon, 17 Oct 2022 18:35:24 +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: <1666031540.09eaf06963809bbcbabf0903bf203ad5bf2ee893.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/kernel-build.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 09eaf06963809bbcbabf0903bf203ad5bf2ee893 X-VCS-Branch: master Date: Mon, 17 Oct 2022 18:35:24 +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: 2f74f4b4-d1af-4b46-9f5e-151139131a6f X-Archives-Hash: 1f7aceb3ac34208e1909381caf63eb6c commit: 09eaf06963809bbcbabf0903bf203ad5bf2ee893 Author: Sam James gentoo org> AuthorDate: Mon Oct 17 18:32:20 2022 +0000 Commit: Sam James gentoo org> CommitDate: Mon Oct 17 18:32:20 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09eaf069 kernel-build.eclass: add workaround for < xz 5.3.3_alpha 32-bit issue With older versions of xz, xz -T0 will on 32-bit systems try to allocate too much memory and bail out. After discussing with upstream, we set --memlimit-compress=50% as a way to make things work with both older & newer versions. This limiting is essentially already present with >= 5.3.3_alpha as -T0 includes it. Signed-off-by: Sam James gentoo.org> eclass/kernel-build.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass index 1fa25cbc9574..7086297bf52a 100644 --- a/eclass/kernel-build.eclass +++ b/eclass/kernel-build.eclass @@ -91,7 +91,7 @@ kernel-build_src_configure() { ) if type -P xz &>/dev/null ; then - export XZ_OPT="-T$(makeopts_jobs)" + export XZ_OPT="-T$(makeopts_jobs) --memlimit-compress=50%" fi if type -P zstd &>/dev/null ; then