Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Dec 2019 18:01:23 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r519038 - head/mail/mailutils
Message-ID:  <201912041801.xB4I1NPj091813@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Wed Dec  4 18:01:23 2019
New Revision: 519038
URL: https://svnweb.freebsd.org/changeset/ports/519038

Log:
  Unbreak the build with LDAP option selected (for some reason, the problem
  does not occur on FreeBSD 11.3 and 12.0):
  
    ld: error: .../libmu_auth.so: undefined reference to ber_memfree
    ld: error: .../libmu_auth.so: undefined reference to ber_memvfree
    ld: error: .../libmu_auth.so: undefined reference to ber_set_option
  
  It looks like an underlinking case, but I do not possess enough of domain
  knowledge to properly describe what had changed in our linker and why it
  was not a problem before.
  
  Reported by:	maintainer

Modified:
  head/mail/mailutils/Makefile

Modified: head/mail/mailutils/Makefile
==============================================================================
--- head/mail/mailutils/Makefile	Wed Dec  4 17:59:41 2019	(r519037)
+++ head/mail/mailutils/Makefile	Wed Dec  4 18:01:23 2019	(r519038)
@@ -94,6 +94,8 @@ TOKYOCABINET_LIB_DEPENDS=	libtokyocabinet.so:databases
 TOKYOCABINET_CONFIGURE_WITH=	tokyocabinet
 
 post-patch:
+	@${REINPLACE_CMD} -e '/MU_AUTHLIBS=/s,-lldap,-llber &,' \
+		${WRKSRC}/configure
 	@${REINPLACE_CMD} -e '/need_charset_alias=/s|true|false|' \
 		${WRKSRC}/lib/gnu/Makefile.in
 	@${REINPLACE_CMD} -e '/chown/,+1s|ch|#&|' ${WRKSRC}/dotlock/Makefile.in



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912041801.xB4I1NPj091813>