Bug 245557

Summary: graphics/ImageMagick7: incorrect output of pkg-config --libs ImageMagick
Product: Ports & Packages Reporter: Vladimir Druzenko <vvd>
Component: Individual Port(s)Assignee: Koop Mast <kwm>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (kwm)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Fixed shared library name in ImageMagick.pc vvd: maintainer-approval?

Description Vladimir Druzenko freebsd_committer freebsd_triage 2020-04-12 06:38:29 UTC
With graphics/ImageMagick6 installed:
$ pkg-config --libs MagickCore
-L/usr/local/lib -lMagickCore-6 
$ pkg-config --libs ImageMagick
-L/usr/local/lib -lMagickCore-6

With graphics/ImageMagick7 installed:
$ pkg-config --libs MagickCore
-L/usr/local/lib -lMagickCore-7
$ pkg-config --libs ImageMagick
-L/usr/local/lib -lMagickCore-7.Q16HDRI

Why MagickCore-7.Q16HDRI?
For example this break build of ruby gem rmagick: can't find library -lMagickCore-7.Q16HDRI.
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2020-04-19 15:40:55 UTC
Created attachment 213568 [details]
Fixed shared library name in ImageMagick.pc

With this patch:
> $ pkg-config --libs ImageMagick
> -L/usr/local/lib -lMagickCore-7

And "gem install rmagick" install without errors.
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-04-19 17:51:48 UTC
A commit references this bug:

Author: kwm
Date: Sun Apr 19 17:51:06 UTC 2020
New revision: 532139
URL: https://svnweb.freebsd.org/changeset/ports/532139

Log:
  Update ImageMagick6 to 6.9.11-6

  - Fix library name in bin/Magick*-config scripts. [1]

  PR:		245557 [1]
  Reported by:	VVD (vvd@unislabs.com) [1]

Changes:
  head/graphics/ImageMagick6/Makefile
  head/graphics/ImageMagick6/distinfo
Comment 3 commit-hook freebsd_committer freebsd_triage 2020-04-19 17:51:50 UTC
A commit references this bug:

Author: kwm
Date: Sun Apr 19 17:51:35 UTC 2020
New revision: 532140
URL: https://svnweb.freebsd.org/changeset/ports/532140

Log:
  Update ImageMagick7 to 7.0.10-6

  - Fix library name in bin/Magick*-config scripts. [1]
  - Reduce nox11 diff with the Imagemagick 6 version.

  PR:		245557 [1], 244275 [2]
  Reported by:	VVD (vvd@unislabs.com) [1]
  		nork@ninth-nine.com [2]

Changes:
  head/graphics/ImageMagick7/Makefile
  head/graphics/ImageMagick7/distinfo
  head/graphics/ImageMagick7/pkg-plist