From 937c149531cbd9ec504d477325f171124bd74756 Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Sun, 9 Nov 2025 18:44:05 +0200 Subject: [PATCH] libuecc: backport patch for cmake 4.x compatibility Backport upstream patch for cmake 4.x compatibility. Signed-off-by: Hannu Nyman --- libs/libuecc/Makefile | 2 +- libs/libuecc/patches/001-cmake4.patch | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 libs/libuecc/patches/001-cmake4.patch diff --git a/libs/libuecc/Makefile b/libs/libuecc/Makefile index afd2af22fb..a95d7fed60 100644 --- a/libs/libuecc/Makefile +++ b/libs/libuecc/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libuecc PKG_VERSION:=7 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_MAINTAINER:=Matthias Schiffer PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz diff --git a/libs/libuecc/patches/001-cmake4.patch b/libs/libuecc/patches/001-cmake4.patch new file mode 100644 index 0000000000..2594ff91ff --- /dev/null +++ b/libs/libuecc/patches/001-cmake4.patch @@ -0,0 +1,26 @@ +From b3812bf5ab1777193c4b85863311c33997d141f9 Mon Sep 17 00:00:00 2001 +From: Sven Eckelmann +Date: Mon, 1 Sep 2025 10:21:38 +0200 +Subject: [PATCH] Fix build with CMake 4 + +CMake 4 dropped support for policies which were introduced before version +3.5. Trying to build uisng cmake 4 results in: +... +Just increasing minimum version to 3.18 (from 2020-07-15) fixes this +problem. This version is low enough to still support Debian bullseye or +Ubuntu 22.04. +... +Fixes: #1 +Signed-off-by: Sven Eckelmann +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.6) ++cmake_minimum_required(VERSION 3.18) + project(LIBUECC C) + set(PROJECT_VERSION 7) + -- 2.30.2