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 0000000000000..2d3552f62bf37 --- /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 8ebb505db4650..d603d625a5028 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() {