svn commit: r519038 - head/mail/mailutils

Alexey Dokuchaev danfe at FreeBSD.org
Wed Dec 4 18:01:24 UTC 2019


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


More information about the svn-ports-head mailing list