Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2019 15:56:12 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r497159 - head/x11-toolkits/py-fltk
Message-ID:  <201903291556.x2TFuC9R097120@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Fri Mar 29 15:56:12 2019
New Revision: 497159
URL: https://svnweb.freebsd.org/changeset/ports/497159

Log:
  Fix build on GCC-based architectures:
  
    fails to compile: fltk_wrap.cpp:5355: #pragma GCC diagnostic not allowed inside functions
  
  PR:		235989
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/x11-toolkits/py-fltk/Makefile

Modified: head/x11-toolkits/py-fltk/Makefile
==============================================================================
--- head/x11-toolkits/py-fltk/Makefile	Fri Mar 29 15:46:59 2019	(r497158)
+++ head/x11-toolkits/py-fltk/Makefile	Fri Mar 29 15:56:12 2019	(r497159)
@@ -14,8 +14,6 @@ COMMENT=	Python interface to FLTK window toolkit
 LICENSE=	LGPL20
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BROKEN_powerpc64=	fails to compile: fltk_wrap.cpp:5355: \#pragma GCC diagnostic not allowed inside functions
-
 LIB_DEPENDS=	libfltk.so:x11-toolkits/fltk
 
 CFLAGS+=	-DFL_LIBRARY
@@ -34,6 +32,8 @@ OPTIONS_DEFINE=	DOCS EXAMPLES
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/setup.py
+	@${REINPLACE_CMD} -e '/#pragma GCC diagnostic/d' \
+		${WRKSRC}/python/fltk_wrap.cpp
 
 post-build:
 	${REINPLACE_CMD} -e "s|\.\./docs|${DOCSDIR}/html|g" ${WRKSRC}/fltk/test/help.py



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