Your message dated Sat, 09 Aug 2014 19:18:57 +0000
with message-id <[email protected]>
and subject line Bug#747857: fixed in php-imagick 3.1.2-1.1
has caused the Debian Bug report #747857,
regarding [php5-imagick] [transition] Please add this patch
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
747857: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747857
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: php5-imagick
Version: 3.1.2-1
Severity: important
x-debbugs-cc: [email protected]

Hi,

Due to next imagemagick release and in order to avoid ftbfs could you please 
add the following patch?

Thanks
>From fde724e9e442c8773e3c088fabfe93ba7ed42161 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <[email protected]>
Date: Mon, 12 May 2014 12:42:00 +0200
Subject: [PATCH] Add pkgconfig

---
 imagick-3.1.2/config.m4 | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/imagick-3.1.2/config.m4 b/imagick-3.1.2/config.m4
index 547efef..d320f6e 100644
--- a/imagick-3.1.2/config.m4
+++ b/imagick-3.1.2/config.m4
@@ -11,7 +11,13 @@ fi
 if test $PHP_IMAGICK != "no"; then
 
   AC_MSG_CHECKING(ImageMagick MagickWand API configuration program)
-
+  
+  test -x /usr/bin/pkg-config && PKGCONFIG=/usr/bin/pkg-config
+  if ! test -z $PKGCONFIG; then
+    $PKGCONFIG --exists MagickWand > /dev/null 2>/dev/null && USE_PKGCONFIG=yes
+  fi
+  
+  if test "x$USE_PKGCONFIG" != "xyes"; then
   for i in $PHP_IMAGICK /usr/local /usr;
   do
     test -r $i/bin/MagickWand-config && IMAGICK_AFTER_BWC_BREAK=true && WAND_BINARY=$i/bin/MagickWand-config && break
@@ -27,10 +33,15 @@ if test $PHP_IMAGICK != "no"; then
   if test -z "$WAND_BINARY"; then
     AC_MSG_ERROR(not found. Please provide a path to MagickWand-config or Wand-config program.)
   fi
+  fi
 
   AC_MSG_RESULT(found in $WAND_BINARY)
 
+  if test "x$USE_PKGCONFIG" != xyes; then
   IMAGEMAGICK_VERSION_ORIG=`$WAND_BINARY --version`
+  else
+  IMAGEMAGICK_VERSION_ORIG=`$PKGCONFIG --modversion MagickWand`
+  fi
   IMAGEMAGICK_VERSION_MASK=`echo ${IMAGEMAGICK_VERSION_ORIG} | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
 
   AC_MSG_CHECKING(if ImageMagick version is at least 6.2.4)
@@ -40,7 +51,8 @@ if test $PHP_IMAGICK != "no"; then
     AC_MSG_ERROR(no. You need at least Imagemagick version 6.2.4 to use Imagick.)
   fi
 
-  WAND_DIR=`$WAND_BINARY --prefix` 
+  if test "x$USE_PKGCONFIG" != "xyes"; then
+  WAND_DIR=`$WAND_BINARY --prefix`
 
   if test -z "$IMAGICK_AFTER_BWC_BREAK"; then
     AC_MSG_CHECKING(for magick-wand.h header file)
@@ -66,6 +78,7 @@ if test $PHP_IMAGICK != "no"; then
     AC_DEFINE(IMAGICK_USE_NEW_HEADER,1,[ ])
     PHP_IMAGICK_USE_NEW_HEADER=1
   fi
+  fi
 
   AC_MSG_CHECKING([PHP version is at least 5.1.3])
 
@@ -91,6 +104,7 @@ if test $PHP_IMAGICK != "no"; then
 
   AC_DEFINE(HAVE_IMAGICK,1,[ ])
 
+  if test "x$USE_PKGCONFIG" != "xyes"; then
   IMAGICK_MAGICK_PREFIX=`$WAND_BINARY --prefix`
   
   export ORIG_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
@@ -101,7 +115,11 @@ if test $PHP_IMAGICK != "no"; then
   
   IMAGICK_CFLAGS=`$WAND_BINARY --cflags`
   IMAGICK_CFLAGS="$IMAGICK_CFLAGS -I$WAND_DIR/include"
-
+  else
+     IMAGICK_MAGICK_PREFIX=''
+     IMAGICK_LIBS=`pkg-config --libs MagickWand`
+     IMAGICK_CFLAGS=`pkg-config --cflags MagickWand`
+  fi
   
   PHP_EVAL_LIBLINE($IMAGICK_LIBS, IMAGICK_SHARED_LIBADD)
   PHP_EVAL_INCLINE($IMAGICK_CFLAGS)
-- 
2.0.0.rc0


--- End Message ---
--- Begin Message ---
Source: php-imagick
Source-Version: 3.1.2-1.1

We believe that the bug you reported is fixed in the latest version of
php-imagick, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastien Roucariès <[email protected]> (supplier of updated 
php-imagick package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 06 Aug 2014 08:48:06 +0200
Source: php-imagick
Binary: php5-imagick
Architecture: source amd64
Version: 3.1.2-1.1
Distribution: unstable
Urgency: medium
Maintainer: Debian PHP PEAR Maintainers <[email protected]>
Changed-By: Bastien Roucariès <[email protected]>
Description:
 php5-imagick - ImageMagick module for php5
Closes: 747857
Changes:
 php-imagick (3.1.2-1.1) unstable; urgency=medium
 .
   * NMU
   * Fix FTBFS with newer imagemagick. Will ease imagemagick
     transition. Use pkgconfig instead of hardcoding path in
     config script (Closes: #747857)
Checksums-Sha1:
 43c8b6289de5cb5771cd00f04e970288752f5754 2032 php-imagick_3.1.2-1.1.dsc
 04b849f8bc5b0066ec40d4f0199dbaade4add820 7980 
php-imagick_3.1.2-1.1.debian.tar.xz
 d45c8c14571e0afad696d2565077d17fc2e4d8bb 105108 
php5-imagick_3.1.2-1.1_amd64.deb
Checksums-Sha256:
 e2ae764cd788da79b384345b79fc10e833b846180334b545d0cd4a93aaedb280 2032 
php-imagick_3.1.2-1.1.dsc
 847b66d177bc2d61a08ff39f59ec51e594ff47ecbe648b3688061ae619c8a8fc 7980 
php-imagick_3.1.2-1.1.debian.tar.xz
 79e8a652369c64e18b335c0a7e7e7d9733fbaa9dd6107f454052ace2e4de4280 105108 
php5-imagick_3.1.2-1.1_amd64.deb
Files:
 442c5dde2b2dee19de68b2e0965045ab 105108 php optional 
php5-imagick_3.1.2-1.1_amd64.deb
 dcbe3b188b1cfa5fbc8fe660756604d5 2032 php optional php-imagick_3.1.2-1.1.dsc
 d5a5d3766765b1c7b0cd4f0c4bdb1290 7980 php optional 
php-imagick_3.1.2-1.1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJT48o8AAoJEH5lKNp1LxvhxOQP/iO7j8Se7ZxttbU2SQx+MvAL
DXIG/XiCt+CTCPdFaQcH3orY9T80HkBVVRSgyu4GhkOW2Ga2qiIK75uD47PPegoV
MahCKfsPK+d7Gcdk7xTKkjjOnw9HsKYVzqCg1NRvTdgVBU33tPWLPESFVXZaA1YK
1YhSllAeqoJzfK/WxDz6R4W/+7dy+eaPXHS/rswIXO/7D/+G8mCk/IU6ReuRCLLA
rZqvN7ApKB/0RPRb/6CCKwybtRxfkiDpK2RLoOMo+EloKdPDyWAF6olmAfqXLovV
p2V7qj0M3708xduKR9CtzkFHWaCVpUXM9onkPN5YqeD7t77WLCkEI/b2df9g/GDr
3L7Wv45dqBXofapop7+9RS/dmdBrs+AbPBB8t6JLGGsJYT8H+I6wZ2EUT7bFsuXb
iTL5+IxQD1EX4acvTDgdJeLltES65GMHn/Y+GmhSWhL9F6+YuQR7PmBesap4F5q9
1qm88xh8LmEFxqijfB4TfX4oOxQjfOv1ismNQNMuRuqf2jBkBkwTbSHBRgRhYPZD
zJex5LhZZqYbzhJGCcO3cEvj3BGFqCE5VL0/3anFDMkEm84G2jikW+NRb6PACy/G
b4MemQKKJCwnH8QEWyJhqdkgsgriiviz6JD4N7Gh5d7DudSreSWWpTyzYPpGtFlk
iwkR9NQ26zfq/Dzzf8yG
=I0VM
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to