[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1070024: Rebuild for cmake 3.29 compatibility fix



Package: ksyntax-highlighting
X-Debbugs-CC: chr@istoph.de
Severity: important

(this is a follow-up to #1069972)

Please rebuild libkf5syntaxhighlighting-dev using
extra-cmake-modules 6.1.0-1 or newer.

As far as i understand this needs a sourceful upload as
libkf5syntaxhighlighting-dev is a arch any binary package.
(not sure if it needs a versioned build depends to pick up the
new version of extra-cmake-modules)

Since cmake 3.29 entered sid, the files created by ECMAddQch.cmake from
extra-cmake-modules < 6.1.0-1 (as the libkf5syntaxhighlighting-dev
currently in sid) cause warnings or errors (with CMP0160 set to NEW).

Furthermore when libkf5syntaxhighlighting-dev is consumed in packages
build using meson, the build fails as the meson cmake compat code
always sets cmake_minimum_required to the current cmake version and
thus CMP0160 is alway set to NEW which makes the code generated
before the fix an hard error.

For example the package chr now no longer builds in sid because of
this.

-- Configuring incomplete, errors occurred!
ERR:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/KF5SyntaxHighlighting/KF5SyntaxHighlightingQchTargets.cmake:6 (set_target_properties):
  IMPORTED property is read-only for target("KF5SyntaxHighlighting_QCH")
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/KF5SyntaxHighlighting/KF5SyntaxHighlightingConfig.cmake:42 (include)
  CMakeLists.txt:20 (find_package)

(for a full log see https://salsa.debian.org/chr/chr/-/jobs/5651154 )

Regards,
 - Martin


Reply to: