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 70891158094 for ; Thu, 18 Aug 2022 15:21:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8E5BFE07DB; Thu, 18 Aug 2022 15:21:48 +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 6CAEFE07DB for ; Thu, 18 Aug 2022 15:21:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 445FE341415 for ; Thu, 18 Aug 2022 15:21:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8517456C for ; Thu, 18 Aug 2022 15:21:45 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1660836093.f7a871b4b3d3d10226c29f3e09cb74a2353e9b8c.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nodejs/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/nodejs/nodejs-18.7.0.ebuild X-VCS-Directories: net-libs/nodejs/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: f7a871b4b3d3d10226c29f3e09cb74a2353e9b8c X-VCS-Branch: master Date: Thu, 18 Aug 2022 15:21:45 +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: 4b4f8ba4-8788-4a7e-8181-a1bec146c90d X-Archives-Hash: e4afc11b7fdf1a8f4b610e370f1506e6 commit: f7a871b4b3d3d10226c29f3e09cb74a2353e9b8c Author: WANG Xuerui gentoo org> AuthorDate: Thu Aug 18 15:15:58 2022 +0000 Commit: William Hubbs gentoo org> CommitDate: Thu Aug 18 15:21:33 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7a871b4 net-libs/nodejs: run check-reqs when building with debugging CFLAGS Bug: https://github.com/gentoo/gentoo/pull/25655 Signed-off-by: WANG Xuerui gentoo.org> Signed-off-by: William Hubbs gentoo.org> net-libs/nodejs/nodejs-18.7.0.ebuild | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/net-libs/nodejs/nodejs-18.7.0.ebuild b/net-libs/nodejs/nodejs-18.7.0.ebuild index 6b031ed0b96c..34ed47477bc6 100644 --- a/net-libs/nodejs/nodejs-18.7.0.ebuild +++ b/net-libs/nodejs/nodejs-18.7.0.ebuild @@ -7,7 +7,7 @@ CONFIG_CHECK="~ADVISE_SYSCALLS" PYTHON_COMPAT=( python3_{8..11} ) PYTHON_REQ_USE="threads(+)" -inherit bash-completion-r1 flag-o-matic linux-info pax-utils python-any-r1 toolchain-funcs xdg-utils +inherit bash-completion-r1 check-reqs flag-o-matic linux-info pax-utils python-any-r1 toolchain-funcs xdg-utils DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" HOMEPAGE="https://nodejs.org/" @@ -52,9 +52,26 @@ PATCHES=( "${FILESDIR}"/${PN}-15.2.0-global-npm-config.patch ) +# These are measured on a loong machine with -ggdb on, and only checked +# if debugging flags are present in CFLAGS. +# +# The final link consumed a little more than 7GiB alone, so 8GiB is the lower +# limit for memory usage. Disk usage was 19.1GiB for the build directory and +# 1.2GiB for the installed image, so we leave some room for architectures with +# fatter binaries and set the disk requirement to 22GiB. +CHECKREQS_MEMORY="8G" +CHECKREQS_DISK_BUILD="22G" + pkg_pretend() { (use x86 && ! use cpu_flags_x86_sse2) && \ die "Your CPU doesn't support the required SSE2 instruction." + + if [[ ${MERGE_TYPE} != "binary" ]]; then + if is-flagq "-g*" && ! is-flagq "-g*0" ; then + einfo "Checking for sufficient disk space and memory to build ${PN} with debugging CFLAGS" + check-reqs_pkg_pretend + fi + fi } pkg_setup() {