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
>Organization:
>Environment:
NetBSD 6.0_BETA (GENERIC) amd64
>Description:
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};
done
/usr/pkg/lib/pkgconfig/ImageMagick++.pc:Libs: -Wl,-R${libdir} -L${libdir}
-lMagick++
/usr/pkg/lib/pkgconfig/ImageMagick.pc:Libs: -Wl,-R${libdir} -L${libdir}
-lMagickCore
/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
ld.so.conf/LD_LIBRARY_PATH etc.).
>How-To-Repeat:
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".
>Fix:
--- 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/ImageMagick++.pc.in
+PKGCONFIG_OVERRIDE+= Magick++/lib/Magick++.pc.in
PKGCONFIG_OVERRIDE+= magick/ImageMagick.pc.in
+PKGCONFIG_OVERRIDE+= magick/MagickCore.pc.in
+PKGCONFIG_OVERRIDE+= wand/MagickWand.pc.in
+PKGCONFIG_OVERRIDE+= wand/Wand.pc.in
GCC_REQD+= 2.95.3
Home |
Main Index |
Thread Index |
Old Index