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 09A6715808B for ; Tue, 22 Feb 2022 21:06:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4871DE041F; Tue, 22 Feb 2022 21:06:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0C522E041F for ; Tue, 22 Feb 2022 21:06:42 +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 1F8EB343333 for ; Tue, 22 Feb 2022 21:06:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6425C2D6 for ; Tue, 22 Feb 2022 21:06:39 +0000 (UTC) From: "Matthew Smith" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthew Smith" Message-ID: <1645563976.8a8eb5890e84734a4d152d270750406950f278c7.matthew@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/mold/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/mold/mold-1.0.3.ebuild sys-devel/mold/mold-1.1.ebuild sys-devel/mold/mold-9999.ebuild X-VCS-Directories: sys-devel/mold/ X-VCS-Committer: matthew X-VCS-Committer-Name: Matthew Smith X-VCS-Revision: 8a8eb5890e84734a4d152d270750406950f278c7 X-VCS-Branch: master Date: Tue, 22 Feb 2022 21:06:39 +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: a7fc1b2f-ccbf-4d4f-a9f5-4c9d50c96b0f X-Archives-Hash: 9580d0443906933e03d4243f776f79bf commit: 8a8eb5890e84734a4d152d270750406950f278c7 Author: Matthew Smith gentoo org> AuthorDate: Tue Feb 22 20:35:50 2022 +0000 Commit: Matthew Smith gentoo org> CommitDate: Tue Feb 22 21:06:16 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a8eb589 sys-devel/mold: check compiler version Acked-by: Sam James gentoo.org> Closes: https://bugs.gentoo.org/831473 Closes: https://github.com/gentoo/gentoo/pull/24321 Signed-off-by: Matthew Smith gentoo.org> sys-devel/mold/mold-1.0.3.ebuild | 11 +++++++++++ sys-devel/mold/mold-1.1.ebuild | 11 +++++++++++ sys-devel/mold/mold-9999.ebuild | 11 +++++++++++ 3 files changed, 33 insertions(+) diff --git a/sys-devel/mold/mold-1.0.3.ebuild b/sys-devel/mold/mold-1.0.3.ebuild index 7948bbc23805..5536efda5951 100644 --- a/sys-devel/mold/mold-1.0.3.ebuild +++ b/sys-devel/mold/mold-1.0.3.ebuild @@ -31,6 +31,17 @@ RDEPEND=">=dev-cpp/tbb-2021.4.0:= )" DEPEND="${RDEPEND}" +pkg_pretend() { + # Requires a c++20 compiler, see #831437 + if [[ ${MERGE_TYPE} != binary ]]; then + if tc-is-gcc && [[ $(gcc-major-version) -lt 10 ]]; then + die "${PN} needs at least gcc 10" + elif tc-is-clang && [[ $(clang-major-version) -lt 12 ]]; then + die "${PN} needs at least clang 12" + fi + fi +} + src_prepare() { default diff --git a/sys-devel/mold/mold-1.1.ebuild b/sys-devel/mold/mold-1.1.ebuild index caa630e22c18..351ef38c6b51 100644 --- a/sys-devel/mold/mold-1.1.ebuild +++ b/sys-devel/mold/mold-1.1.ebuild @@ -32,6 +32,17 @@ RDEPEND=">=dev-cpp/tbb-2021.4.0:= # TODO: restore SYSTEM_XXHASH upstream? DEPEND="${RDEPEND}" +pkg_pretend() { + # Requires a c++20 compiler, see #831473 + if [[ ${MERGE_TYPE} != binary ]]; then + if tc-is-gcc && [[ $(gcc-major-version) -lt 10 ]]; then + die "${PN} needs at least gcc 10" + elif tc-is-clang && [[ $(clang-major-version) -lt 12 ]]; then + die "${PN} needs at least clang 12" + fi + fi +} + src_prepare() { default diff --git a/sys-devel/mold/mold-9999.ebuild b/sys-devel/mold/mold-9999.ebuild index caa630e22c18..351ef38c6b51 100644 --- a/sys-devel/mold/mold-9999.ebuild +++ b/sys-devel/mold/mold-9999.ebuild @@ -32,6 +32,17 @@ RDEPEND=">=dev-cpp/tbb-2021.4.0:= # TODO: restore SYSTEM_XXHASH upstream? DEPEND="${RDEPEND}" +pkg_pretend() { + # Requires a c++20 compiler, see #831473 + if [[ ${MERGE_TYPE} != binary ]]; then + if tc-is-gcc && [[ $(gcc-major-version) -lt 10 ]]; then + die "${PN} needs at least gcc 10" + elif tc-is-clang && [[ $(clang-major-version) -lt 12 ]]; then + die "${PN} needs at least clang 12" + fi + fi +} + src_prepare() { default