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 EB09A159C96 for ; Mon, 29 Jul 2024 23:33:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1E1B6E2A9A; Mon, 29 Jul 2024 23:33:49 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 DE6DBE2A9A for ; Mon, 29 Jul 2024 23:33:48 +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 4EE1533BF08 for ; Mon, 29 Jul 2024 23:33:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A90401E77 for ; Mon, 29 Jul 2024 23:33:45 +0000 (UTC) From: "Eli Schwartz" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Eli Schwartz" Message-ID: <1722296000.0953d865c767ec28eccf962454b7cfa82d46b9e6.eschwartz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/hugo/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-apps/hugo/hugo-0.128.2.ebuild X-VCS-Directories: www-apps/hugo/ X-VCS-Committer: eschwartz X-VCS-Committer-Name: Eli Schwartz X-VCS-Revision: 0953d865c767ec28eccf962454b7cfa82d46b9e6 X-VCS-Branch: master Date: Mon, 29 Jul 2024 23:33: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: 03637682-7e32-44e4-96f2-6629608a941b X-Archives-Hash: e20fb482cfc069df3512356faf143a54 commit: 0953d865c767ec28eccf962454b7cfa82d46b9e6 Author: Eli Schwartz gentoo org> AuthorDate: Thu Jul 25 23:36:32 2024 +0000 Commit: Eli Schwartz gentoo org> CommitDate: Mon Jul 29 23:33:20 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0953d865 www-apps/hugo: add check-reqs verification for the build I happened to notice while cleaning up old directories in /var/tmp/portage, that hugo took up 3.5 GB of space in a build that had tests enabled. Surprisingly large compared to some other pretty large packages. Make sure that users can actually handle this. Closes: https://github.com/gentoo/gentoo/pull/37728 Signed-off-by: Eli Schwartz gentoo.org> www-apps/hugo/hugo-0.128.2.ebuild | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/www-apps/hugo/hugo-0.128.2.ebuild b/www-apps/hugo/hugo-0.128.2.ebuild index d49c59a1bdb9..919bb3ccc8f6 100644 --- a/www-apps/hugo/hugo-0.128.2.ebuild +++ b/www-apps/hugo/hugo-0.128.2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit go-module shell-completion +inherit check-reqs go-module shell-completion DESCRIPTION="Fast static HTML and CSS website generator" HOMEPAGE="https://gohugo.io https://github.com/gohugoio/hugo" @@ -42,6 +42,27 @@ PATCHES=( "${FILESDIR}"/${PN}-0.128.0-skip-some-tests.patch ) +_check_reqs() { + if [[ ${MERGE_TYPE} = binary ]] ; then + return 0 + fi + + if has test ${FEATURES}; then + CHECKREQS_DISK_BUILD="4G" + else + CHECKREQS_DISK_BUILD="1500M" + fi + check-reqs_${EBUILD_PHASE_FUNC} +} + +pkg_pretend() { + _check_reqs +} + +pkg_setup() { + _check_reqs +} + src_configure() { export CGO_ENABLED=1 export CGO_CFLAGS="${CFLAGS}"