Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Apr 2019 17:45:15 +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: r498484 - head/graphics/pqiv
Message-ID:  <201904091745.x39HjFYj097030@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Tue Apr  9 17:45:15 2019
New Revision: 498484
URL: https://svnweb.freebsd.org/changeset/ports/498484

Log:
  Remove #pragma GCC diagnostic to fix build on GCC-based architectures.
  
  PR:		237097
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/graphics/pqiv/Makefile

Modified: head/graphics/pqiv/Makefile
==============================================================================
--- head/graphics/pqiv/Makefile	Tue Apr  9 17:39:52 2019	(r498483)
+++ head/graphics/pqiv/Makefile	Tue Apr  9 17:45:15 2019	(r498484)
@@ -10,8 +10,6 @@ COMMENT=	Pretty Quick Image Viewer
 
 LICENSE=	GPLv2
 
-BROKEN_powerpc64=	fails to compile: pqiv.c:1183: \#pragma GCC diagnostic not allowed inside functions
-
 LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2
 BUILD_DEPENDS=	bash:shells/bash
@@ -68,6 +66,14 @@ MAKEFILE=	GNUmakefile
 
 PORTDOCS=	README.markdown
 PLIST_FILES=	bin/pqiv man/man1/pqiv.1.gz
+
+post-patch:
+.if exists(/usr/lib/libstdc++.so)
+	@${REINPLACE_CMD} -e '/#pragma GCC diagnostic/d' \
+		-e '/PQIV_DISABLE_PEDANTIC/d' \
+		-e '/PQIV_ENABLE_PEDANTIC/d' \
+		${WRKSRC}/pqiv.c
+.endif
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/pqiv ${STAGEDIR}${PREFIX}/bin



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