Bug#1113576: tint2: FTBFS with CMake 4
errorlevel <[email protected]>
| Newsgroups | gmane.linux.debian.devel.bugs.rc |
|---|---|
| Message-ID | <O7bezLjgUaZ0YkpT7EHku3aeReqw3C-mVWD7GSsR_VLsXNggiX4TZASX8St0h3-H5lFz9Ui1O-nZo5mDtOBZVlN1bOgLoC6uvZcwTSdApUQ=@proton.me> |
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
cmake4.patch
(text/x-patch, 857 B)
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 )