Package: imagemagick
Version: 8:6.6.9.7-5
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu precise ubuntu-patch

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

Build PerlMagick Makefile after building main library, so that
MakeMaker can find the library instead of stripping it from the
link line.

Without this, a simple perl -e "use Image::Magick" will fail with
"perl: symbol lookup error: /usr/lib/perl5/auto/Image/Magick/Magick.so: 
undefined symbol: MagickCoreGenesis"
because the perl module will not be linked against libMagickCore.

Launchpad bug https://launchpad.net/bugs/897380

Thanks for considering the patch.


-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 
'precise')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-generic-pae (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru imagemagick-6.6.9.7/debian/changelog imagemagick-6.6.9.7/debian/changelog
diff -Nru imagemagick-6.6.9.7/debian/rules imagemagick-6.6.9.7/debian/rules
--- imagemagick-6.6.9.7/debian/rules	2011-11-16 04:58:15.000000000 -0500
+++ imagemagick-6.6.9.7/debian/rules	2011-11-29 10:59:37.000000000 -0500
@@ -42,9 +42,6 @@
 	--x-includes=/usr/include/X11 \
 	--x-libraries=/usr/lib/X11
 
-	cd "$(CURDIR)/PerlMagick" && \
-		perl Makefile.PL INSTALLDIRS=vendor
-
 	# Patch the generated libtool to avoid passing -rpath when linking,
 	# and to explicitly link libraries against the libraries they
 	# depend on.
@@ -55,6 +52,10 @@
 
 	$(MAKE) $(UPSTREAM_MAKEFLAGS)
 
+	# Create Makefile after building main library, so it finds -lMagickCore
+	cd "$(CURDIR)/PerlMagick" && \
+		perl Makefile.PL INSTALLDIRS=vendor
+
 	cd "$(CURDIR)/PerlMagick" && \
 		$(MAKE) OPTIMIZE="-O2 -g -Wall"
 

Reply via email to