Package: libmail-cclient-perl
Version: 1.12-2
Severity: normal
Tags: patch

Between upstream versions 1.10 and 1.11 the bootstrap code in
Cclient.xs was altered to surround the #include "linkage.c" with an
#ifdef, #else block:

#if HAVE_IMAP_LINKAGE
 #include "linkage.c"
#else

Sensible defaults are offered in the else-block but crucially for me
these defaults do not contain the line:

auth_link (&auth_gss);                /* link in the gss authenticator */

which is in "linkage.c". This means that although Mail::Cclient is
compiled against the krb5 libraries it will never attempt GSSAPI
authentication even if the credentials are correct and it is offered
by the imap server.

This problem can be solved by passing in the correct option as part of
the DEB_MAKEMAKER_USER_FLAGS. The patch is as follows:

# --8<--- patch starts ---
HEAD debian/rules
Index: debian/rules
===================================================================
--- debian/rules        (revision 5451)
+++ debian/rules        (revision 5453)
@@ -5,7 +5,7 @@
 include /usr/share/cdbs/1/class/perlmodule.mk
 include /usr/share/cdbs/1/rules/debhelper.mk

-DEB_MAKEMAKER_USER_FLAGS := --with-shared_cclient --with-pam --with-ssl 
--cclient_dir=/usr/include/c-client --with-kerberos
+DEB_MAKEMAKER_USER_FLAGS := --with-shared_cclient --with-pam --with-ssl 
--cclient_dir=/usr/include/c-client --with-kerberos 
--with-cclient-includes=/usr/include/c-client

 DEB_INSTALL_EXAMPLES_libmail-cclient-perl := examples/*
# --8<--- patch ends ---

The --with-cclient-includes option maps into $IMAP_DIR which in turn
makes the HAVE_IMAP_LINKAGE definition be true.

Alternatively, of course, the Cclient.xs file can be patched to add the
missing line into the list of defaults.

I've tested the patch above and it all works fine.

Thanks,

Stephen Quinney

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (900, 'testing'), (900, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.10
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libmail-cclient-perl depends on:
ii  libc-client2002ed 7:2002edebian1-11.ox.1 UW c-client library for mail proto
ii  libc6             2.3.2.ds1-22           GNU C Library: Shared libraries an
ii  libcomerr2        1.37-2sarge1           common error description library
ii  libkrb53          1.3.6-3                MIT Kerberos runtime libraries
ii  libpam0g          0.76-22                Pluggable Authentication Modules l
ii  libssl0.9.7       0.9.7e-3               SSL shared libraries
ii  perl              5.8.7-3                Larry Wall's Practical Extraction 
ii  perl-base [perlap 5.8.7-3                The Pathologically Eclectic Rubbis

libmail-cclient-perl recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to