commit:     7a0aa6b9037939adc056757320eefa3a75581466
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed May 21 19:17:13 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed May 21 19:21:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a0aa6b9

dev-cpp/websocketpp: Fix build w/ cmake-4

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

 .../files/websocketpp-0.8.2-cmake4.patch           | 23 ++++++++++++++++++++++
 dev-cpp/websocketpp/websocketpp-0.8.2-r1.ebuild    |  2 ++
 2 files changed, 25 insertions(+)

diff --git a/dev-cpp/websocketpp/files/websocketpp-0.8.2-cmake4.patch 
b/dev-cpp/websocketpp/files/websocketpp-0.8.2-cmake4.patch
new file mode 100644
index 000000000000..9badaeb2105d
--- /dev/null
+++ b/dev-cpp/websocketpp/files/websocketpp-0.8.2-cmake4.patch
@@ -0,0 +1,23 @@
+From deb0a334471362608958ce59a6b0bcd3e5b73c24 Mon Sep 17 00:00:00 2001
+From: Alexander Bock <[email protected]>
+Date: Mon, 31 Mar 2025 22:04:07 +0200
+Subject: [PATCH] Update minimum required CMake version to comply with CMake
+ 4.0
+
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4f93e243a..92990c7dc 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -2,7 +2,7 @@
+ ############ Setup project and cmake
+ # Minimum cmake requirement. We should require a quite recent
+ # cmake for the dependency find macros etc. to be up to date.
+-cmake_minimum_required (VERSION 2.8.8)
++cmake_minimum_required (VERSION 3.10)
+ 
+ ############ Paths
+ 

diff --git a/dev-cpp/websocketpp/websocketpp-0.8.2-r1.ebuild 
b/dev-cpp/websocketpp/websocketpp-0.8.2-r1.ebuild
index 34177441a2c2..2286f83eec0c 100644
--- a/dev-cpp/websocketpp/websocketpp-0.8.2-r1.ebuild
+++ b/dev-cpp/websocketpp/websocketpp-0.8.2-r1.ebuild
@@ -35,6 +35,8 @@ PATCHES=(
        "${FILESDIR}/${P}-c++20-compat.patch"
        # From https://github.com/zaphoyd/websocketpp/pull/1164
        "${WORKDIR}/${P}-boost-1.87-compat.patch"
+       # 
https://github.com/zaphoyd/websocketpp/commit/deb0a334471362608958ce59a6b0bcd3e5b73c24
+       "${FILESDIR}/${P}-cmake4.patch" # bug 953936
 )
 
 src_configure() {

Reply via email to