Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 2020 17:25:22 +0000 (UTC)
From:      =?UTF-8?Q?Fernando_Apestegu=c3=ada?= <fernape@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r554904 - head/mail/mailsync
Message-ID:  <202011111725.0ABHPMaT078246@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



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