• Re: Proposed MBF: CMake 4.0 compatibility

    From =?UTF-8?Q?Jeremy_B=C3=ADcha?=@21:1/5 to roehling@debian.org on Tue Jun 3 14:20:02 2025
    On Wed, Apr 23, 2025 at 3:49 PM Timo Röhling <roehling@debian.org> wrote:
    I have rebuilt the ~3000 packages which build-depend on CMake with
    debusine (thanks to Freexian for this helpful service and Stefano Rivera
    for his debusine-rebuilds tool) and discovered 936 affected packages;
    the dd-list is attached.

    If you want to fix your package, there are two options:

    1) Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to dh_auto_configure, which
    will override any CMakeLists.txt settings. This is the minimally
    invasive procedure, no patching required. See also [1].

    [1] https://cmake.org/cmake/help/latest/variable/CMAKE_POLICY_VERSION_MINIMUM.html

    Could we have debhelper do this by default for buildsystem=cmake (and cmake+ninja)?

    It feels like it would be so much nicer to update 1 package instead of
    more than 900.

    Thank you,
    Jeremy Bícha

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)