openbsd-ports/mail/dovecot/patches/patch-src_auth_Makefile_in
sthen 0ad0a1a16e libkrb5 exports base64_decode and base64_encode (which appear to only be
needed internally), these conflict with symbols in dovecot's internal shared
library, causing the wrong version of the functions to be used in some cases.

Since we are in userland ABI API lock we cannot clean libkrb5 at present
so make a nasty workaround by statically linking the affected binaries with
libdovecot so the correct symbols take priority.

Fixes crashes I hit in doveadm and potentially some auth mechanisms.

OK ajacoutot@, Brad (maintainer)
2012-01-28 21:35:02 +00:00

18 lines
682 B
Plaintext

$OpenBSD: patch-src_auth_Makefile_in,v 1.1 2012/01/28 21:35:02 sthen Exp $
Heimdal libkrb5 exports base64_encode and base64_decode conflicting
with libdovecot's versions. Workaround the namespace pollution issue
by statically linking libdovecot so its symbols take precedence.
--- src/auth/Makefile.in.orig Sat Jan 28 20:46:02 2012
+++ src/auth/Makefile.in Sat Jan 28 20:46:30 2012
@@ -218,7 +218,7 @@ LD = @LD@
LDAP_LIBS = @LDAP_LIBS@
LDFLAGS = @LDFLAGS@
LIBCAP = @LIBCAP@
-LIBDOVECOT = @LIBDOVECOT@
+LIBDOVECOT = $(top_builddir)/src/lib-dovecot/.libs/libdovecot.a
LIBDOVECOT_DEPS = @LIBDOVECOT_DEPS@
LIBDOVECOT_LDA = @LIBDOVECOT_LDA@
LIBDOVECOT_LOGIN = @LIBDOVECOT_LOGIN@