svn commit: r554904 - head/mail/mailsync
Fernando Apesteguía
fernape at FreeBSD.org
Wed Nov 11 17:25:23 UTC 2020
Author: fernape
Date: Wed Nov 11 17:25:22 2020
New Revision: 554904
URL: https://svnweb.freebsd.org/changeset/ports/554904
Log:
mail/mailsync: Unbreak in 11.4 and 12.2
This port is broken in 12.2 and 11.4, but not in 12.1 or 13-current. The problem
is the old mail/cclient doing things like redefining C++ keywords.
Workaround this by building with GCC in those releases where it is broken.
PR: 250740
Submitted by: colin at fbug.ksac.uk
Modified:
head/mail/mailsync/Makefile
Modified: head/mail/mailsync/Makefile
==============================================================================
--- head/mail/mailsync/Makefile Wed Nov 11 17:16:48 2020 (r554903)
+++ head/mail/mailsync/Makefile Wed Nov 11 17:25:22 2020 (r554904)
@@ -24,6 +24,16 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
OPTIONS_DEFINE= DOCS EXAMPLES
+.include <bsd.port.pre.mk>
+# This is a nasty hack due to the weird things that mail/cclient
+# do redefining C++ keywords. For some reason GCC seems to build
+# this, but we should expect it to break at some point.
+# See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250740
+# for reference.
+.if ${OPSYS} == FreeBSD && (${OSREL} == 12.2 || ${OSREL} == 11.4)
+USE_GCC= yes
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/mailsync ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/mailsync.1 ${STAGEDIR}${MANPREFIX}/man/man1
@@ -41,4 +51,4 @@ do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/examples/mailsync ${STAGEDIR}${EXAMPLESDIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list