tags 663998 + patch thanks With the attached patch I could successfully compile asterisk against gmime 2.6. It is only build tested though, so please review/test before applying.
Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
diff -Nru asterisk-1.8.8.2~dfsg/debian/control asterisk-1.8.8.2~dfsg/debian/control
--- asterisk-1.8.8.2~dfsg/debian/control 2011-11-27 00:10:14.000000000 +0100
+++ asterisk-1.8.8.2~dfsg/debian/control 2012-03-14 22:53:35.000000000 +0100
@@ -34,7 +34,7 @@
libvorbis-dev,
libsnmp-dev,
libc-client2007e-dev | libc-client2007b-dev,
- libgmime-2.4-dev | libgmime2-dev,
+ libgmime-2.6-dev,
libjack-dev,
liblua5.1-0-dev,
libcap-dev (>= 1:2.16-4) [linux-any] | libcap2-dev [linux-any],
diff -Nru asterisk-1.8.8.2~dfsg/debian/patches/gmime2.6.patch asterisk-1.8.8.2~dfsg/debian/patches/gmime2.6.patch
--- asterisk-1.8.8.2~dfsg/debian/patches/gmime2.6.patch 1970-01-01 01:00:00.000000000 +0100
+++ asterisk-1.8.8.2~dfsg/debian/patches/gmime2.6.patch 2012-03-14 22:52:46.000000000 +0100
@@ -0,0 +1,26 @@
+Index: asterisk-1.8.8.2~dfsg/configure
+===================================================================
+--- asterisk-1.8.8.2~dfsg.orig/configure 2011-10-18 23:26:48.000000000 +0200
++++ asterisk-1.8.8.2~dfsg/configure 2012-03-14 22:52:43.569477511 +0100
+@@ -51311,7 +51311,7 @@
+
+ if test "x${PBX_GMIME}" = "x0" -a "${PKGCONFIG}" != "No"; then
+ # Later versions of GMime use pkg-config
+- for ver in 2.0 2.2 2.4; do
++ for ver in 2.0 2.2 2.4 2.6; do
+ if ! ${PKGCONFIG} --exists gmime-$ver; then
+ continue
+ fi
+Index: asterisk-1.8.8.2~dfsg/configure.ac
+===================================================================
+--- asterisk-1.8.8.2~dfsg.orig/configure.ac 2011-10-18 23:26:48.000000000 +0200
++++ asterisk-1.8.8.2~dfsg/configure.ac 2012-03-14 22:52:09.629478712 +0100
+@@ -2019,7 +2019,7 @@
+ AST_EXT_TOOL_CHECK([GMIME], [gmime-config], [], [], [#include <gmime/gmime.h>], [gboolean q = g_mime_check_version(0,0,0);])
+ if test "x${PBX_GMIME}" = "x0" -a "${PKGCONFIG}" != "No"; then
+ # Later versions of GMime use pkg-config
+- for ver in 2.0 2.2 2.4; do
++ for ver in 2.0 2.2 2.4 2.6; do
+ if ! ${PKGCONFIG} --exists gmime-$ver; then
+ continue
+ fi
diff -Nru asterisk-1.8.8.2~dfsg/debian/patches/series asterisk-1.8.8.2~dfsg/debian/patches/series
--- asterisk-1.8.8.2~dfsg/debian/patches/series 2011-12-18 19:05:45.000000000 +0100
+++ asterisk-1.8.8.2~dfsg/debian/patches/series 2012-03-14 22:51:56.000000000 +0100
@@ -24,3 +24,4 @@
chan_iax2-detach-thread-on-non-stop-exit
sparc32_disable
+gmime2.6.patch
signature.asc
Description: OpenPGP digital signature

