#1112921 flightgear: FTBFS with CMake 4

#1112921#5
Date:
2025-08-31 22:53:51 UTC
From:
To:
Dear maintainer,

During a test rebuild for CMake 4, flightgear failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/2392455/

The most likely cause of build failures is the removed backwards compatibility for
CMake versions earlier than 3.5. You can find additional information in my
debian-devel announcement:

https://lists.debian.org/debian-devel/2025/04/msg00310.html

About the archive rebuild: The build was made on debusine.debian.net,
using sbuild.

You can find the build task here:
https://debusine.debian.net/work-request/152892/

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks,
Timo

#1112921#12
Date:
2025-09-01 11:51:32 UTC
From:
To:
I have downgraded the bug to non-RC severity temporarily and reverted
CMake in unstable to version 3.31.6. I plan to re-upgrade in about a
month's time. I realize that despite my April announcement, the upload
to unstable came rather surprising, and I don't want to cause
unnecessary pain.

Also, the build log URL has an unfortunate mistake. The correct URL
should include the workspace, i.e.,

https://debusine.debian.net/debian/developers/artifact/XXXX

CMake 4 will also be available in experimental again, so it can be
used to verify that the bug is fixed.

Cheers
Timo

#1112921#23
Date:
2025-10-04 06:04:19 UTC
From:
To:
Dear maintainer,

I've prepared an NMU for flightgear (versioned as 1:2020.3.19+dfsg-1.1)
and uploaded it to DELAYED/2. Please feel free to tell me if I should
cancel it.

This is an updated version with the following changes:
  * Backport upstream fix for FTBFS with GCC 15. (Closes: #1096639)
  * Fix FTBFS with CMake 4. (Closes: #1112921)
  * debian/control: Update Homepage.

cu
Adrian

#1112921#28
Date:
2025-10-05 12:06:35 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
flightgear, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1112921@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adrian Bunk <bunk@debian.org> (supplier of updated flightgear package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 03 Oct 2025 20:54:04 +0300
Source: flightgear
Architecture: source
Version: 1:2020.3.19+dfsg-1.1
Distribution: unstable
Urgency: medium
Maintainer: Debian FlightGear Crew <team+flightgear@tracker.debian.org>
Changed-By: Adrian Bunk <bunk@debian.org>
Closes: 1096639 1112921
Changes:
 flightgear (1:2020.3.19+dfsg-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Backport upstream fix for FTBFS with GCC 15. (Closes: #1096639)
   * Fix FTBFS with CMake 4. (Closes: #1112921)
   * debian/control: Update Homepage.
Checksums-Sha1:
 ee1dec20ae28f5b598b07ba9cc35e2ff53d0b43a 2698 flightgear_2020.3.19+dfsg-1.1.dsc
 4e36aaaede117f7808905ac3d64b6f7fcb3a78cf 29288 flightgear_2020.3.19+dfsg-1.1.debian.tar.xz
Checksums-Sha256:
 14cad57c3483ff7f7d4f36d07a52107e898ee0a88f55bfc6f027d51e2a840971 2698 flightgear_2020.3.19+dfsg-1.1.dsc
 d0daae3ede00b7795d87b969b85402a0cc62791519cff4ba33ff63b9b4f1e477 29288 flightgear_2020.3.19+dfsg-1.1.debian.tar.xz
Files:
 4156779bc4fc4879f8a679a3dd99db48 2698 games optional flightgear_2020.3.19+dfsg-1.1.dsc
 91ae73dd1d762a00c260a8846a96a58f 29288 games optional flightgear_2020.3.19+dfsg-1.1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmjgRUsACgkQiNJCh6LY
mLHKfxAAyESRgocktGtDofMRfRdZkysuAh7+aBdqVOIjrlMIrilcFrB/7PR/Zzrf
F77DYMB/i8k/gF7LL2PiBbSRKNFl0Xgb/0KNPPGw6MLLv7oxjGEdfxgHPDd5EyvN
iXo4T7XiIyBEqiZGGZ49OxZQaNzZMbKaPYkQTH9s16ACcEqD5EDN8H2K0tk9xKXw
tYEdvfO5o/w8x251wdaCM8tbAY+M2JgIbMJCqr6xVqJR4wCYAPtOS/oP5hYJNpGZ
urLsJbEur5ZAHwe+UHpdYawKcwlHf4NzJadjSBCNS8N0JI1Q7IMPx7SSlFNKxGeE
Qb0I1b5lbbHo8WHFyo/D9gSlS2jZ9ItELCQ0kTSHm0HPDVFB41ylQx5GLCOpXpBm
YDlb9AQCxpIMadwSS5OWEbR3jrx09W61UgE6iBSIIc/kWDe/taPX9p4sdPwJvSMl
eImgUmI+bVkAlt3AtT1bO/4vXhLbAYSZw3yepwV1Ks/JBRDgEU6IH85E44d6DCQQ
04c/xaaOzgrzMcBV7lqEm5nCHfGwnTBzc530hpOIQ3XaAvnzu9OKQY8MqTyk447q
0EAVQ9osAna2X2b5G40FzVSq/shqMyaV9KOLMICyxu71VGRjZG5UXUBsAhs4re7a
iY/4LlF75WqMLirgt2VD+ljcA9uC2v8s+WOMycrBPbDPQf9JkOE=
=lOTX
-----END PGP SIGNATURE-----