From owner-svn-ports-all@freebsd.org Fri Feb 16 23:41:56 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ECC30F1DC92; Fri, 16 Feb 2018 23:41:55 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9F33379164; Fri, 16 Feb 2018 23:41:55 +0000 (UTC) (envelope-from jbeich@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 992911495A; Fri, 16 Feb 2018 23:41:55 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1GNftqV009520; Fri, 16 Feb 2018 23:41:55 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1GNftr6009516; Fri, 16 Feb 2018 23:41:55 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201802162341.w1GNftr6009516@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Fri, 16 Feb 2018 23:41:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r462075 - in branches/2018Q1/emulators/citra: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in branches/2018Q1/emulators/citra: . files X-SVN-Commit-Revision: 462075 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Feb 2018 23:41:56 -0000 Author: jbeich Date: Fri Feb 16 23:41:55 2018 New Revision: 462075 URL: https://svnweb.freebsd.org/changeset/ports/462075 Log: MFH: r462073 emulators/citra: unbreak in C++17 mode Approved by: ports-secteam blanket Added: branches/2018Q1/emulators/citra/files/extra-patch-c++14 - copied unchanged from r462073, head/emulators/citra/files/extra-patch-c++14 branches/2018Q1/emulators/citra/files/patch-externals_cryptopp_cryptopp_config.h - copied unchanged from r462073, head/emulators/citra/files/patch-externals_cryptopp_cryptopp_config.h Modified: branches/2018Q1/emulators/citra/Makefile branches/2018Q1/emulators/citra/files/patch-CMakeLists.txt Directory Properties: branches/2018Q1/ (props changed) Modified: branches/2018Q1/emulators/citra/Makefile ============================================================================== --- branches/2018Q1/emulators/citra/Makefile Fri Feb 16 23:41:44 2018 (r462074) +++ branches/2018Q1/emulators/citra/Makefile Fri Feb 16 23:41:55 2018 (r462075) @@ -39,6 +39,8 @@ GH_TUPLE= citra-emu:ext-soundtouch:019d208:soundtouch/ USES= cmake:outsource compiler:c++14-lang iconv localbase:ldflags USE_SDL= sdl2 +EXTRA_PATCHES+= ${EXTRA_PATCHES_${OPSYS}_${OSREL:R}} +EXTRA_PATCHES_FreeBSD_10= ${PATCHDIR}/extra-patch-c++14 CXXFLAGS+= -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH_TR1 \ -D_DECLARE_C99_LDBL_MATH # XXX ports/193528 Copied: branches/2018Q1/emulators/citra/files/extra-patch-c++14 (from r462073, head/emulators/citra/files/extra-patch-c++14) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2018Q1/emulators/citra/files/extra-patch-c++14 Fri Feb 16 23:41:55 2018 (r462075, copy of r462073, head/emulators/citra/files/extra-patch-c++14) @@ -0,0 +1,28 @@ +libc++ on FreeBSD 10.* doesn't support c++17 yet + +In file included from src/core/core_timing.cpp:12: +In file included from /usr/include/c++/v1/unordered_map:350: +/usr/include/c++/v1/__hash_table:1165:43: error: conflicting types for '__hash_table<_Tp, _Hash, _Equal, _Alloc>' +__hash_table<_Tp, _Hash, _Equal, _Alloc>::__hash_table() + ^ +/usr/include/c++/v1/__hash_table:852:5: note: previous declaration is here + __hash_table() + ^ +/usr/include/c++/v1/__hash_table:1233:43: error: conflicting types for '__hash_table<_Tp, _Hash, _Equal, _Alloc>' +__hash_table<_Tp, _Hash, _Equal, _Alloc>::__hash_table(__hash_table&& __u) + ^ +/usr/include/c++/v1/__hash_table:866:5: note: previous declaration is here + __hash_table(__hash_table&& __u) + ^ + +--- CMakeLists.txt.orig 2018-02-14 15:32:26 UTC ++++ CMakeLists.txt +@@ -89,7 +88,7 @@ message(STATUS "Target architecture: ${ARCHITECTURE}") + # Configure compilation flags + # =========================== + +-set(CMAKE_CXX_STANDARD 17) ++set(CMAKE_CXX_STANDARD 14) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + + if (NOT MSVC) Modified: branches/2018Q1/emulators/citra/files/patch-CMakeLists.txt ============================================================================== --- branches/2018Q1/emulators/citra/files/patch-CMakeLists.txt Fri Feb 16 23:41:44 2018 (r462074) +++ branches/2018Q1/emulators/citra/files/patch-CMakeLists.txt Fri Feb 16 23:41:55 2018 (r462075) @@ -1,17 +1,7 @@ -c++17 lacks std::bind2nd citra-qt currently needs SDL for audio and input --- CMakeLists.txt.orig 2017-08-09 15:54:29 UTC +++ CMakeLists.txt -@@ -89,7 +88,7 @@ message(STATUS "Target architecture: ${ARCHITECTURE}") - # Configure compilation flags - # =========================== - --set(CMAKE_CXX_STANDARD 17) -+set(CMAKE_CXX_STANDARD 14) - set(CMAKE_CXX_STANDARD_REQUIRED ON) - - if (NOT MSVC) @@ -207,15 +207,15 @@ if (ENABLE_SDL2) else() find_package(SDL2 REQUIRED) Copied: branches/2018Q1/emulators/citra/files/patch-externals_cryptopp_cryptopp_config.h (from r462073, head/emulators/citra/files/patch-externals_cryptopp_cryptopp_config.h) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2018Q1/emulators/citra/files/patch-externals_cryptopp_cryptopp_config.h Fri Feb 16 23:41:55 2018 (r462075, copy of r462073, head/emulators/citra/files/patch-externals_cryptopp_cryptopp_config.h) @@ -0,0 +1,13 @@ +https://github.com/citra-emu/citra/issues/3435 + +--- externals/cryptopp/cryptopp/config.h.orig 2018-01-22 20:54:51 UTC ++++ externals/cryptopp/cryptopp/config.h +@@ -1027,7 +1027,7 @@ NAMESPACE_END + #endif // alignof + + // lambdas: MS at VS2012 (17.00); GCC at 4.9; Clang at 3.3; Intel 12.0; SunCC 5.14. +-#if (CRYPTOPP_MSC_VERSION >= 1700) || __has_feature(cxx_lambda) || \ ++#if (CRYPTOPP_MSC_VERSION >= 1700) || __has_feature(cxx_lambdas) || \ + (__INTEL_COMPILER >= 1200) || (CRYPTOPP_GCC_VERSION >= 40900) || (__SUNPRO_CC >= 0x5140) + # define CRYPTOPP_CXX11_LAMBDA 1 + #endif // lambdas