pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46324: ImageMagick: pkg-config files missing rpath

>Number:         46324
>Category:       pkg
>Synopsis:       ImageMagick: pkg-config files missing rpath
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 11 23:45:00 +0000 2012
>Originator:     rudolf
>Release:        netbsd-6, pkgsrc-2012Q1
NetBSD 6.0_BETA (GENERIC) amd64
graphics/ImageMagick installs 6 files under /usr/pkg/lib/pkgconfig, but only 2 
of them include the "-Wl,-R<libpath>" configuration:

$ for i in `pkg_info -L ImageMagick | grep pkgconfig`; do grep -H Libs ${i}; 
/usr/pkg/lib/pkgconfig/ImageMagick++.pc:Libs: -Wl,-R${libdir} -L${libdir} 
/usr/pkg/lib/pkgconfig/ImageMagick.pc:Libs: -Wl,-R${libdir} -L${libdir} 
/usr/pkg/lib/pkgconfig/Magick++.pc:Libs: -L${libdir} -lMagick++
/usr/pkg/lib/pkgconfig/MagickCore.pc:Libs: -L${libdir} -lMagickCore
/usr/pkg/lib/pkgconfig/MagickWand.pc:Libs: -L${libdir} -lMagickWand -lMagickCore
/usr/pkg/lib/pkgconfig/Wand.pc:Libs: -L${libdir} -lMagickWand -lMagickCore

As all the configs but MagickCore.pc "require" the ImageMagick.pc, is the 
following problem apparent only with MagickCore.pc:
shared objects built with help of this pkg-config file then don't have the 
rpath set properly and can't find the corresponding library (without help from etc.).
Install graphics/ImageMagick and devel/pkg-config and and observe the missing 
"-Wl,-R/usr/pkg/lib" in the output of "pkg-config --libs MagickCore".
--- graphics/ImageMagick/Makefile.orig  2012-04-12 00:27:49.000000000 +0200
+++ graphics/ImageMagick/Makefile       2012-04-12 00:31:03.000000000 +0200
@@ -22,7 +22,11 @@
 CONFIGURE_ARGS+=       --with-xml=yes
 CONFIGURE_ARGS+=       --without-perl
 PKGCONFIG_OVERRIDE=    Magick++/lib/
+PKGCONFIG_OVERRIDE+=   Magick++/lib/
 GCC_REQD+=             2.95.3

Home | Main Index | Thread Index | Old Index