From 9abe0ba95a72864cd06bca7a641fd03fde98f6ed Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Sun, 26 Oct 2025 13:44:17 +0200 Subject: [PATCH] package/woff2: fix cmake 4 compatibility Add a patch fixing cmake 4 compatibility. Signed-off-by: Adrian Perez de Castro Signed-off-by: Julien Olivain --- .../0002-Fix-the-build-with-CMake-4.patch | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/woff2/0002-Fix-the-build-with-CMake-4.patch diff --git a/package/woff2/0002-Fix-the-build-with-CMake-4.patch b/package/woff2/0002-Fix-the-build-with-CMake-4.patch new file mode 100644 index 0000000000..c516c67ef4 --- /dev/null +++ b/package/woff2/0002-Fix-the-build-with-CMake-4.patch @@ -0,0 +1,37 @@ +From ee31ca0647decc493e992eaa3dc5be9d9e1bc871 Mon Sep 17 00:00:00 2001 +From: Adrian Perez de Castro +Date: Sat, 25 Oct 2025 22:19:21 +0300 +Subject: [PATCH] Fix the build with CMake 4 + +Require CMake 3.5, which is the latest version that CMake 4 is +backwards-compatible with. The CMake build system does not need +any change otherwise. + +Fixes #183 + +Upstream: https://github.com/google/woff2/pull/187 +Signed-off-by: Adrian Perez de Castro +--- + CMakeLists.txt | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ecfbb83..6525747 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,11 +3,7 @@ + # Distributed under MIT license. + # See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + +-# Ubuntu 12.04 LTS has CMake 2.8.7, and is an important target since +-# several CI services, such as Travis and Drone, use it. Solaris 11 +-# has 2.8.6, and it's not difficult to support if you already have to +-# support 2.8.7. +-cmake_minimum_required(VERSION 2.8.6) ++cmake_minimum_required(VERSION 3.5.0) + + project(woff2) + +-- +2.51.1 +