Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2018 07:07:54 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r482733 - head/mail/isync
Message-ID:  <201810220707.w9M77sIx082875@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Mon Oct 22 07:07:54 2018
New Revision: 482733
URL: https://svnweb.freebsd.org/changeset/ports/482733

Log:
  pragrma directive is not supported by base GCC. Remove it to fix build with
  mips, mips64, powerpc64.
  
  PR:		232514
  Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>

Modified:
  head/mail/isync/Makefile

Modified: head/mail/isync/Makefile
==============================================================================
--- head/mail/isync/Makefile	Mon Oct 22 06:17:51 2018	(r482732)
+++ head/mail/isync/Makefile	Mon Oct 22 07:07:54 2018	(r482733)
@@ -12,10 +12,6 @@ COMMENT=	Maintain local copies of remote IMAP folders 
 
 LICENSE=	GPLv2
 
-BROKEN_mips=		fails to compile: util.c:523: \#pragma GCC diagnostic not allowed inside functions
-BROKEN_mips64=		fails to compile: util.c:523: \#pragma GCC diagnostic not allowed inside functions
-BROKEN_powerpc64=	fails to compile: util.c:523: \#pragma GCC diagnostic not allowed inside functions
-
 LIB_DEPENDS=	libsasl2.so:security/cyrus-sasl2
 
 USES=		alias bdb cpe perl5 ssl
@@ -32,10 +28,15 @@ MAKE_ARGS+=	SSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto"
 CPPFLAGS+=	-I${BDB_INCLUDE_DIR}
 LDFLAGS+=	-L${BDB_LIB_DIR}
 
+.include <bsd.port.pre.mk>
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|: install-docDATA|:|g' ${WRKSRC}/Makefile.in
 	@${REINPLACE_CMD} -e 's|\$$(docdir)/examples|\$$(sysconfdir)|g' \
 	    ${WRKSRC}/src/Makefile.in ${WRKSRC}/src/compat/Makefile.in
 	@${REINPLACE_CMD} -e 's|-ansi||g' ${WRKSRC}/${CONFIGURE_SCRIPT}
+.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
+	@${REINPLACE_CMD} -e '/pragma/d' ${WRKSRC}/src/util.c
+.endif
 
-.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?201810220707.w9M77sIx082875>