Bug#1087233: cmake-data: FindImageMagick.cmake fails to locate arch-specific include dir

Andreas Metzler ametzler at bebt.de
Sun Nov 10 05:53:09 GMT 2024


Package: cmake-data
Version: 3.30.5-1
Severity: serious
Justification: 5
X-Debbugs-Cc: imagemagick at packages.debian.org, pfstools at packages.debian.org
Affects: pfstools
Control: block 1086937 by -1

Good morning,

pfstools FTBFS against imagemagick 7 (apt-get build-dep pfstools; apt-get
install libmagick++-7.q16-dev libmagickcore-6-arch-config- )

In file included from /usr/include/ImageMagick-7/Magick++/Include.h:16,
                 from /usr/include/ImageMagick-7/Magick++.h:12,
                 from /tmp/PFSTOOLS/pfstools/src/fileformat/pfsinimgmagick.cpp:3
0:
/usr/include/ImageMagick-7/MagickCore/magick-config.h:25:10: fatal error: Magick
Core/magick-baseconfig.h: No such file or directory
   25 | #include "MagickCore/magick-baseconfig.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[...]

pfstools uses cmakes FindImageMagick.cmake as
find_package(ImageMagick COMPONENTS Magick++ MagickCore)

With imagemagick 7 magick-baseconfig.h was moved from 
/usr/include/x86_64-linux-gnu/ImageMagick-6/magick/magick-baseconfig.h
to
/usr/include/x86_64-linux-gnu/ImageMagick-7/MagickCore/magick-baseconfig.h
and FindImageMagick.cmake only looks in magick/ not in MagickCore/. 

cu Andreas



More information about the Pkg-phototools-devel mailing list