#1112883 fasttext: FTBFS with CMake 4

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

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

Log Summary:
-------------------------------------------------------------------------------
[...]
iE43Xm+/Y9PVdDb+PlD3L/BXRgZ0dwauN+wTRrO5BJBWr7z5N2OAo9sIzYxt5Lio
EpU/8t09ta3Kew2P7Milj/F/kYF4OI9zznq6LXyMHR/llJqfuewaQ8ZB4WhPw9Ac
YvoH8qTpHzy4o749IHyeLgat95/I5fKfq5uGZ5Lqx6695hAjIQQSqV83a3Ec1PL+
f+1ZcmJHmgggQ7GLuaoD8HKEzW8CK13HVnWx8ZWZw1IMVLIRJkr0YGXPf/RICAqc
JGWY1FObVFuydlpoUUN+p9lMZ/BHZmUUbvoQAJm4qnVZcMybdu2owl3drLM3CRAT
D9uiHk/STEr6NSSyvvbvfbIIry5wE3XPUkcrVqxgYC0wjWE1Kfmo8ssrylnBY6d0
METWtmW5sY4=
=qUzQ
-----END PGP SIGNATURE-----

dpkg-source: warning: cannot verify inline signature for ./fasttext_0.9.2+ds-8.dsc: no acceptable signature found
dpkg-source: info: extracting fasttext in /build/reproducible-path/fasttext-0.9.2+ds
dpkg-source: info: unpacking fasttext_0.9.2+ds.orig.tar.xz
dpkg-source: info: unpacking fasttext_0.9.2+ds-8.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying support-shared-libraries-and-multiarch.patch
dpkg-source: info: applying build-python-modules-using-shared-library.patch
dpkg-source: info: applying respect-dh-compiler-flags.patch
dpkg-source: info: applying explicitly-link-libatomic.patch
dpkg-source: info: applying fix-ftbfs-gcc13.patch
dpkg-source: info: applying do_not_generate_python3-pkg-resources_dep.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 fasttext
dpkg-buildpackage: info: source version 0.9.2+ds-8
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Alexandre Detiste <tchet@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
dpkg-source: info: using options from fasttext-0.9.2+ds/debian/source/options: --extend-diff-ignore=^bitbucket-pipelines\.yml$
 debian/rules clean
dh clean --buildsystem=cmake
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/build/reproducible-path/fasttext-0.9.2+ds'
dh_auto_clean --buildsystem=cmake
rm -rf fasttext.1
rm -rf .pybuild
rm -rf python/fasttext_module/fasttext.egg-info
rm -rf build
rm -rf tmp
make[1]: Leaving directory '/build/reproducible-path/fasttext-0.9.2+ds'
   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/fasttext-0.9.2+ds'
xsltproc -''-nonet -''-param man.charmap.use.subset "0" /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl debian/fasttext.xml
debian/fasttext.xml:62: I/O error : failed to load "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd": Attempt to load network entity
]>
  ^
debian/fasttext.xml:62: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
]>
  ^
Note: Writing fasttext.1
dh_auto_configure --buildsystem=cmake
	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 ..
CMake Error at CMakeLists.txt:9 (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/2391865/

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

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

#1112883#12
Date:
2025-09-01 11:51:21 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

#1112883#17
Date:
2025-09-04 13:04:24 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
fasttext, 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 1112883@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Kentaro Hayashi <kenhys@xdump.org> (supplier of updated fasttext 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 20:57:08 +0900
Source: fasttext
Architecture: source
Version: 0.9.2+ds-9
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Kentaro Hayashi <kenhys@xdump.org>
Closes: 1112883
Changes:
 fasttext (0.9.2+ds-9) unstable; urgency=medium
 .
   * debian/watch
     - Update d/watch 5
   * debian/control
     - Bump Standards-Version to 4.7.2. no changes required.
   * debian/patches/fix-ftbfs-cmake4.patch
     - Add patch to fix ftbfs with CMake 4 (Closes: #1112883)
Checksums-Sha1:
 afa00a1dabed6a7863cae35d31abada04b14336a 2369 fasttext_0.9.2+ds-9.dsc
 17f44099ebcbb16af362e242f17277649ee957bd 8932 fasttext_0.9.2+ds-9.debian.tar.xz
 2ad99f4f443ad187b7714d84ab1ac56caeffe0a6 10121 fasttext_0.9.2+ds-9_amd64.buildinfo
Checksums-Sha256:
 4469bb1851051a7172e36c86724a31798c19ea8948d8c3e9d5098f981a628cfb 2369 fasttext_0.9.2+ds-9.dsc
 82744247e9788bc804a48ffe1835106dcc59fc0fcb86dd527e6167ac1d118aec 8932 fasttext_0.9.2+ds-9.debian.tar.xz
 e83abf9aa917fc8f5bfd90572ca44f7c73c6a14377e1255b4ea647ecddaf28d3 10121 fasttext_0.9.2+ds-9_amd64.buildinfo
Files:
 216dfcee7728e90dcff027b475ca4e2f 2369 science optional fasttext_0.9.2+ds-9.dsc
 7c538cb98f14c9052c00d3053d7bae38 8932 science optional fasttext_0.9.2+ds-9.debian.tar.xz
 0f4e0cf546455fef339318ab75763877 10121 science optional fasttext_0.9.2+ds-9_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEcZ6y2T2+nE0h+6Bk9/t1xWbtIOMFAmi5i0wACgkQ9/t1xWbt
IOMaoQ//QOyfB68X6uFzx9tvKqs28XL0Pzref33yYS1JGOK2aOYPn+zsxx8VRBeS
Lz+xzgxP8Jxz/udrJ5XDl1r3HPQVj5CYL5aFmDp2d2nc6vq81Qi694HOvY3CWuJc
c45ZgzGcEpBFJ8IzM81rBzHa2NtZZIjeyzIPyc+0N3QZR0FxNYF3FImcytUTqy3e
Ra8KLm9QuIDxC0jI8MpOViDaGecm7UU0xw8fdW40rcGZ/vOeRcPBs4vL2tFTZuy0
jECj9gfFZ56O9H+ajRWfeas5RztGAOKeHng4+qohNHsqhADLnb3p26T4HI3945uI
uuH88w2aRNT7hA/DeG2TicM4U/o0Xo3gl5Uz/ZvybzIJgm8RO9CqUAIYoPvhUECg
rm/K1x5EwuQwisJKWNSGW9yQjCRPbaLyX/m5ybXO9q7IOv7Yl9ChEiZPT4sVCpA/
H1dZbEZbCMGJtMq91nWlF5dmYJqfZRA4EXVeO6PmaLzjd+9Wwt+Dqgkt3LE9oZhM
xBL4SL6gbhF0cTi9zgE51mJbKzqAr5cxk651V0r6DQAvdNWkk9uXOq2H+oktALZR
mUXMYNlz34RZU8xttREmiK3lgINtBZzP1iUygWPejX9PPqe331OumP3JgTmq2ASF
XN9QsWNW6jbD7s+yrpFCuq32tWCKqGvONjtktgcyb9AxFaqnKxs=
=E1lm
-----END PGP SIGNATURE-----