svn commit: r483270 - head/sysutils/incron

Mark Linimon linimon at FreeBSD.org
Sun Oct 28 10:58:48 UTC 2018


Author: linimon
Date: Sun Oct 28 10:58:46 2018
New Revision: 483270
URL: https://svnweb.freebsd.org/changeset/ports/483270

Log:
  Fix build on GCC-based architectures.
  
  PR:		232529
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/sysutils/incron/Makefile

Modified: head/sysutils/incron/Makefile
==============================================================================
--- head/sysutils/incron/Makefile	Sun Oct 28 10:55:44 2018	(r483269)
+++ head/sysutils/incron/Makefile	Sun Oct 28 10:58:46 2018	(r483270)
@@ -15,10 +15,6 @@ LICENSE_FILE_GPLv2=	${WRKSRC}/LICENSE-GPL
 LICENSE_FILE_LGPL21=	${WRKSRC}/LICENSE-LGPL
 LICENSE_FILE_MIT=	${WRKSRC}/LICENSE-X11
 
-BROKEN_mips=		fails to compile: usertable.cpp:440: \#pragma GCC diagnostic not allowed inside functions
-BROKEN_mips64=		fails to compile: usertable.cpp:440: \#pragma GCC diagnostic not allowed inside functions
-BROKEN_powerpc64=	fails to compile: usertable.cpp:440: \#pragma GCC diagnostic not allowed inside functions
-
 LIB_DEPENDS=	libinotify.so:devel/libinotify
 
 USE_GITHUB=	indeed
@@ -31,10 +27,16 @@ MAKE_ARGS=	PREFIX="${PREFIX}" USER=${UID}	\
 		MANPATH=${MANPREFIX}/man
 USE_RC_SUBR=	${PORTNAME}
 
+.include <bsd.port.pre.mk>
+
 post-patch:
 	${REINPLACE_CMD} -e 's,/etc/incron,${PREFIX}/etc/incron,'	\
 		${WRKSRC}/*conf* ${WRKSRC}/Makefile ${WRKSRC}/*.[158h]	\
 		${WRKSRC}/*.cpp
 	${REINPLACE_CMD} -e '/INITDIR/d' ${WRKSRC}/Makefile
+.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
+	${REINPLACE_CMD} -e '/pragma/d' ${WRKSRC}/inotify-cxx.cpp \
+		${WRKSRC}/usertable.cpp
+.endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list