[Pkg-gmagick-im-team] Bug#950282: libmagick++-6.q16hdri-dev: pkgconfig for HDRI case incorrect

Hermann Vosseler deb at ichthyostega.de
Thu Jan 30 23:32:47 GMT 2020


Package: libmagick++-6.q16hdri-dev
Version: 8:6.9.10.23+dfsg-2.1
Severity: normal

Dear Maintainer,

as you know, the DEB installs a "default" variant, as well as a
variant for "quantum depth 16" and yet another variant for "quantum depth 16 +
HDRI"

While packaging some software, I need to depend on libmagick++-6.q16hdri-dev

However, this package installs a pkg-config file, which does not work
out of the box, and which sets the flags wrong, so to *disable* the HDRI
feature.

(1) install only libmagick++-6.q16hdri-dev
    this pulls the additional dependencies:
      libmagick++-6-headers libmagick++-6.q16hdri-8

(2) pkg-config Magick++-6.Q16HDRI  --cflags

> Package MagickWand was not found in the pkg-config search path.
> Package 'MagickWand', required by 'Magick++-6.Q16HDRI', not found

(3) now try to fix that by installing libmagick++-dev
    this again pulls additional dependencies:
      libmagick++-6.q16-dev libmagickcore-6.q16-dev libmagickwand-6.q16-dev

(4) pkg-config Magick++-6.Q16HDRI  --cflags

> -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 \
> -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 \
> -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 \
> -I/usr/include/x86_64-linux-gnu//ImageMagick-6
...

Please note: the HDRI toggle is first enabled, but then disabled again.


The reason is obviously in the two files:
/usr/lib/x86_64-linux-gnu/pkgconfig/ImageMagick++-im6.Q16HDRI.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/MagickWand-6.Q16HDRI.pc

The first one defines a...
> Requires: MagickWand

and the second one defines a...
> Requires: MagickCore


...while in fact both should use the Q16HDRI variants

Moreover, would ImageMagick++-im6.Q16HDRI.pc  properly depend on
MagickWand-6.Q16HDRI.pc, and this again properly depend on
MagicCore-6.QHDRI, then also the problem of the missing package
dependency would be solved, and the HDRI_ENABLE would be =1 correctly




-- Package-specific info:
ImageMagick program version
---------------------------
animate:  ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
compare:  ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
convert:  ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
composite:  ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
conjure:  ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
display:  ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
identify:  ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
import:  ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
mogrify:  ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
montage:  ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
stream:  ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org

-- System Information:
Debian Release: 10.2
  APT prefers stable
  APT policy: (900, 'stable'), (650, 'stable'), (500, 'stable-updates'), (95, 'testing'), (80, 'unstable'), (50, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libmagick++-6.q16hdri-dev depends on:
ii  dpkg                         1.19.7
ii  libmagick++-6-headers        8:6.9.10.23+dfsg-2.1
ii  libmagick++-6.q16hdri-8      8:6.9.10.23+dfsg-2.1
ii  libmagickcore-6.q16hdri-dev  8:6.9.10.23+dfsg-2.1
ii  libmagickwand-6.q16hdri-dev  8:6.9.10.23+dfsg-2.1
ii  pkg-config                   0.29-6

libmagick++-6.q16hdri-dev recommends no packages.

libmagick++-6.q16hdri-dev suggests no packages.

-- no debconf information



More information about the Pkg-gmagick-im-team mailing list