#1113400 pfstools: FTBFS with CMake 4

#1113400#5
Date:
2025-08-31 23:02:39 UTC
From:
To:
Dear maintainer,

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

Log Summary:
-------------------------------------------------------------------------------
[...]
ZPMLO4jpDkD/pqrxhzkCkY2m4fTrZx6DUaQ3UmVZEvoGx0NPEt9Kpv8O+dAungiL
ydTwi6jKjB4sxccnHVHO/0uE/ZqkUG1ZM5ryN3+LVZngCbL4xaEg+FkLTv7RKlo/
Xu8imwp5lCvQctPkOe16YzRqoBf7s+rkH9n7emceHPy47xxD9W7/09WZ4s4LhAPf
jqKTqkrt2ZjwfRrcrz0IiTr6A2ZSJQkdP3F2BUWFTjjIr3cwsqiBXWN/ItlQDLmK
yzLciV9JWnTbmDI/093+49wDno1bbdVB6JX+M/3dEKNHcupknWGrl1yKqYz0dlil
OPA5Y813N/S8lC6qa6AyOZTnyFPWXp1/wsvWl90S3sjZEN+qAHOZs1MxdHnHUNB0
seG9yfih8MWEMQzOMUXEg3D69PmutXwBWYBNxpCoyTX+4LarOMdjpjNY65to2vpY
9VV7Tn4VdEYRCjblxUSn/R/h8XUwZ5/aiKKzULh39koQuE43uQ8=
=xiLH
-----END PGP SIGNATURE-----

dpkg-source: warning: cannot verify inline signature for ./pfstools_2.2.0-9.dsc: no acceptable signature found
dpkg-source: info: extracting pfstools in /build/reproducible-path/pfstools-2.2.0
dpkg-source: info: unpacking pfstools_2.2.0.orig.tar.gz
dpkg-source: info: unpacking pfstools_2.2.0-9.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying 20_octave-nargin.dpatch
dpkg-source: info: applying 21_octave-signal.dpatch
dpkg-source: info: applying 23_octavesystemdirs.diff
dpkg-source: info: applying 25_Multiple-typo-fixes-suggested-by-lintian.patch
dpkg-source: info: applying 30_parallel_build.diff
dpkg-source: info: applying 42_reorder-includes-imagemagick.patch
dpkg-source: info: applying 43_reorder-includes-netpbm.patch
dpkg-source: info: applying 45_exr_glut_FTBFS.diff
dpkg-source: info: applying 45_update_FindOpenEXR.cmake.diff
dpkg-source: info: applying 46_correct_bash_path.diff
dpkg-source: info: applying 47_pfstools-ImageMagick7.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 pfstools
dpkg-buildpackage: info: source version 2.2.0-9
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Andreas Metzler <ametzler@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
 debian/rules clean
dh clean
   debian/rules execute_after_dh_auto_clean
make[1]: Entering directory '/build/reproducible-path/pfstools-2.2.0'
rm -vf doc/pfs_format_spec.aux doc/pfs_format_spec.log \
	doc/pfs_format_spec.pdf
make[1]: Leaving directory '/build/reproducible-path/pfstools-2.2.0'
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/build/reproducible-path/pfstools-2.2.0'
dh_auto_configure --verbose -- \
	-DCMAKE_EXPORT_COMPILE_COMMANDS=true -DBUILD_SHARED_LIBS=ON -DWITH_MATLAB=false
	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 -DCMAKE_EXPORT_COMPILE_COMMANDS=true -DBUILD_SHARED_LIBS=ON -DWITH_MATLAB=false ..
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/2407011/

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

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

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

#1113400#17
Date:
2025-09-06 12:58:48 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
pfstools, 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 1113400@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Metzler <ametzler@debian.org> (supplier of updated pfstools 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: Sat, 06 Sep 2025 11:08:27 +0200
Source: pfstools
Architecture: source
Version: 2.2.0-10
Distribution: unstable
Urgency: medium
Maintainer: Debian PhotoTools Maintainers <pkg-phototools-devel@lists.alioth.debian.org>
Changed-By: Andreas Metzler <ametzler@debian.org>
Closes: 1113400
Changes:
 pfstools (2.2.0-10) unstable; urgency=medium
 .
   * Drop now unnecessary patch 42_reorder-includes-imagemagick.patch issue
     #969128 was fixed in IImageMagick 7.
   * Ditto for 43_reorder-includes-netpbm.patch, fixed in netpbm ages ago.
   * Replace 30_parallel_build.diff with
     30_Fixed-linkage-issues-with-octave-interface.patch from upstream GIT.
https://sourceforge.net/p/pfstools/bugs/45/
   * Bump cmake_minimum_required. Closes: #1113400
Checksums-Sha1:
 10c8d14fb0f41f592337966dff92db4cde96ecb5 2467 pfstools_2.2.0-10.dsc
 0f87a5dd5d43966a91daa96aa058ea4d171c99da 41872 pfstools_2.2.0-10.debian.tar.xz
Checksums-Sha256:
 c6698e84c92e734e481e44de44346849bd813f3c9b28fcf3b5b02e6505339790 2467 pfstools_2.2.0-10.dsc
 46bbcb7f5572a8dff7af5c5711e810a716c425a4d36c622611f104784d9dfc18 41872 pfstools_2.2.0-10.debian.tar.xz
Files:
 6e4d69ca8c2a05f15450ba20fb3a2677 2467 graphics optional pfstools_2.2.0-10.dsc
 f2373627d96fd632947026f248820081 41872 graphics optional pfstools_2.2.0-10.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE0uCSA5741Jbt9PpepU8BhUOCFIQFAmi7+y4ACgkQpU8BhUOC
FIR+nw/9G2TvBSuoPqYjwBkA1e6bfS3lBh2+luqUk7hOokAuNr56fEKcNLRsDDmc
HaAoifdl/UvgYNnz273lrJBLuOuJ6Htzw8ElEMlirXduM4kd6IIAEN6WfCnDNi1c
m2ZDvdt0HtDChMTHSnfyske9RYnnnAh7epg3OTZysQQGIwFkfbVlNStWD2psUa+w
lTQMRsv/KhpOJX36n45aStUKkzT+eL2eujDLxmHQVJmMftK/+LZltx87Mjr+S9HH
aFd5f5iIOBnOm/gAglA678DXnUr93sx8tujmziMy20SLBACvdGxE7s5lT/LE6fh0
reKLteXkn+GmZMrKpw3Ye91rDU4xpocjVParHm2ZXgLRxWTgB4/9UlegJu6RYPRA
5Cu57abdo0TEAv7zI5REqWC3QdAmwVPsat+B8XvQ1ExuyQEMsok7jryXXHGS8oX6
u+00+HH+eT+p6xbwBDQeRU/XFKF2vv+0ng7saiAJwXV+Kdmr6cwWaXjA/8TrmbBw
a+LFWsGAL9MwNFRmCR196ntXt/Hgf+6hCkbq63VV2m3gxEy6aCVyfm+5ysFhm6kp
7bessPcnxdYsL6dnwRTH+HPtXsIqjXVECwUxJVeHlD3ijpDoUfvxtJWJ3IvUTvfz
FQKRjo86eQxIRwHT14AtJMfcPZ0bJQJl4VZdVAc+bgT7aBaLboE=
=x1mE
-----END PGP SIGNATURE-----