From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id 082DE1580E0 for ; Tue, 03 Jun 2025 17:01:10 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id E40B5343072 for ; Tue, 03 Jun 2025 17:01:09 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id E54EE1103DD; Tue, 03 Jun 2025 17:01:05 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 bobolink.gentoo.org (Postfix) with ESMTPS id DC3551103C1 for ; Tue, 03 Jun 2025 17:01:05 +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 9ADD333C84E for ; Tue, 03 Jun 2025 17:01:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DF0CD27C2 for ; Tue, 03 Jun 2025 17:01:03 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1748970007.4f0e629df3f6e44565becf3dc238d6d65ae9c102.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/cmake.eclass X-VCS-Directories: eclass/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 4f0e629df3f6e44565becf3dc238d6d65ae9c102 X-VCS-Branch: master Date: Tue, 03 Jun 2025 17:01:03 +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: 84199501-2360-428e-b71a-418fc69a0a39 X-Archives-Hash: bfc70a533df827040a434763e77179a2 commit: 4f0e629df3f6e44565becf3dc238d6d65ae9c102 Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon May 19 16:36:57 2025 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Jun 3 17:00:07 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f0e629d cmake.eclass: If CMake 4 is detected, build w/ compat cmake arg -DCMAKE_POLICY_VERSION_MINIMUM=3.5 Signed-off-by: Andreas Sturmlechner gentoo.org> eclass/cmake.eclass | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 4c91afa160d9..b538af80a4b1 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -644,6 +644,11 @@ cmake_src_configure() { if [[ ${EAPI} == 7 ]]; then eqawarn "QA Notice: EAPI=7 detected; this package is now a prime last-rites target." fi + if has_version -b ">=dev-build/cmake-4"; then + eqawarn "QA Notice: CMake 4 detected; building with -DCMAKE_POLICY_VERSION_MINIMUM=3.5" + eqawarn "This is merely a workaround and *not* a permanent fix." + cmakeargs+=( -DCMAKE_POLICY_VERSION_MINIMUM=3.5 ) + fi fi pushd "${BUILD_DIR}" > /dev/null || die