commit:     23d2d2e1ae5eb278f4651684a8237773786c8fd6
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Wed Mar 26 15:52:48 2025 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Fri Apr 25 00:04:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23d2d2e1

dev-build/tinycmmc: fix build for cmake4

Closes: https://bugs.gentoo.org/952072
Closes: https://github.com/gentoo/gentoo/pull/41308
Upstream-PR: https://github.com/Grumbel/tinycmmc/pull/2
Upstream-Commit: 
https://github.com/Grumbel/tinycmmc/commit/8238a6c1b90536e211fddf356dc3af26ea7c2f2c
Signed-off-by: orbea <orbea <AT> riseup.net>
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 .../tinycmmc/files/tinycmmc-0.1.0-cmake4.patch     | 29 ++++++++++++++++++++++
 dev-build/tinycmmc/tinycmmc-0.1.0.ebuild           |  4 ++-
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/dev-build/tinycmmc/files/tinycmmc-0.1.0-cmake4.patch 
b/dev-build/tinycmmc/files/tinycmmc-0.1.0-cmake4.patch
new file mode 100644
index 000000000000..582224759647
--- /dev/null
+++ b/dev-build/tinycmmc/files/tinycmmc-0.1.0-cmake4.patch
@@ -0,0 +1,29 @@
+https://github.com/Grumbel/tinycmmc/pull/2
+https://github.com/Grumbel/tinycmmc/commit/8238a6c1b90536e211fddf356dc3af26ea7c2f2c
+
+From 01e81cdeb672d57f050594517a3ec4de4298615c Mon Sep 17 00:00:00 2001
+From: orbea <[email protected]>
+Date: Wed, 26 Mar 2025 07:45:32 -0700
+Subject: [PATCH] cmake: require 3.10 as the minimum version
+
+With cmake 4 it now errors unless the minimum version is at least 3.5
+and it will warn if the version is not at least 3.10.
+
+Gentoo-Issue: https://bugs.gentoo.org/952072
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2344961..12af9d2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -16,7 +16,7 @@
+ #    misrepresented as being the original software.
+ # 3. This notice may not be removed or altered from any source distribution.
+ 
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.10)
+ project(tinycmmc VERSION 0.1.0)
+ 
+ include(GNUInstallDirs)

diff --git a/dev-build/tinycmmc/tinycmmc-0.1.0.ebuild 
b/dev-build/tinycmmc/tinycmmc-0.1.0.ebuild
index 88aaf86e9ab9..506c25bacabd 100644
--- a/dev-build/tinycmmc/tinycmmc-0.1.0.ebuild
+++ b/dev-build/tinycmmc/tinycmmc-0.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023-2024 Gentoo Authors
+# Copyright 2023-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -18,3 +18,5 @@ HOMEPAGE="https://github.com/Grumbel/tinycmmc";
 
 LICENSE="GPL-3+"
 SLOT="0"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.1.0-cmake4.patch )

Reply via email to