Bug#1147658: gmic: FTBFS with OpenCV 5.0

Aron Xu aron at debian.org
Mon Sep 14 10:38:28 BST 2026


Source: gmic
Version: 2.9.4-4.2
Severity: important
Tags: ftbfs
User: opencv at packages.debian.org
Usertags: opencv5-transition
Control: affects -1 src:opencv
X-Debbugs-Cc: opencv at packages.debian.org, aron at debian.org

Dear maintainer,

Your package fails to build from source against opencv 5.0.0+dfsg-1~exp1,
currently in experimental.

OpenCV 5.0 renames its entire install tree from opencv4 to opencv5 and ships
no compatibility shims:

  * pkg-config: only /usr/lib/<triplet>/pkgconfig/opencv5.pc.  There is no
                opencv4.pc and no opencv.pc.
  * headers:    /usr/include/opencv5/opencv2/..., no /usr/include/opencv4.
  * cmake:      /usr/lib/<triplet>/cmake/opencv5/OpenCVConfig.cmake.  A bare
                find_package(OpenCV) still resolves, but a pinned version
                such as find_package(OpenCV 4.7) no longer matches.
  * modules:    libopencv-calib3d-dev is split into libopencv-calib-dev,
                libopencv-geometry-dev, libopencv-stereo-dev and
                libopencv-ptcloud-dev; libopencv-features2d-dev becomes
                libopencv-features-dev.  The CMake component names change
                with them (features2d -> features).
  * geometry:   the new geometry module is not only a piece of calib3d.  It
                also absorbs shape and contour functions that used to live
                in imgproc -- contourArea, arcLength, approxPolyDP,
                boundingRect, minAreaRect, convexHull and
                getPerspectiveTransform among them -- and opencv2/opencv.hpp
                does not pull in opencv2/geometry.hpp, so code that reached
                those through the umbrella header now needs an explicit
                include of opencv2/geometry.hpp.

gmic fails because zart/zart.pro's mandatory OpenCV check aborts
qmake with "Project ERROR: Cannot find OpenCV" (line 3690; the same
message also appears non-fatally during the ignored dh_auto_clean
pass at line 3381), which fails dh_auto_configure at debian/rules:17
(Error 25). qmake's own output gives no detail on which pkg-config
module name(s) it tried. Earlier in the same build, an unrelated
CMake-based configure step reports "Package 'opencv4' not found"
(line 3432) and "Package 'opencv' not found" (line 3434) but treats
OpenCV as optional and continues; this shows the same two candidate
names fail to resolve elsewhere in the source tree. zart.pro's
OpenCV detection should be checked against whatever pkg-config
module names it probes and extended to also try "opencv5" (e.g.
`pkg-config --exists opencv5`), or otherwise accept whichever of
opencv4/opencv5 is present.

The same source builds fine in the same chroot against the OpenCV 4.10
packages currently in unstable, so this is specific to OpenCV 5.

The relevant part of the build log follows; the full log is attached.


  -- Looking for shmat
  -- Looking for shmat - found
  -- Looking for IceConnectionNumber in ICE
  -- Looking for IceConnectionNumber in ICE - found
  -- The following OPTIONAL packages have been found:

   * CURL
   * OpenMP, A low-level parallel execution library, <http://openmp.org/wp/>
     Optionally used by gmic-qt
   * X11

  -- The following REQUIRED packages have been found:

   * Qt5Core
   * Qt5Gui
   * Qt5Widgets
   * Qt5Network
   * Qt5 (required version >= 5.2.0)
   * Qt5LinguistTools
   * PNG
   * ZLIB
   * FFTW3

  -- Configuring done (3.1s)
  -- Generating done (0.1s)
  CMake Warning:
    Manually-specified variables were not used by the project:

      CMAKE_EXPORT_NO_PACKAGE_REGISTRY
      CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
      CMAKE_INSTALL_LIBDIR
      CMAKE_INSTALL_LOCALSTATEDIR
      CMAKE_INSTALL_RUNSTATEDIR
      CMAKE_INSTALL_SYSCONFDIR
      FETCHCONTENT_FULLY_DISCONNECTED
      PKGCONFIG_EXECUTABLE
      QMAKE_EXECUTABLE


  -- Build files have been written to:
/build/reproducible-path/gmic-2.9.4/build-gmic-krita
  dh_auto_configure -Dzart -Bzart -- GMIC_PATH=../src
GMIC_LIB_PATH=../build-gmic GMIC_DYNAMIC_LINKING=on
  Project MESSAGE: GMIC_PATH is set (../src)
  Project MESSAGE: GMIC_LIB_PATH is set (../build-gmic)
  Project ERROR: Cannot find OpenCV
  make[1]: *** [debian/rules:17: override_dh_auto_configure] Error 25
  make[1]: Leaving directory '/build/reproducible-path/gmic-2.9.4'
  make: *** [debian/rules:42: binary] Error 2
  dpkg-buildpackage: error: debian/rules binary subprocess failed with
exit status 2
  --------------------------------------------------------------------------------

Please close this bug if it turns out to be a collision with another ongoing
transition rather than an OpenCV 5 problem.

Thanks,
Aron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmic_2.9.4-4.2_amd64-2026-09-11T18?57?14Z.build.gz
Type: application/x-gzip
Size: 43816 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20260914/33344ef9/attachment-0001.bin>


More information about the debian-science-maintainers mailing list