Hi ports,

Synergy's build is broken with ports-gcc-8 simply because it cannot be
built with C++14, it uses nullptr as it used to be before C++11:

>lib/common/common.h:141:18: error: 'NULL' was not declared in this
>scope

Using C++03 like clang already does in this port fixes the build on
macppc with ports-gcc-8.

Charlène. 


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/synergy/Makefile,v
retrieving revision 1.34
diff -u -p -r1.34 Makefile
--- Makefile    24 Oct 2018 14:28:09 -0000      1.34
+++ Makefile    15 Apr 2019 11:03:53 -0000
@@ -5,7 +5,7 @@ COMMENT=                mouse and keyboard sharing uti
 VERSION=               1.7.6
 DISTNAME=              synergy-${VERSION}
 CATEGORIES=            net x11
-REVISION=              0
+REVISION=              1
 
 GH_ACCOUNT=            symless
 GH_PROJECT=            synergy-core
@@ -27,10 +27,7 @@ MODULES=             devel/cmake
 
 NO_TEST=               Yes
 
-.include <bsd.port.arch.mk>
-.if ${PROPERTIES:Mclang}
 CXXFLAGS +=            -std=c++03
-.endif
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/bin/synergy[cds] ${PREFIX}/bin/

Reply via email to