Bug#1087867: llvm-toolchain-15: autopkgtest regression due to new CMake deprecation warning
Emilio Pozuelo Monfort
pochu at debian.org
Thu Jan 23 09:54:45 GMT 2025
On Tue, 19 Nov 2024 17:12:00 +0100 roehling at debian.org wrote:
> Source: llvm-toolchain-15
> Version: 1:15.0.7-15
> Severity: serious
> User: cmake at packages.debian.org
> Usertags: cmake-3.31
>
> Dear maintainer,
>
> your package has an autopkgtest regression with CMake 3.31. CMake has
> deprecated backwards compatibility for versions earlier than 3.10,
> which causes cmake_minimum_required() and/or cmake_policy() to emit a
> warning on stderr, thereby causing your autopkgtest to fail. The
> tests should be unaffected otherwise.
>
> To avoid this warning from cmake_minimum_required() you have two
> options:
>
> 1. Bump the minimum required version to at least 3.10. For reference,
> the CMake version in oldstable is 3.18 and in oldoldstable is 3.13.
>
> 2. Add a maximum version with the ... operator. For example, instead
> of cmake_minimum_required(VERSION 3.7) use
> cmake_minimum_required(VERSION 3.7...3.31).
>
> In either case, please verify that the requested policy profile is
> compatible with your package. This is very likely the case you have a
> non-trivial autopkgtest which passes after the change.
Note that llvm-toolchain-15 has been removed from sid already, and is only
present in testing due to emscripten still depending on it. Once emscripten gets
updated to a newer llvm (which has happened in sid, but there are issues with
it), then llvm-toolchain-15 will be automatically dropped from testing. Focus
should be on fixing emscripten and allowing it to migrate to testing, see its RC
bugs.
Cheers,
Emilio
More information about the Pkg-llvm-team
mailing list