Dear Sebastian,
I tested tint2 17.0.1-1.2 with CMake 4 and prepared a minimal Debian quilt
patch for this FTBFS.
The failure is caused by the two cmake_minimum_required() declarations in:
- CMakeLists.txt
- src/tint2conf/CMakeLists.txt
Both declare a compatibility version older than the minimum supported by CMake
4. The attached patch changes these to use the min...max form:
- 2.8.5 → 2.8.5...4.1
- 2.6 → 2.6...4.1
I tested the resulting Debian package build on Debian Testing with CMake 4.3,
and it completed successfully, including tint2conf.
The patch is attached as cmake4.patch.
Regards,
errorlevel1
Index: tint2/CMakeLists.txt
===================================================================
--- tint2.orig/CMakeLists.txt
+++ tint2/CMakeLists.txt
@@ -1,5 +1,5 @@
project( tint2 )
-cmake_minimum_required( VERSION 2.8.5 )
+cmake_minimum_required( VERSION 2.8.5...4.1 )
option( ENABLE_BATTERY "Enable battery status plugin" ON )
option( ENABLE_TINT2CONF "Enable tint2conf build, a GTK+2 theme configurator for tint2" ON )
Index: tint2/src/tint2conf/CMakeLists.txt
===================================================================
--- tint2.orig/src/tint2conf/CMakeLists.txt
+++ tint2/src/tint2conf/CMakeLists.txt
@@ -1,5 +1,5 @@
project(tint2conf)
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 2.6...4.1)
include( FindPkgConfig )
pkg_check_modules( X11_T2C REQUIRED x11 xcomposite xdamage xinerama xrender xrandr>=1.3 )