commit:     87f74e6ad7fea5285ea0b7715e0c3f7abe4967f3
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Thu Nov  6 00:43:14 2025 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sun Nov 16 01:56:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87f74e6a

dev-util/sdl-jstest: update cmake patch

Upstream-PR: https://github.com/Grumbel/sdl-jstest/pull/28
Upstream-Commit: 
https://github.com/Grumbel/sdl-jstest/commit/4ab112042fee5604a42669556776691e71cc2dc6
Closes: https://bugs.gentoo.org/964646
Closes: https://github.com/gentoo/gentoo/pull/44506
Signed-off-by: orbea <orbea <AT> riseup.net>
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 .../files/sdl-jstest-0.2.2-cmake-3.5.patch         | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/dev-util/sdl-jstest/files/sdl-jstest-0.2.2-cmake-3.5.patch 
b/dev-util/sdl-jstest/files/sdl-jstest-0.2.2-cmake-3.5.patch
index 44c634eeda6d..c65f24727baf 100644
--- a/dev-util/sdl-jstest/files/sdl-jstest-0.2.2-cmake-3.5.patch
+++ b/dev-util/sdl-jstest/files/sdl-jstest-0.2.2-cmake-3.5.patch
@@ -18,6 +18,26 @@ CMake Deprecation Warning at CMakeLists.txt:17 
(cmake_minimum_required):
  CMakeLists.txt | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
+https://github.com/Grumbel/sdl-jstest/pull/28
+https://github.com/Grumbel/sdl-jstest/commit/4ab112042fee5604a42669556776691e71cc2dc6
+
+From edb195728070fb34f5f981edc5006c1bf9d89d7c Mon Sep 17 00:00:00 2001
+From: orbea <[email protected]>
+Date: Fri, 24 Oct 2025 09:12:12 -0700
+Subject: [PATCH] build: set the cmake_minimum_required as a range
+
+From the cmake documentation:
+
+  This uses the <min>...<max> syntax to enable the NEW behaviors of
+  policies introduced in CMake 4.1 and earlier while only requiring
+  a minimum version of CMake 3.10.
+
+Resource: 
https://cmake.org/cmake/help/latest/manual/cmake-policies.7.html#updating-projects
+Gentoo-Issue: https://bugs.gentoo.org/964646
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
 diff --git a/CMakeLists.txt b/CMakeLists.txt
 index 4969b63..268ac44 100644
 --- a/CMakeLists.txt
@@ -27,7 +47,7 @@ index 4969b63..268ac44 100644
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
 -cmake_minimum_required(VERSION 3.0)
-+cmake_minimum_required(VERSION 3.5)
++cmake_minimum_required(VERSION 3.10...4.1)
  project(sdl-jstest)
  
  set(TINYCMMC_MODULE_PATH 
"${CMAKE_CURRENT_LIST_DIR}/external/tinycmmc/modules/")

Reply via email to