Package: php-sasl
Version: 0.1.0-1
Severity: serious
Tags: patch wheezy sid
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch

Hi Jack,

libsasl in Ubuntu has recently been transitioned to be a multiarch library,
and this transition has just been done in Debian as well (bug #637968).  As
a result, php-sasl will fail to find libsasl at build time, because the PHP
build system bypasses autoconf's standard library detection in favor of its
own filesystem inspection.

The attached patch adjusts the php-sasl config.m4 to look in the multiarch
directory in addition to /usr/lib.  This is a hack, but it will allow
php-sasl to be buildable again.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -u php-sasl-0.1.0/debian/rules php-sasl-0.1.0/debian/rules
--- php-sasl-0.1.0/debian/rules
+++ php-sasl-0.1.0/debian/rules
@@ -15,6 +15,9 @@
 	DEBUG := --disable-debug
 endif
 
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+export DEB_HOST_MULTIARCH
+
 TAR=tar
 PECL_PKG_NAME=sasl
 PECL_PKG_REALNAME=sasl
diff -u php-sasl-0.1.0/debian/changelog php-sasl-0.1.0/debian/changelog
only in patch2:
unchanged:
--- php-sasl-0.1.0.orig/sasl-0.1.0/config.m4
+++ php-sasl-0.1.0/sasl-0.1.0/config.m4
@@ -31,7 +31,7 @@
 
   AC_MSG_CHECKING(for SASL library in $SASL_DIR/lib)
   for i in $SEARCH_LIBS; do
-    if test -r $SASL_DIR/lib/lib$i.a; then
+    if test -r $SASL_DIR/lib/lib$i.a || test -r $SASL_DIR/lib/$DEB_HOST_MULTIARCH/lib$i.a; then
       SASL_LIB=$i
       AC_MSG_RESULT(found -l$i)
     fi

Reply via email to