#1113477 rtags: FTBFS with CMake 4

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

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

Log Summary:
-------------------------------------------------------------------------------
[...]
pFxwGkFP8IU3AQ8HRfWPlkNh6GAgDXwonROdrLXTl3BSyOY3tIzb6nVmN3dyQGtQ
AR0XFIghmDbBur6zuc0fF3p2eBiCCmRhgaH56kpHW1pRnx9rQ5FyhR6c7KqBjCtV
qYoLMg4NOsEsk1dCqRdAc7WqEaj4JIDHX9VvDqotMoO7Ynd8go392mbDYIvt/sSU
/LhQboE5bGULS+FxamS5P0eOyhTZuyGQrh3PFKKVOUs13lHZXI8BOmC3xP2XAwnJ
4HJYyaXuWBoMAe2zNHNY+k21ESjyMMAnp8+1AC2VzrJImPk4S8h5axOQmygfgVBq
yJnLhpK7Rae6ryHUCbE=
=WqO1
-----END PGP SIGNATURE-----

dpkg-source: warning: cannot verify inline signature for ./rtags_2.41-1.dsc: no acceptable signature found
dpkg-source: info: extracting rtags in /build/reproducible-path/rtags-2.41
dpkg-source: info: unpacking rtags_2.41.orig.tar.gz
dpkg-source: info: unpacking rtags_2.41-1.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying 0001-fix-lintian-error-about-rpath.patch
dpkg-source: info: applying 0002-do-not-link-unused-libdl.so.patch
dpkg-source: info: applying 0003-systemd-service.patch
dpkg-source: info: applying 0004-move-rp-to-lib-rtags.patch
dpkg-source: info: applying 0005-move-gcc-rtags-wrapper.sh-to-lib-rtags.patch
dpkg-source: info: applying 0006-update-rc-manpage.patch
dpkg-source: info: applying 0007-update-rdm-manpage.patch
dpkg-source: info: applying 0008-rename-rc-rdm-binaries-to-rtags-rc-rdm.patch
dpkg-source: info: applying 0009-rename-rc-rdm-in-the-man-pages.patch
dpkg-source: info: applying 0010-make-build-reproducible.patch
dpkg-source: info: applying 0011-cleanup-links-to-images-on-3rd-party-sites.patch
dpkg-source: info: applying 0012-rename-binaries-to-rtags-in-python-tests.patch
dpkg-source: info: applying 0013-fix-hardcoded-clang-in-python-tests.patch
dpkg-source: info: applying 0014-rename-systemd-unit-according-to-debian-policy.patch
dpkg-source: info: applying 0015-expand-range-of-llvm-versions.patch
dpkg-source: info: applying 0016-always-finish-the-connection.patch
dpkg-source: info: applying 0017-Add-when-argument-to-define-obsolete-function-alias.patch
dpkg-source: info: applying 0018-Fix-regex-on-find-clang.patch

Check disk space
----------------

Sufficient free space for build

User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=C.UTF-8
LC_ALL=C.UTF-8
LOGNAME=sbuild
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SHELL=/bin/sh
USER=sbuild

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage --sanitize-env -us -uc -b
dpkg-buildpackage: info: source package rtags
dpkg-buildpackage: info: source version 2.41-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Denis Danilov <danilovdenis@yandex.ru>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
 debian/rules clean
dh clean --buildsystem=cmake
   dh_auto_clean -O--buildsystem=cmake
   dh_autoreconf_clean -O--buildsystem=cmake
   dh_clean -O--buildsystem=cmake
 debian/rules binary
dh binary --buildsystem=cmake
   dh_update_autotools_config -O--buildsystem=cmake
   dh_autoreconf -O--buildsystem=cmake
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/build/reproducible-path/rtags-2.41'
dh_auto_configure -- \
	-DRTAGS_NO_ELISP_FILES=1
	cd obj-aarch64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb 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 -DRTAGS_NO_ELISP_FILES=1 ..
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/2410606/

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

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

#1113477#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

#1113477#17
Date:
2025-09-03 23:20:19 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rtags, 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 1113477@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Denis Danilov <danilovdenis@yandex.ru> (supplier of updated rtags 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: Wed, 03 Sep 2025 23:53:56 +0200
Source: rtags
Architecture: source
Version: 2.41-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Emacsen team <debian-emacsen@lists.debian.org>
Changed-By: Denis Danilov <danilovdenis@yandex.ru>
Closes: 1113477
Changes:
 rtags (2.41-2) unstable; urgency=medium
 .
   * fix cmake (Closes: #1113477)
Checksums-Sha1:
 397c5e2c2d66d3ef9bea0664bd53b0aae8b59bc5 2438 rtags_2.41-2.dsc
 21ad7a8674b669cab2e1396dc4a4a4681f568927 15268 rtags_2.41-2.debian.tar.xz
 a09f2710eb38277f62fa90097f344bc764f380a2 9000 rtags_2.41-2_source.buildinfo
Checksums-Sha256:
 4023a0958b123a70ab95f8108798829615af4c0f45d15fd8aac0a84c8146ab64 2438 rtags_2.41-2.dsc
 3e7432545c46e9e5a0fd7430df619001c39d75d813797ba6ad5dc83c1ef45263 15268 rtags_2.41-2.debian.tar.xz
 7a776c5d036b4e531060a5a1949199f0acffbeebdde244e22edd0ba2fb91486e 9000 rtags_2.41-2_source.buildinfo
Files:
 994befed7b113af74a125fd5ac75d20b 2438 devel optional rtags_2.41-2.dsc
 ccd9fad4f21364e9fb2e7f1115850fbe 15268 devel optional rtags_2.41-2.debian.tar.xz
 139ac4f6c9adc55f42cdc62f8ee77b8b 9000 devel optional rtags_2.41-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJLBAEBCgA1FiEEA4BLWvLGNvkIsVtPNujGKRmV+CAFAmi4xX8XHGRhbmlsb3Zk
ZW5pc0B5YW5kZXgucnUACgkQNujGKRmV+CBWpA//cPCayrIszeG9MeZy1apqwLNV
CgZFrmvRIpR4e/Raf2xc+/bsiJu5d+qwfJWxg3KxS51PXRcGLiODrILcUYF8If5f
uBmC1eDNQ4AG/MnusftEmx9B2kPzLjlHREK71uIJePgw7Y6R1b7+8qsj7BQoq5I0
pFnq5IVS1rsl0qiKCSjavYlY8U8nFzlJgMK+GBSWeC10V5Ib/TQIwGFLaUYN4uWd
zuz1X+WQ49YdEqrbhcJNesmDfD3IeuhM0tAdz8CGIfZdDJ2Nr0SxDjUiMgs4AgRL
Q7X7VyU6rzSx5AAZEXcjxBxMTdsp+O0SjGd7qShcvhbu+lejYij8rt35sexbg7Ei
rkNjaJbJSWsmae7sFzGxGC8Kow6zQGSLIt8TFPAPrtDrVlp6AfJq2wL2XkjeKMp0
Oy2PEYoL4BF4Ohb4HdGM/DlL/g2JQcBhdjxPNPkww0PtlniHBK4rXMAm53Dp66EJ
QwTrtXn8DdYo+ZBw3ZnTQF9sk/DLv8k1jTKd52I91U2xLmhgrd3hjQEyoyBamDoC
1gXNVCfLhqsT45qwgUBuDiYEWIgJW6HPGUmKy5tJ650tZKc5glCs3/qScAGlIrfl
uYnrDTIjSap34OLGzyTNr384KZPtJU/wbmK8cizsdhufs7M7s26YwiG6EE/wxHQ8
89FClHEJU+U0zJUxyEg=
=l0VP
-----END PGP SIGNATURE-----