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 6A5E4158020 for ; Sat, 19 Nov 2022 09:25:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6C4C3E091B; Sat, 19 Nov 2022 09:24:52 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1ECD8E0916 for ; Sat, 19 Nov 2022 09:24:52 +0000 (UTC) From: Matthew Smith To: gentoo-dev@lists.gentoo.org Cc: Matthew Smith Subject: [gentoo-dev] [PATCH 3/4] waf-utils.eclass: set --jobs=1 for configure and install Date: Sat, 19 Nov 2022 09:23:57 +0000 Message-Id: <20221119092358.280588-4-matthew@gentoo.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221119092358.280588-1-matthew@gentoo.org> References: <20221119092358.280588-1-matthew@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 9f701066-5173-4541-b0f7-31f630b2dfba X-Archives-Hash: d8deefd45d29de435ace0b94f1c589e2 MAKEOPTS was only respected for src_compile, leading to out-of-memory issues for some users. Force number of concurrent jobs to 1 in src_configure and src_install phases as it doesn't provide much of a benefit anyway. Closes: https://bugs.gentoo.org/715542 Signed-off-by: Matthew Smith --- eclass/waf-utils.eclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eclass/waf-utils.eclass b/eclass/waf-utils.eclass index 2a386e99165..66041fc3f60 100644 --- a/eclass/waf-utils.eclass +++ b/eclass/waf-utils.eclass @@ -99,6 +99,7 @@ waf-utils_src_configure() { LINKFLAGS="${CFLAGS} ${LDFLAGS}" PKGCONFIG="$(tc-getPKG_CONFIG)" "${WAF_BINARY}" + "--jobs=1" "--prefix=${EPREFIX}/usr" "${conf_args[@]}" "${@}" @@ -129,8 +130,8 @@ waf-utils_src_compile() { waf-utils_src_install() { debug-print-function ${FUNCNAME} "$@" - echo "\"${WAF_BINARY}\" --destdir=\"${D}\" ${*} install" - "${WAF_BINARY}" --destdir="${D}" "${@}" install || die "Make install failed" + echo "\"${WAF_BINARY}\" --jobs=1 --destdir=\"${D}\" ${*} install" + "${WAF_BINARY}" --jobs=1 --destdir="${D}" "${@}" install || die "Make install failed" # Manual document installation einstalldocs -- 2.38.1