From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-dev+bounces-103671-garchives=archives.gentoo.org@lists.gentoo.org>
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 91F331580E0
	for <garchives@archives.gentoo.org>; Mon, 02 Jun 2025 20:47:16 +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 4EFA1342F8C
	for <garchives@archives.gentoo.org>; Mon, 02 Jun 2025 20:47:16 +0000 (UTC)
Received: from bobolink.gentoo.org (localhost [127.0.0.1])
	by bobolink.gentoo.org (Postfix) with ESMTP id 50C721104A7;
	Mon, 02 Jun 2025 20:46:32 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.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 bobolink.gentoo.org (Postfix) with ESMTPS id 83B361102CD
	for <gentoo-dev@lists.gentoo.org>; Mon, 02 Jun 2025 20:46:31 +0000 (UTC)
Received: from tuxbrain.fritz.box (unknown [IPv6:2a04:9546:191d:b501:676c:7b0c:c3fa:aa8e])
	(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)
	(Authenticated sender: asturm)
	by smtp.gentoo.org (Postfix) with ESMTPSA id 8CE0F33BEA5;
	Mon, 02 Jun 2025 20:46:30 +0000 (UTC)
From: Andreas Sturmlechner <asturm@gentoo.org>
To: gentoo-dev@lists.gentoo.org, kde@gentoo.org, base-system@gentoo.org
Subject: [gentoo-dev] [PATCH v3 2/3] cmake.eclass: If CMake 4 is detected,
 build w/ compat cmake arg
Date: Mon, 02 Jun 2025 22:46:26 +0200
Message-ID: <3003971.e9J7NaK4W3@tuxbrain.fritz.box>
In-Reply-To: <1934159.tdWV9SEqCh@tuxbrain.fritz.box>
References:
 <12677532.O9o76ZdvQC@tuxbrain.fritz.box>
 <1934159.tdWV9SEqCh@tuxbrain.fritz.box>
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
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-Type: multipart/signed; boundary="nextPart3364781.aeNJFYEL58";
 micalg="pgp-sha512"; protocol="application/pgp-signature"
X-Archives-Salt: 6d2aa7f4-345b-46b0-86aa-5232f84872bb
X-Archives-Hash: 9ad1823afe0c9a5aedb675013dbe609b

--nextPart3364781.aeNJFYEL58
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Andreas Sturmlechner <asturm@gentoo.org>
Date: Mon, 02 Jun 2025 22:46:26 +0200
Message-ID: <3003971.e9J7NaK4W3@tuxbrain.fritz.box>
In-Reply-To: <1934159.tdWV9SEqCh@tuxbrain.fritz.box>
MIME-Version: 1.0

-DCMAKE_POLICY_VERSION_MINIMUM=3.5

Signed-off-by: Andreas Sturmlechner <asturm@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
-- 
2.49.0

--nextPart3364781.aeNJFYEL58
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQITBAABCgB9FiEEmaksxp6GvcraXyZQrlkbvHPk3V4FAmg+DaJfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDk5
QTkyQ0M2OUU4NkJEQ0FEQTVGMjY1MEFFNTkxQkJDNzNFNERENUUACgkQrlkbvHPk
3V5ggQv/R6+mdYaVRO4i1pBZPBWdSrcIw8nnkMcsSNn1DZrYSrHJbujPasslRgvh
e43MOJp29RuBHsAr/1N6xbMu9N3yKo069RtbXBRPiDXc0aJP3MZ1if78WAOoG7A9
cBxqhICfJgopnACOfH9n52ez7veytXALaZzTWvpfOU9NiTAXCpa4kFCJ+OAQnKpE
cToqzOFq2gFm12gdiIkH6dD/xMpTQOFDvU1hOzbSLUX4vM8mjg+fKpHQIwckFJmu
frfiPHTqTw08s1iM/OHqKY9kKybOsOxZhjQc+6N9o6xiF35XYyXBG/+/rghGCi7n
blKjQXChFQMOhsobycOJYDa18eODBjgiNp4ufY6zp1/D42NtQ8ar7FbIe4oaisvG
DqiFn3Oz37scyTW71G/qS7ELebDbAgljkCcukF2b6We74XQ/sfAlExyLQ/9+3ALU
rdKApkNvMxQKY8OtGnXs7K8dKuk7FEtNMPog92b7fvcevZizubSXLgVH+EBqwkk6
nPAPe6OS
=bNhb
-----END PGP SIGNATURE-----

--nextPart3364781.aeNJFYEL58--