#1087859 coin3: autopkgtest regression due to new CMake deprecation warning

#1087859#5
Date:
2024-11-19 16:11:44 UTC
From:
To:
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.

#1087859#10
Date:
2024-12-25 22:25:10 UTC
From:
To:
Hi,

I see:

"Marked for autoremoval on 02 January due to coin3
<https://tracker.debian.org/pkg/coin3>: #1087859
<https://bugs.debian.org/1087859> high

Version 0.21.2+dfsg1-6 of freecad is marked for autoremoval from testing
on Thu 02 Jan 2025. It depends (transitively) on coin3
<https://tracker.debian.org/pkg/coin3>, affected by #1087859
<https://bugs.debian.org/1087859>. You should try to prevent the removal
by fixing these RC bugs."

on https://tracker.debian.org/pkg/freecad

Will this be fixed before that deadline?

- Asle

On Tue, 19 Nov 2024 17:11:44 +0100 roehling@debian.org wrote:

 > Source: coin3
 > Version: 4.0.2+ds-2
 > Severity: serious
 > User: cmake@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.
 >
 >

#1087859#15
Date:
2024-12-27 03:43:26 UTC
From:
To:
With the upload of version 4.0.2+ds-3 ignoring output from stderr in
the autopkgtest scripts, the tests pass again.

Should this issue be closed, or is there more needed to work well with
future cmake versions?

#1087859#20
Date:
2024-12-27 08:58:04 UTC
From:
To:
(seems this message didn't went through yesterday, resending)

I've just uploaded a version with allow-stderr in autopkgtest.
While the cmake issue should be adressesd, possibly upstream, this will
make this bug non RC.