Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656730 - media-gfx/inkscape-0.92.3: does not find ImageMagick++, silently builds without even though requested
Summary: media-gfx/inkscape-0.92.3: does not find ImageMagick++, silently builds witho...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 663468
  Show dependency tree
 
Reported: 2018-05-28 06:01 UTC by Tiziano Müller (RETIRED)
Modified: 2020-05-05 14:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziano Müller (RETIRED) gentoo-dev 2018-05-28 06:01:08 UTC
I have media-gfx/inkscape[imagemagick]:

    media-gfx/inkscape-0.92.3:0::gentoo (world)
    Description               A SVG based generic vector-drawing program
    Homepage                  https://inkscape.org/
    Maintainers               Gentoo Graphics Project <graphics@gentoo.org>
    Use flags                 
        USE                   
            -cdr              Enable support for CorelDRAW Diagrams
            dbus              Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
            -dia              pull in app-office/dia for dia import extension
            exif              Add support for reading EXIF headers from JPEG and TIFF images
            -gnome            Add GNOME support
            imagemagick       Enable optional support for the ImageMagick or GraphicsMagick image converter
            inkjar            Enable support for OpenOffice.org SVG jar files
            jpeg              Add JPEG image support
            latex             pull in dependencies for LaTeX formulas
            lcms              Add lcms support (color management engine)
            nls               Add Native Language Support (using gettext - GNU locale utilities)
            openmp            Build support for the OpenMP (support parallel computing), requires >=sys-devel/gcc-4.2 built with USE="openmp"
            postscript        Enable support for the PostScript language (often with ghostscript-gpl or libspectre)
            spell             Add dictionary support
            -static-libs      Build static versions of dynamic libraries as well
            visio             Enable support for Microsoft Visio Diagrams
            -wpg              Enable support for WordPerfect Graphics
        python_targets        
            python2_7         Build with Python 2.7
        Build Options         
            symbols=compress  How to handle debug symbols in installed files
                              Permitted values:
                                  compress:  Split and compress debug symbols
                                  preserve:  Preserve debug symbols
                                  split:     Split debug symbols
                                  strip:     Strip debug symbols
            -dwarf_compress   Compress DWARF2+ debug information
            (-optional_tests) Run tests considered by the package to be optional
            -trace            Trace actions executed by the package (very noisy, for debugging broken builds only)
            work=tidyup       Whether to preserve or remove working directories
                              Permitted values:
                                  leave:     Do not remove, but allow destructive merges
                                  preserve:  Preserve the working directory
                                  remove:    Always remove the working directory
                                  tidyup:    Tidy up work directory after a successful build
        Overridden Masks
            Keywords          ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86

But the build log says:

[...]
checking for libvisio-0.1 librevenge-0.0 librevenge-stream-0.0... yes                                                                                       checking for dbus-glib-1... yes                                                                                                                             checking for ImageMagick++... no                                                                                                                            checking for cairomm-1.0 >= 1.9.8                                                                                                                                             glibmm-2.4  >= 2.28                                                                                                                                         giomm-2.4                                                                                                                                                   sigc++-2.0  >= 2.0.12                                                                                                                                       ... yes                                                                                                                                   checking for bdw-gc      >= 7.2                                                                                                                                               cairo       >= 1.10                                                                                                                      
[...]
        Enable Poppler-Cairo:     yes
        Enable Potrace:           yes
        ImageMagick Magick++:     no
        Libwpg:                   no
        Libvisio:                 yes
[...]

And from the config.log:
[...]
configure:23059: checking for ImageMagick++
configure:23066: $PKG_CONFIG --exists --print-errors "ImageMagick++"
Package ImageMagick++ was not found in the pkg-config search path.
Perhaps you should add the directory containing `ImageMagick++.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ImageMagick++' found
configure:23069: $? = 1
configure:23083: $PKG_CONFIG --exists --print-errors "ImageMagick++"
Package ImageMagick++ was not found in the pkg-config search path.
Perhaps you should add the directory containing `ImageMagick++.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ImageMagick++' found
configure:23086: $? = 1
configure:23100: result: no
No package 'ImageMagick++' found
[...]

Indeed, it seems that ImageMagick (7.0.7.31) installs the pkg-config file for its C++ bindings as "Magick++.pc" instead of "ImageMagick++.pc":

$ cave contents imagemagick | grep "\.pc"
/usr/lib64/pkgconfig/ImageMagick.pc
/usr/lib64/pkgconfig/MagickCore.pc
/usr/lib64/pkgconfig/ImageMagick-7.Q16.pc
/usr/lib64/pkgconfig/MagickCore-7.Q16.pc
/usr/lib64/pkgconfig/MagickWand.pc
/usr/lib64/pkgconfig/MagickWand-7.Q16.pc
/usr/lib64/pkgconfig/Magick++.pc
/usr/lib64/pkgconfig/Magick++-7.Q16.pc
Comment 1 Andreas Sturmlechner gentoo-dev 2018-09-13 12:13:33 UTC
any news here?
Comment 2 Larry the Git Cow gentoo-dev 2019-11-07 08:11:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=259b9bc5efe4e4b4d9463ad120d55f2a5812e769

commit 259b9bc5efe4e4b4d9463ad120d55f2a5812e769
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-11-07 08:08:18 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-11-07 08:11:06 +0000

    media-gfx/inkscape: Attempt to fix build against imagemagick
    
    Bug: https://bugs.gentoo.org/656730
    Package-Manager: Portage-2.3.78, Repoman-2.3.17
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 media-gfx/inkscape/files/inkscape-0.92.1-automagic.patch | 2 +-
 media-gfx/inkscape/inkscape-0.92.4.ebuild                | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 3 Manuel Mommertz 2019-11-08 06:08:41 UTC
This now breaks my stable system:



# emerge -pv inkscape

The following keyword changes are necessary to proceed:
 (see "package.accept_keywords" in the portage(5) man page for more details)
# required by inkscape (argument)
=media-gfx/inkscape-1.0_beta1 ~amd64

 * In order to avoid wasting time, backtracking has terminated early
 * due to the above autounmask change(s). The --autounmask-backtrack=y
 * option can be used to force further backtracking, but there is no
 * guarantee that it will produce a solution.

!!! All ebuilds that could satisfy "<media-gfx/imagemagick-7:=[cxx]" have been masked.
!!! One of the following masked packages is required to complete your request:
- media-gfx/imagemagick-6.9.10.67::gentoo (masked by: backtracking: slot conflict)

(dependency required by "media-gfx/inkscape-1.0_beta1::gentoo[imagemagick]" [ebuild])
(dependency required by "inkscape" [argument])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.



# emerge -pv =inkscape-0.92.4

[ebuild     UD ] media-gfx/imagemagick-6.9.10.67:0/6.9.10.67::gentoo [7.0.8.67:0/7.0.8.67::gentoo] USE="X bzip2 corefonts cxx fontconfig jpeg lcms openmp pango png svg tiff truetype xml zlib -djvu -fftw -fpx -graphviz -hdri -heif -jbig -jpeg2k -lqr -lzma (-opencl) -openexr -perl -postscript -q32 -q8 -raw -static-libs -test -webp -wmf" 8,856 KiB
[ebuild   R    ] media-gfx/inkscape-0.92.4::gentoo  USE="cdr dbus exif imagemagick jpeg lcms nls openmp postscript spell -dia -gnome -inkjar -latex -static-libs -visio -wpg" PYTHON_TARGETS="python2_7" 0 KiB

Total: 2 packages (1 downgrade, 1 reinstall), Size of downloads: 8,856 KiB

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

media-gfx/imagemagick:0

  (media-gfx/imagemagick-6.9.10.67:0/6.9.10.67::gentoo, ebuild scheduled for merge) pulled in by
    <media-gfx/imagemagick-7:=[cxx] required by (media-gfx/inkscape-0.92.4:0/0::gentoo, ebuild scheduled for merge)
    ^                      ^ ^                                                                                                                                                               

  (media-gfx/imagemagick-7.0.8.67-1:0/7.0.8.67::gentoo, installed) pulled in by
    media-gfx/imagemagick:0/7.0.8.67=[cxx] required by (sci-mathematics/octave-4.2.2:0/4.2.2::gentoo, installed)
                         ^^^^^^^^^^^^                                                                                                               
    (and 2 more with the same problem)
Comment 4 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-05-05 14:46:55 UTC
The patch seems workable, btw.