From owner-svn-ports-all@freebsd.org Wed Nov 11 17:25:23 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0521D2EFB39; Wed, 11 Nov 2020 17:25:23 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CWWpB6jyNz3HgW; Wed, 11 Nov 2020 17:25:22 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D96191804B; Wed, 11 Nov 2020 17:25:22 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0ABHPMWx078247; Wed, 11 Nov 2020 17:25:22 GMT (envelope-from fernape@FreeBSD.org) Received: (from fernape@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0ABHPMaT078246; Wed, 11 Nov 2020 17:25:22 GMT (envelope-from fernape@FreeBSD.org) Message-Id: <202011111725.0ABHPMaT078246@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: fernape set sender to fernape@FreeBSD.org using -f From: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= Date: Wed, 11 Nov 2020 17:25:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r554904 - head/mail/mailsync X-SVN-Group: ports-head X-SVN-Commit-Author: fernape X-SVN-Commit-Paths: head/mail/mailsync X-SVN-Commit-Revision: 554904 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2020 17:25:23 -0000 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 +# 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 +.include