Bug 245557 - graphics/ImageMagick7: incorrect output of pkg-config --libs ImageMagick
Summary: graphics/ImageMagick7: incorrect output of pkg-config --libs ImageMagick
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Koop Mast
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-12 06:38 UTC by Vladimir Druzenko
Modified: 2020-04-19 17:53 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (kwm)


Attachments
Fixed shared library name in ImageMagick.pc (333 bytes, patch)
2020-04-19 15:40 UTC, Vladimir Druzenko
vvd: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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