commit:     058b4ff690b84e0e4489ac4a7e16f5ae8b1fd1f6
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 23 09:06:23 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Oct 23 12:18:47 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=058b4ff6

sci-libs/stellarsolver: Raise CMake minimum to >=3.10

Closes: https://bugs.gentoo.org/965002
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../stellarsolver-2.7-cmake-minreqver-3.10.patch   | 32 ++++++++++++++++++++++
 sci-libs/stellarsolver/stellarsolver-2.7.ebuild    |  5 +++-
 2 files changed, 36 insertions(+), 1 deletion(-)

diff --git 
a/sci-libs/stellarsolver/files/stellarsolver-2.7-cmake-minreqver-3.10.patch 
b/sci-libs/stellarsolver/files/stellarsolver-2.7-cmake-minreqver-3.10.patch
new file mode 100644
index 000000000000..24cdfeb2cd68
--- /dev/null
+++ b/sci-libs/stellarsolver/files/stellarsolver-2.7-cmake-minreqver-3.10.patch
@@ -0,0 +1,32 @@
+Source: https://github.com/rlancaste/stellarsolver/pull/168
+
+From 06bfa26fd4831ee178415ea54eabfa8edf422aaf Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <[email protected]>
+Date: Thu, 23 Oct 2025 10:57:14 +0200
+Subject: [PATCH] Raise CMake minimum to 3.10
+
+CMake >=3.31 warns about compat. for <3.10 being removed in the future.
+
+CMake Policies changed up to 3.10:
+https://cmake.org/cmake/help/latest/manual/cmake-policies.7.html#policies-introduced-by-cmake-3-10
+
+CMake 3.10 was released in 2017.
+
+Signed-off-by: Andreas Sturmlechner <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 29b2942..03ea518 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.5)
++cmake_minimum_required(VERSION 3.10)
+ PROJECT(StellarSolver C CXX)
+ set(CMAKE_CXX_STANDARD 17)
+ if(APPLE)
+-- 
+2.51.1
+

diff --git a/sci-libs/stellarsolver/stellarsolver-2.7.ebuild 
b/sci-libs/stellarsolver/stellarsolver-2.7.ebuild
index df7eaffe74c5..73530c4227a8 100644
--- a/sci-libs/stellarsolver/stellarsolver-2.7.ebuild
+++ b/sci-libs/stellarsolver/stellarsolver-2.7.ebuild
@@ -22,7 +22,10 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}"
 
-PATCHES=( "${FILESDIR}/${P}-file-descriptor-leak.patch" )
+PATCHES=(
+       "${FILESDIR}/${P}-file-descriptor-leak.patch" # git master
+       "${FILESDIR}/${P}-cmake-minreqver-3.10.patch" # bug #965002
+)
 
 src_configure() {
        # bug #862930

Reply via email to