#1113475 ros-genpy: FTBFS with CMake 4

#1113475#5
Date:
2025-08-31 23:04:04 UTC
From:
To:
Dear maintainer,

During a test rebuild for CMake 4, ros-genpy failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
dpkg-buildpackage: info: source package ros-genpy
dpkg-buildpackage: info: source version 0.6.18-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Timo Röhling <roehling@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
 debian/rules clean
dh clean --buildsystem=ros
   dh_auto_clean -O--buildsystem=ros
    dh_auto_clean --sourcedir=. --builddir=obj-aarch64-linux-gnu/genpy --buildsystem=cmake --
   dh_autoreconf_clean -O--buildsystem=ros
   dh_clean -O--buildsystem=ros
 debian/rules binary
dh binary --buildsystem=ros
   dh_update_autotools_config -O--buildsystem=ros
   dh_autoreconf -O--buildsystem=ros
   dh_auto_configure -O--buildsystem=ros
   dh_auto_build -O--buildsystem=ros
   dh_auto_test -O--buildsystem=ros
   create-stamp debian/debhelper-build-stamp
   dh_testroot -O--buildsystem=ros
   dh_prep -O--buildsystem=ros
   dh_auto_install --destdir=debian/python3-genpy/ -O--buildsystem=ros
#############################################################################
## Detected ROS packages (in build order):                                 ##
##                                                                         ##
## - genpy [catkin]                                                        ##
#############################################################################

=============================================================================
= ROS Package genpy                                                         =
=============================================================================
    dh_auto_configure --sourcedir=. --builddir=obj-aarch64-linux-gnu/genpy --buildsystem=cmake -- --no-warn-unused-cli -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON -DCATKIN_BUILD_BINARY_PACKAGE=ON -DCATKIN_DEVEL_PREFIX=/build/reproducible-path/ros-genpy-0.6.18/obj-aarch64-linux-gnu/_devel -DCATKIN_TEST_RESULTS_DIR=/build/reproducible-path/ros-genpy-0.6.18/obj-aarch64-linux-gnu/genpy/test_results
	cd obj-aarch64-linux-gnu/genpy && PKG_CONFIG=/usr/bin/pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/aarch64-linux-gnu --no-warn-unused-cli -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON -DCATKIN_BUILD_BINARY_PACKAGE=ON -DCATKIN_DEVEL_PREFIX=/build/reproducible-path/ros-genpy-0.6.18/obj-aarch64-linux-gnu/_devel -DCATKIN_TEST_RESULTS_DIR=/build/reproducible-path/ros-genpy-0.6.18/obj-aarch64-linux-gnu/genpy/test_results ../..
Not searching for unused variables given on the command line.
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/2410397/

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/154768/

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

#1113475#12
Date:
2025-09-01 11:52:29 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

#1113475#15
Date:
2025-09-04 15:35:36 UTC
From:
To:
Hello,

Bug #1113475 in ros-genpy reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/science-team/ros-genpy/-/commit/dc12f35154d1bb4d56694fe10276659f5e1a9833
------------------------------------------------------------------------
Bump cmake_minimum_required()

Closes: #1113475
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1113475

#1113475#22
Date:
2025-09-04 16:50:03 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
ros-genpy, 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 1113475@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Timo Röhling <roehling@debian.org> (supplier of updated ros-genpy 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: Thu, 04 Sep 2025 17:34:05 +0200
Source: ros-genpy
Architecture: source
Version: 0.6.18-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Timo Röhling <roehling@debian.org>
Closes: 1113475
Changes:
 ros-genpy (0.6.18-2) unstable; urgency=medium
 .
   * Bump cmake_minimum_required() (Closes: #1113475)
Checksums-Sha1:
 c25ebb015eef56f6b5560f8d2d5fde7b5d0e2c7a 2284 ros-genpy_0.6.18-2.dsc
 e12954eb1d678010312e19e47d369ea86bcc7e1f 4612 ros-genpy_0.6.18-2.debian.tar.xz
Checksums-Sha256:
 508e38ae0b757749c383abf7147d8c7049cbc370068782d7ef0ece1b4e1ce91a 2284 ros-genpy_0.6.18-2.dsc
 b3de6fa28888abfc2cd9883159d217e666c75f32604211e4c3dccfa811ab8336 4612 ros-genpy_0.6.18-2.debian.tar.xz
Files:
 13a2842447c281ea172bfbe80519bfd3 2284 python optional ros-genpy_0.6.18-2.dsc
 d163bfdaf32d6f1847d09e2c7eb668fc 4612 python optional ros-genpy_0.6.18-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEmwPruYMA35fCsSO/zIxr3RQD9MoFAmi5sb4UHHJvZWhsaW5n
QGRlYmlhbi5vcmcACgkQzIxr3RQD9MqrVw/+Ml7BAb8qVdWU+sZn304bBM1eKpjg
DZ7MYVo/qk9tOfTP+lL8tJCTPOtPutYq6skIK8O12qGEVoxOzrBmt1Qy1WAJCktg
Mq2KCUxNe4KE+LQmjqxKCsiJP99rzYyx417FG948fHkHc9NjeeiswHw++60IT6ka
yReDFs8TbAqEPPH/Kp5OiQTys4QZhTnIm3AeKYiozWU6di1JcKd4zQQsQNmkI7AQ
Ws9puq8SN56KmLGtI3L7dJP+cFx0k2GQsELViJ2vxvSHKOWsgSBqw0HXzdK0Pxr7
xpC7H4AEhylPYDGdQc3fR1TR2wteGO1rTuR/8Kt9PpuVA1Svwt8oFIKFsnfuH+se
HvGMN2b1vJdXDm/CqnxV9PMEQbJ3smL/+2sU0ARzscECAvwcAEOh+3QuxM9lGz+1
1HfzLQTHSJBXetbhFHlsf+UYyjtp2lKe3Dfq6n8by63sqXBtaSrQncvmdkt2+4aN
G4yYQ9rg4q3aPqXFo9YpBeD53B1vtPG5Fbaedl2Q1lEbdbWq0fnMZZkt2WwObuu1
HtB3xy/U0jI3qtO4Ex6nH6z9zf4JWXVmHe+GOBnIR0J4uCYzcgcy1mRURmopyfAh
jQx/YGuw6YIFB4jZP3lAr5vnPdm9/y+dRtJXxZ6WVV0KWH7JgAIsw50/1ILxNW6Z
ZkJd95Gi3x+2VwI=
=QpLu
-----END PGP SIGNATURE-----