Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2019 14:41:55 +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: r497146 - head/databases/postgis25
Message-ID:  <201903291441.x2TEftRx058502@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Fri Mar 29 14:41:55 2019
New Revision: 497146
URL: https://svnweb.freebsd.org/changeset/ports/497146

Log:
  Fix build on gcc-based architectures:
  
    lwgeom_functions_basic.c:1566: error: #pragma GCC diagnostic not allowed inside functions
  
  PR:		236728
  Submitted by:	Piotr Kubaj
  Approved by:	maintainer

Modified:
  head/databases/postgis25/Makefile

Modified: head/databases/postgis25/Makefile
==============================================================================
--- head/databases/postgis25/Makefile	Fri Mar 29 14:34:28 2019	(r497145)
+++ head/databases/postgis25/Makefile	Fri Mar 29 14:41:55 2019	(r497146)
@@ -56,6 +56,13 @@ VER=		${PORTVERSION:R}
 PLIST_SUB=	PORTVERSION=${PORTVERSION} \
 		VER=${VER}
 
+post-patch:
+.if exists(/usr/lib/libstdc++.so)
+	${REINPLACE_CMD} -e '/^#pragma GCC diagnostic/d' \
+		${WRKSRC}/postgis/lwgeom_functions_basic.c \
+		${WRKSRC}/postgis/lwgeom_geos.c
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblwgeom-${VER}.so.0.0.0



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