#1113310 nanomsg: FTBFS with CMake 4

Package:
src:nanomsg
Source:
src:nanomsg
Submitter:
Date:
2025-12-05 04:37:03 UTC
Severity:
normal
Tags:
#1113310#5
Date:
2025-08-31 23:01:01 UTC
From:
To:
Dear maintainer,

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

Log Summary:
-------------------------------------------------------------------------------
[...]
Build-Depends: debhelper (>= 11~), asciidoctor, cmake
Package-List:
 libnanomsg-dev deb libdevel optional arch=any
 libnanomsg5 deb libs optional arch=any
 nanomsg-utils deb libs optional arch=any
Checksums-Sha1:
 338012f34c02edfb52e612d557f4443d85ae8124 256511 nanomsg_1.1.5+dfsg.orig.tar.gz
 786923852d8aa4807a0d6dfa2bcdbfe4127670ff 7824 nanomsg_1.1.5+dfsg-1.1.debian.tar.xz
Checksums-Sha256:
 0b0c3457f9f8476b5635fb3f418c7a144c22f5f7bf633c647d91af722ffe2386 256511 nanomsg_1.1.5+dfsg.orig.tar.gz
 3d28dc5bf06a0181d76f3701b1b68afc2f447e5dc51974bce140a43e63bec343 7824 nanomsg_1.1.5+dfsg-1.1.debian.tar.xz
Files:
 338637f6cad37c043f68b752e67f57f8 256511 nanomsg_1.1.5+dfsg.orig.tar.gz
 c81fed34889701c05f8cd989503d8d49 7824 nanomsg_1.1.5+dfsg-1.1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAmO+Z7EACgkQHpU+J9Qx
HlhNqg//eEKduovFvplMXrHgArFQBGE9PdSf//jPkJ9Lw5mpJvKRJPyC37aXlW6b
PdmGxGSFTKGl008ikbgnsqtdmn9hHI2aXf8GK7SfUsNtJM5Xwjf+7jaXYMFh71GB
dNRZn6zsjPvfQPnAU23JGRx2fepzvkvRYUdxNUIQfX7dsixasj6v90/wTCNlw/Tm
txL+fNJYV87fyGTGgRd+NMTQK4j/q+eBKaQRhuYC2IKycNRc7Bu/UGQfWYpgum+z
1wLXUCK2JOMV9If7qzYas/xXmtr0zOmLVG1EXIfmNw3gHtJspOM9u88KsNa1E6vr
J/en1kktn3sRLxd9Ga0jubhJN5EkIaxBwRLpWUH+/gABV0KQHdNzdBU70rUwPbcd
s2Rhzsxc2d7GUP+sCJPNuPaRTiDdk0FACQVVtyyIp6ZLhKZPKRbXxSLIMng0xZDV
v9NlxcwC5xmQgAmZZ60559J6a83SKKO/pUDeCBXVFKcWsbo+TXwxuWehDw4nC0Bc
VHOUEOBfOdVFUELYys93A9CqIQpGgUj3nnIxyAsxasdu52nc+0OIQ7OSYSCo/kxF
dqKMd+913whC/0u2LrFyTjOKcLlImiLqb+ZQS50BWmtc6NddbETI8j1N+ylyMPFY
DPsEJe2zs27cwHHDA9tMOhnIm6AgeCjEwKCj6U3BOLQnHjxNyjA=
=6JwY
-----END PGP SIGNATURE-----

dpkg-source: warning: cannot verify inline signature for ./nanomsg_1.1.5+dfsg-1.1.dsc: no acceptable signature found
dpkg-source: info: extracting nanomsg in /build/reproducible-path/nanomsg-1.1.5+dfsg
dpkg-source: info: unpacking nanomsg_1.1.5+dfsg.orig.tar.gz
dpkg-source: info: unpacking nanomsg_1.1.5+dfsg-1.1.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying 0001-fix-rpath.patch
dpkg-source: info: applying 0002-remove-google-fonts.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 nanomsg
dpkg-buildpackage: info: source version 1.1.5+dfsg-1.1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Chris Lamb <lamby@debian.org>
 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/nanomsg-1.1.5+dfsg'
dh_auto_configure -- -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON
	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 "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/aarch64-linux-gnu -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON ..
CMake Error at CMakeLists.txt:27 (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/2404844/ 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/154188/ 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
#1113310#12
Date:
2025-09-01 11:52:16 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

#1113310#21
Date:
2025-10-25 16:47:44 UTC
From:
To:
Control: tag -1 upstream fixed-upstream
https://github.com/nanomsg/nanomsg/releases/tag/1.2.2

https://github.com/nanomsg/nanomsg/commit/eb24489839de :
cmake: support CMake 4.0 and up

So it seems uploading version 1.2.2 is the best way to fix this bug.

#1113310#28
Date:
2025-11-19 02:44:44 UTC
From:
To:
Dear maintainer,

I've prepared an NMU for nanomsg (versioned as 1.1.5+dfsg-1.2) and
uploaded it to DELAYED/15. Please feel free to tell me if I should
cancel it.

cu
Adrian

#1113310#37
Date:
2025-12-05 04:34:22 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
nanomsg, 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 1113310@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 nanomsg 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: Tue, 18 Nov 2025 22:37:52 +0200
Source: nanomsg
Architecture: source
Version: 1.1.5+dfsg-1.2
Distribution: unstable
Urgency: medium
Maintainer: Harlan Lieberman-Berg <hlieberman@debian.org>
Changed-By: Adrian Bunk <bunk@debian.org>
Closes: 1113310
Changes:
 nanomsg (1.1.5+dfsg-1.2) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Backport upstream fix for FTBFS with CMake 4. (Closes: #1113310)
Checksums-Sha1:
 ebb9b8712f7ed165a5e8f10ef1f8c5e38f5b113a 1993 nanomsg_1.1.5+dfsg-1.2.dsc
 e268f13e7ce9fb6ae7325d7585158561952cf8b2 8252 nanomsg_1.1.5+dfsg-1.2.debian.tar.xz
Checksums-Sha256:
 0ae3ba26f5028c88b7c2c41b80090cb59cb9388b691cd02b14bd319656c21279 1993 nanomsg_1.1.5+dfsg-1.2.dsc
 b32f3c0286943a44229847857cd975292663b6f4f7875a8eea01295d3b700d92 8252 nanomsg_1.1.5+dfsg-1.2.debian.tar.xz
Files:
 b1a533e18ff9f397c1238187bbea0282 1993 libs optional nanomsg_1.1.5+dfsg-1.2.dsc
 9f3c08eb339bbadcb85ee7dc8cb01bbe 8252 libs optional nanomsg_1.1.5+dfsg-1.2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmkdLwoACgkQiNJCh6LY
mLGuxQ/7BGotDAljZthELHA2juo3aPxF4nESNQR7CYmKwbSAxkvM1vupJccDeC/n
r7JhxrRYtuO1i1HMPFc61pC9LtJGbmQlB130xLssTZmK0tPOmmf2qGOMoRiDEqdT
GmABQ9SE1IffHQoFC7zQ4rhVWdLeVeb1xrAi7rwRj5VnWit1B9nbfmIk16xTIwux
M5/e2ef3qUjPPp5JLPQQWmTULUTVLSwsB+m1lKT+OcI5iuqWw7KLC9UNMbVu3Zqh
rowGFBmAl49F7CFP/sRttbDXAWv82gDC/y3uvWBdWrNUfNdcN90yotbatlWT8J48
UlC4rB/kCwP2x4ftRVwvPEwWvi5VOb0tTMS5lXYGILtp+qfwbUi31li8uVg/Va0e
8TFwmHvd9hppmmelbMnUfuLPEeTygSk/2PshCwA4lU0sC3NKJB+qcTKWypIlcKYJ
dFiXxig6k3VE+C5JHq/vTi41BLhNQyiQ+F9mUloT62wWLN6hO3AqadIRukv3xufj
oY/vLVHSISMwRzKq3nVi5QSjC2VvPi6g8q39AygZcoqbkDHX0Q5DUcqRZf3nqwd3
+ufu1SVMW6r2TrCvxKzB4t58nxBkjzknmYqJSOP2i+sc8YfU+FAJHvZaFLwbKRNT
qy/Lv3/T4Iq14zLxfCprR8257rCNpAlclr315kjrC48c1j7G3fA=
=zy7N
-----END PGP SIGNATURE-----