diff --git a/debian/patches/0035-temporary_multiarch_fixes.patch b/debian/patches/0035-temporary_multiarch_fixes.patch new file mode 100644 index 0000000..13ac728 --- /dev/null +++ b/debian/patches/0035-temporary_multiarch_fixes.patch @@ -0,0 +1,22 @@ +--- a/configure.in ++++ b/configure.in +@@ -277,7 +277,7 @@ AC_ARG_WITH(pam, [ --with-pam=DIR + if test "$with_pam" != no; then + if test -d $with_pam; then + CPPFLAGS="$CPPFLAGS -I${with_pam}/include" +- LDFLAGS="$LDFLAGS -L${with_pam}/lib" ++ LDFLAGS="$LDFLAGS -L${with_pam}/$DEB_HOST_MULTIARCH/lib" + fi + AC_CHECK_HEADERS(security/pam_appl.h pam/pam_appl.h) + cmu_save_LIBS="$LIBS" +--- a/saslauthd/configure.in ++++ b/saslauthd/configure.in +@@ -95,7 +95,7 @@ AC_ARG_WITH(pam, [ --with-pam=DIR + if test "$with_pam" != no; then + if test -d $with_pam; then + CPPFLAGS="$CPPFLAGS -I${with_pam}/include" +- LDFLAGS="$LDFLAGS -L${with_pam}/lib" ++ LDFLAGS="$LDFLAGS -L${with_pam}/$DEB_HOST_MULTIARCH/lib" + fi + cmu_save_LIBS="$LIBS" + AC_CHECK_LIB(pam, pam_start, [ diff --git a/debian/patches/series b/debian/patches/series index ceb4bea..d0a1806 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -19,3 +19,4 @@ 0032-revert_1.103_revision_to_unbreak_GSSAPI.patch 0033-fix_segfault_in_GSSAPI.patch 0034-fix_dovecot_authentication.patch +0035-temporary_multiarch_fixes.patch diff --git a/debian/rules b/debian/rules index b9e9a44..a676eaa 100755 --- a/debian/rules +++ b/debian/rules @@ -77,7 +77,7 @@ --with-pgsql=/usr/include/postgresql \ $(CONFIGURE_LDAPDB) \ --disable-macos-framework \ - --with-pam \ + --with-pam=/usr \ --with-saslauthd=/var/run/saslauthd \ $(CONFIGURE_LDAP) \ --with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/$(DEB_HOST_MULTIARCH)/sasl2:/usr/lib/sasl2 \