Bug#1111272: optipng:FTBFS:build failed( Can't exec "cmake")

Yue Gui yuemeng.gui at gmail.com
Sat Aug 16 12:14:02 BST 2025


Source: optipng
Version: 7.9.1+ds-1
Severity: important
Tags: FTBFS, patch
User: debian-riscv at lists.debian.org
Usertags: riscv64

Dear optipng maintainer,
The package optipng build failed on all arch.The crucial buildd log below:
```

 dh_auto_configure -a -O--buildsystem=cmake
	cd obj-arm-linux-gnueabi && 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/arm-linux-gnueabi ..
Can't exec "cmake": No such file or directory at
/usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 535.
dh_auto_configure: error: exec (for cmd: 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/arm-linux-gnueabi ..) failed: No such file
or directory
dh_auto_configure: error: cd obj-arm-linux-gnueabi &&
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/arm-linux-gnueabi .. returned exit code 2
make: *** [debian/rules:9: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned
exit status 2

```
The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=optipng&arch=riscv64&ver=7.9.1%2Bds-1&stamp=1755170105&raw=0
My solution to this issue:
This error is caused by the absence of CMake; therefore, adding CMake as a
dependency in debian/control will fix it.I have tested that locally, and it
works well.The debdiff patch can be found in attachment. Please let me know
whether this solution can be accepted.

Gui-Yue
Best Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-phototools-devel/attachments/20250816/9d67b387/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_camke_for_optipng.patch
Type: application/octet-stream
Size: 866 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-phototools-devel/attachments/20250816/9d67b387/attachment.obj>


More information about the Pkg-phototools-devel mailing list