svn commit: r462075 - in branches/2018Q1/emulators/citra: . files
Jan Beich
jbeich at FreeBSD.org
Fri Feb 16 23:41:56 UTC 2018
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
More information about the svn-ports-branches
mailing list