commit: 4dd8b4eeefb98e627e25bb1d6558219d088e0135 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Sat Jun 7 14:00:25 2025 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Sat Jun 7 14:24:59 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dd8b4ee
dev-util/wasm3: bump cmake_minimum_required Closes: https://bugs.gentoo.org/957480 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> .../wasm3/files/wasm3-0.5.0-cmake_minimum.patch | 52 ++++++++++++++++++++++ dev-util/wasm3/wasm3-0.5.0.ebuild | 4 +- 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/dev-util/wasm3/files/wasm3-0.5.0-cmake_minimum.patch b/dev-util/wasm3/files/wasm3-0.5.0-cmake_minimum.patch new file mode 100644 index 000000000000..2d3552f62bf3 --- /dev/null +++ b/dev-util/wasm3/files/wasm3-0.5.0-cmake_minimum.patch @@ -0,0 +1,52 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.11) ++cmake_minimum_required(VERSION 3.20) + + # Detect WasiEnv + if(DEFINED ENV{WASI_CC} OR DEFINED WASI_SDK_PREFIX) +--- a/platforms/android/app/src/main/cpp/CMakeLists.txt ++++ b/platforms/android/app/src/main/cpp/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.4.1) ++cmake_minimum_required(VERSION 3.20) + + add_definitions(-DANDROID -Wno-format-security -O3 + #-fno-optimize-sibling-calls +--- a/platforms/cpp/CMakeLists.txt ++++ b/platforms/cpp/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.9) ++cmake_minimum_required(VERSION 3.20) + project(wasm3_cpp_example) + + set(target ${CMAKE_PROJECT_NAME}) +--- a/platforms/cpp/wasm3_cpp/CMakeLists.txt ++++ b/platforms/cpp/wasm3_cpp/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.5) ++cmake_minimum_required(VERSION 3.20) + add_library(wasm3_cpp INTERFACE) + target_include_directories(wasm3_cpp INTERFACE include) + target_compile_features(wasm3_cpp INTERFACE cxx_std_17) +--- a/platforms/embedded/esp32-idf-wasi/CMakeLists.txt ++++ b/platforms/embedded/esp32-idf-wasi/CMakeLists.txt +@@ -1,6 +1,6 @@ + # The following lines of boilerplate have to be in your project's + # CMakeLists in this exact order for cmake to work correctly +-cmake_minimum_required(VERSION 3.5) ++cmake_minimum_required(VERSION 3.20) + + include($ENV{IDF_PATH}/tools/cmake/project.cmake) + project(wasm3) +--- a/platforms/embedded/esp32-idf/CMakeLists.txt ++++ b/platforms/embedded/esp32-idf/CMakeLists.txt +@@ -1,6 +1,6 @@ + # The following lines of boilerplate have to be in your project's + # CMakeLists in this exact order for cmake to work correctly +-cmake_minimum_required(VERSION 3.5) ++cmake_minimum_required(VERSION 3.20) + + include($ENV{IDF_PATH}/tools/cmake/project.cmake) + project(wasm3) diff --git a/dev-util/wasm3/wasm3-0.5.0.ebuild b/dev-util/wasm3/wasm3-0.5.0.ebuild index 8ebb505db465..d603d625a502 100644 --- a/dev-util/wasm3/wasm3-0.5.0.ebuild +++ b/dev-util/wasm3/wasm3-0.5.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -22,6 +22,8 @@ fi LICENSE="MIT" SLOT="0" +PATCHES=( "${FILESDIR}/wasm3-0.5.0-cmake_minimum.patch" ) + DOCS=( README.md docs ) src_configure() {
