From owner-svn-ports-head@freebsd.org Wed Nov 9 23:49:34 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5BAC8C380CF; Wed, 9 Nov 2016 23:49:34 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0993A614; Wed, 9 Nov 2016 23:49:33 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uA9NnXuq036994; Wed, 9 Nov 2016 23:49:33 GMT (envelope-from mandree@FreeBSD.org) Received: (from mandree@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uA9NnXce036991; Wed, 9 Nov 2016 23:49:33 GMT (envelope-from mandree@FreeBSD.org) Message-Id: <201611092349.uA9NnXce036991@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mandree set sender to mandree@FreeBSD.org using -f From: Matthias Andree Date: Wed, 9 Nov 2016 23:49:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r425819 - in head/devel/jsoncpp: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2016 23:49:34 -0000 Author: mandree Date: Wed Nov 9 23:49:32 2016 New Revision: 425819 URL: https://svnweb.freebsd.org/changeset/ports/425819 Log: Fix build on GCC 5. PR: 213992 Submitted by: Yuri Victorovich (maintainer) Added: head/devel/jsoncpp/files/patch-src_lib__json_json__reader.cpp (contents, props changed) head/devel/jsoncpp/files/patch-src_lib__json_json__writer.cpp (contents, props changed) Modified: head/devel/jsoncpp/Makefile Modified: head/devel/jsoncpp/Makefile ============================================================================== --- head/devel/jsoncpp/Makefile Wed Nov 9 23:35:33 2016 (r425818) +++ head/devel/jsoncpp/Makefile Wed Nov 9 23:49:32 2016 (r425819) @@ -26,7 +26,12 @@ MAKE_ARGS= platform=linux-gcc # Certain new compiler features unlock parts of jsoncpp API (ex. see JSON_HAS_RVALUE_REFERENCES). # Use c++11 above to be the most inclusive. USES+= compiler:c++11-lang +# lang/gcc5 fix +.if ${COMPILER_TYPE} == clang CXXFLAGS+= --std=c++11 +.else +CXXFLAGS+= --std=gnu++11 -D_GLIBCXX_USE_C99=1 +.endif .endif do-install: Added: head/devel/jsoncpp/files/patch-src_lib__json_json__reader.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/jsoncpp/files/patch-src_lib__json_json__reader.cpp Wed Nov 9 23:49:32 2016 (r425819) @@ -0,0 +1,14 @@ +--- src/lib_json/json_reader.cpp.orig 2016-10-30 21:28:16 UTC ++++ src/lib_json/json_reader.cpp +@@ -3,6 +3,11 @@ + // recognized in your jurisdiction. + // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + ++// fix for lang/gcc5+ ++#if __GNUC__ == 5 ++#include ++#endif ++ + #if !defined(JSON_IS_AMALGAMATION) + #include + #include Added: head/devel/jsoncpp/files/patch-src_lib__json_json__writer.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/jsoncpp/files/patch-src_lib__json_json__writer.cpp Wed Nov 9 23:49:32 2016 (r425819) @@ -0,0 +1,14 @@ +--- src/lib_json/json_writer.cpp.orig 2016-10-30 21:27:18 UTC ++++ src/lib_json/json_writer.cpp +@@ -3,6 +3,11 @@ + // recognized in your jurisdiction. + // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + ++// fix for lang/gcc5+ ++#if __GNUC__ == 5 ++#include ++#endif ++ + #if !defined(JSON_IS_AMALGAMATION) + #include + #include "json_tool.h"