public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-emulation/dolphin/files/
@ 2016-11-17 12:08 Michael Palimaka
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Palimaka @ 2016-11-17 12:08 UTC (permalink / raw
  To: gentoo-commits

commit:     3d5c2acaa71b0c1b65738d2ef2d6ede47f2fb76b
Author:     Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Wed Nov 16 20:40:27 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu Nov 17 12:08:35 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d5c2aca

games-emulation/dolphin: remove unused patches

 .../files/dolphin-5.0-dynamic-llvm-detect.patch    |  54 ------
 .../files/dolphin-5.0-miniupnpc-abi-14.patch       | 137 -------------
 .../dolphin/files/dolphin-emu-3.5-gcc-4.8.patch    | 211 ---------------------
 3 files changed, 402 deletions(-)

diff --git a/games-emulation/dolphin/files/dolphin-5.0-dynamic-llvm-detect.patch b/games-emulation/dolphin/files/dolphin-5.0-dynamic-llvm-detect.patch
deleted file mode 100644
index 798ec56..00000000
--- a/games-emulation/dolphin/files/dolphin-5.0-dynamic-llvm-detect.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-From 1515497ab88dc2452ed0db20a4610663cd04ff21 Mon Sep 17 00:00:00 2001
-From: comex <comexk@gmail.com>
-Date: Tue, 7 Jul 2015 07:49:46 -0400
-Subject: [PATCH] Make the LLVM detect script verify that the dynamic library actually exists.
-
-For some dumb reason, llvm-config doesn't provide the flags to link
-against the dynamic library copy of LLVM (as opposed to static), so the
-script has to guess the library name.  However, in some installations
-(such as mine), there is no dynamic copy, which caused Dolphin to fail
-to link.  Change the script to do a link test.  If it fails, one option
-would be to fall back on static linking, but I just have it fail to
-detect LLVM, because statically linking Dolphin against LLVM is really
-not a great idea - huge binary, long link time.
----
- CMakeTests/FindLLVM.cmake | 12 +++++++++---
- 1 file changed, 9 insertions(+), 3 deletions(-)
-
-diff --git a/CMakeTests/FindLLVM.cmake b/CMakeTests/FindLLVM.cmake
-index 7fe664f..cfcfaed 100644
---- a/CMakeTests/FindLLVM.cmake
-+++ b/CMakeTests/FindLLVM.cmake
-@@ -1,6 +1,9 @@
- # This file only exists because LLVM's cmake files are broken.
- # This affects both LLVM 3.4 and 3.5.
- # Hopefully when they fix their cmake system we don't need this garbage.
-+
-+include(CheckLibraryExists)
-+
- list(APPEND LLVM_CONFIG_EXECUTABLES "llvm-config")
- list(APPEND LLVM_CONFIG_EXECUTABLES "llvm-config-3.5")
- list(APPEND LLVM_CONFIG_EXECUTABLES "llvm-config-3.4")
-@@ -11,13 +14,16 @@ foreach(LLVM_CONFIG_NAME ${LLVM_CONFIG_EXECUTABLES})
- 		execute_process(COMMAND ${LLVM_CONFIG_EXE} --version OUTPUT_VARIABLE LLVM_PACKAGE_VERSION
- 			OUTPUT_STRIP_TRAILING_WHITESPACE )
- 		if (${LLVM_PACKAGE_VERSION} VERSION_GREATER "3.3")
--			set(LLVM_FOUND 1)
- 			execute_process(COMMAND ${LLVM_CONFIG_EXE} --includedir OUTPUT_VARIABLE LLVM_INCLUDE_DIRS
- 				OUTPUT_STRIP_TRAILING_WHITESPACE )
- 			execute_process(COMMAND ${LLVM_CONFIG_EXE} --ldflags OUTPUT_VARIABLE LLVM_LDFLAGS
- 				OUTPUT_STRIP_TRAILING_WHITESPACE )
--			set(LLVM_LIBRARIES "${LLVM_LDFLAGS} -lLLVM-${LLVM_PACKAGE_VERSION}")
--			break()
-+			check_library_exists(LLVM-${LLVM_PACKAGE_VERSION} LLVMVerifyFunction "${LLVM_LDFLAGS}" HAVE_DYNAMIC_LLVM_${LLVM_PACKAGE_VERSION})
-+			if (HAVE_DYNAMIC_LLVM_${LLVM_PACKAGE_VERSION})
-+				set(LLVM_LIBRARIES "${LLVM_LDFLAGS} -lLLVM-${LLVM_PACKAGE_VERSION}")
-+				set(LLVM_FOUND 1)
-+				break()
-+			endif()
- 		endif()
- 	endif()
- endforeach()
--- 
-2.6.2
-

diff --git a/games-emulation/dolphin/files/dolphin-5.0-miniupnpc-abi-14.patch b/games-emulation/dolphin/files/dolphin-5.0-miniupnpc-abi-14.patch
deleted file mode 100644
index ecb6abb..00000000
--- a/games-emulation/dolphin/files/dolphin-5.0-miniupnpc-abi-14.patch
+++ /dev/null
@@ -1,137 +0,0 @@
-From 8c5744bca705a0895bd51c966a30171ee2bab43a Mon Sep 17 00:00:00 2001
-From: Marisa Kirisame <marisa@sayachan.org>
-Date: Tue, 29 Sep 2015 23:10:31 +0200
-Subject: [PATCH] miniupnpc API version 14 changed the upnpDiscover functions,
- adding an argument for TTL (should default to 2) this enables support for
- that should the build system have that specific version installed, the
- miniupnpc bundled in the project is unchanged
-
----
- CMakeLists.txt                     |  5 ++++-
- CMakeTests/FindMiniupnpc.cmake     | 39 +++++++++++++++++++++++++++++++++-----
- Source/Core/Core/NetPlayServer.cpp |  4 ++++
- 3 files changed, 42 insertions(+), 6 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 291efee..7ac0679 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -690,9 +690,12 @@ if(USE_UPNP)
- 	if(NOT APPLE AND NOT ANDROID)
- 		include(FindMiniupnpc)
- 	endif()
--	if(MINIUPNP_FOUND AND MINIUPNPC_VERSION_1_7_OR_HIGHER)
-+	if(MINIUPNP_FOUND AND (MINIUPNPC_VERSION_1_7_OR_HIGHER OR MINIUPNPC_VERSION_API14_OR_HIGHER))
- 		message("Using shared miniupnpc")
- 		include_directories(${MINIUPNP_INCLUDE_DIR})
-+		if (MINIUPNPC_VERSION_API14_OR_HIGHER)
-+			add_definitions(-DUPNPDISCOVER_HAS_TTL)
-+		endif()
- 	else()
- 		message("Using static miniupnpc from Externals")
- 		add_subdirectory(Externals/miniupnpc)
-diff --git a/CMakeTests/FindMiniupnpc.cmake b/CMakeTests/FindMiniupnpc.cmake
-index bb1048c..5301d40 100644
---- a/CMakeTests/FindMiniupnpc.cmake
-+++ b/CMakeTests/FindMiniupnpc.cmake
-@@ -58,6 +58,30 @@ if (MINIUPNP_FOUND)
- 	#include <stdio.h>
- 	int main()
- 	{
-+	struct UPNPDev *devlist = NULL;
-+	int upnp_delay = 5000;
-+	const char *upnp_multicastif = NULL;
-+	const char *upnp_minissdpdsock = NULL;
-+	int upnp_sameport = 0;
-+	int upnp_ipv6 = 0;
-+	unsigned char upnp_ttl = 2;
-+	int upnp_error = 0;
-+	devlist = upnpDiscover(upnp_delay, upnp_multicastif, upnp_minissdpdsock, upnp_sameport, upnp_ipv6, upnp_ttl, &upnp_error);
-+
-+	return 0;
-+	}"
-+	MINIUPNPC_VERSION_API14_OR_HIGHER)
-+
-+IF (NOT MINIUPNPC_VERSION_API14_OR_HIGHER)
-+	set(CMAKE_REQUIRED_INCLUDES ${MINIUPNP_INCLUDE_DIR})
-+	set(CMAKE_REQUIRED_LIBRARIES ${MINIUPNP_LIBRARY})
-+	check_cxx_source_runs("
-+	#include <miniwget.h>
-+	#include <miniupnpc.h>
-+	#include <upnpcommands.h>
-+	#include <stdio.h>
-+	int main()
-+	{
- 	static struct UPNPUrls urls;
- 	static struct IGDdatas data;
- 
-@@ -66,8 +90,9 @@ if (MINIUPNP_FOUND)
- 	return 0;
- 	}"
- 	MINIUPNPC_VERSION_1_7_OR_HIGHER)
-+   ENDIF()
- 
--IF (NOT MINIUPNPC_VERSION_1_7_OR_HIGHER)
-+IF (NOT MINIUPNPC_VERSION_1_7_OR_HIGHER AND NOT MINIUPNPC_VERSION_API14_OR_HIGHER)
- 	set(CMAKE_REQUIRED_INCLUDES ${MINIUPNP_INCLUDE_DIR})
- 	set(CMAKE_REQUIRED_LIBRARIES ${MINIUPNP_LIBRARY})
- 	check_cxx_source_runs("
-@@ -91,7 +116,7 @@ IF (NOT MINIUPNPC_VERSION_1_7_OR_HIGHER)
- 	MINIUPNPC_VERSION_PRE1_7)
-    ENDIF()
- 
--   IF (NOT MINIUPNPC_VERSION_PRE1_7 AND NOT MINIUPNPC_VERSION_1_7_OR_HIGHER)
-+   IF (NOT MINIUPNPC_VERSION_PRE1_7 AND NOT MINIUPNPC_VERSION_1_7_OR_HIGHER AND NOT MINIUPNPC_VERSION_API14_OR_HIGHER)
- 	   set(CMAKE_REQUIRED_INCLUDES ${MINIUPNP_INCLUDE_DIR})
- 	   set(CMAKE_REQUIRED_LIBRARIES ${MINIUPNP_LIBRARY})
- 	   check_cxx_source_runs("
-@@ -116,7 +141,7 @@ IF (NOT MINIUPNPC_VERSION_1_7_OR_HIGHER)
- 
-    ENDIF()
- 
--   IF (NOT MINIUPNPC_VERSION_PRE1_6 AND NOT MINIUPNPC_VERSION_PRE1_7 AND NOT MINIUPNPC_VERSION_1_7_OR_HIGHER)
-+   IF (NOT MINIUPNPC_VERSION_PRE1_6 AND NOT MINIUPNPC_VERSION_PRE1_7 AND NOT MINIUPNPC_VERSION_1_7_OR_HIGHER AND NOT MINIUPNPC_VERSION_API14_OR_HIGHER)
- 	   set(CMAKE_REQUIRED_INCLUDES ${MINIUPNP_INCLUDE_DIR})
- 	   set(CMAKE_REQUIRED_LIBRARIES ${MINIUPNP_LIBRARY})
- 	   check_cxx_source_runs("
-@@ -136,7 +161,7 @@ IF (NOT MINIUPNPC_VERSION_1_7_OR_HIGHER)
- 	   MINIUPNPC_VERSION_1_5_OR_HIGHER)
- 	ENDIF()
- 
--	IF (NOT MINIUPNPC_VERSION_1_5_OR_HIGHER AND NOT MINIUPNPC_VERSION_PRE1_6 AND NOT MINIUPNPC_VERSION_PRE1_7 AND NOT MINIUPNPC_VERSION_1_7_OR_HIGHER)
-+	IF (NOT MINIUPNPC_VERSION_1_5_OR_HIGHER AND NOT MINIUPNPC_VERSION_PRE1_6 AND NOT MINIUPNPC_VERSION_PRE1_7 AND NOT MINIUPNPC_VERSION_1_7_OR_HIGHER AND NOT MINIUPNPC_VERSION_API14_OR_HIGHER)
- 		set(CMAKE_REQUIRED_INCLUDES ${MINIUPNP_INCLUDE_DIR})
- 		set(CMAKE_REQUIRED_LIBRARIES ${MINIUPNP_LIBRARY})
- 		check_cxx_source_runs("
-@@ -167,10 +192,14 @@ IF(MINIUPNPC_VERSION_PRE1_7)
- 	message(STATUS "Found miniupnpc version is pre v1.7")
- ENDIF()
- 
--IF(NOT MINIUPNPC_VERSION_PRE1_5 AND NOT MINIUPNPC_VERSION_PRE1_6 AND NOT MINIUPNPC_VERSION_PRE1_7)
-+IF(NOT MINIUPNPC_VERSION_PRE1_5 AND NOT MINIUPNPC_VERSION_PRE1_6 AND NOT MINIUPNPC_VERSION_PRE1_7 AND NOT MINIUPNPC_VERSION_API14_OR_HIGHER)
- 	message(STATUS "Found miniupnpc version is v1.7 or higher")
- ENDIF()
- 
-+IF(NOT MINIUPNPC_VERSION_PRE1_5 AND NOT MINIUPNPC_VERSION_PRE1_6 AND NOT MINIUPNPC_VERSION_PRE1_7 AND NOT MINIUPNPC_VERSION_1_7_OR_HIGHER)
-+	message(STATUS "Found miniupnpc version is v1.9 API version 14 or higher")
-+ENDIF()
-+
- else ()
- 	message (STATUS "Could not find miniupnp")
- endif ()
-diff --git a/Source/Core/Core/NetPlayServer.cpp b/Source/Core/Core/NetPlayServer.cpp
-index 7ed283a..27b46c9 100644
---- a/Source/Core/Core/NetPlayServer.cpp
-+++ b/Source/Core/Core/NetPlayServer.cpp
-@@ -904,7 +904,11 @@ bool NetPlayServer::initUPnP()
- 	memset(&m_upnp_data, 0, sizeof(IGDdatas));
- 
- 	// Find all UPnP devices
-+#ifdef UPNPDISCOVER_HAS_TTL
-+	UPNPDev *devlist = upnpDiscover(2000, nullptr, nullptr, 0, 0, 2, &upnperror);
-+#else
- 	UPNPDev *devlist = upnpDiscover(2000, nullptr, nullptr, 0, 0, &upnperror);
-+#endif
- 	if (!devlist)
- 	{
- 		WARN_LOG(NETPLAY, "An error occured trying to discover UPnP devices.");

diff --git a/games-emulation/dolphin/files/dolphin-emu-3.5-gcc-4.8.patch b/games-emulation/dolphin/files/dolphin-emu-3.5-gcc-4.8.patch
deleted file mode 100644
index 98b128f..00000000
--- a/games-emulation/dolphin/files/dolphin-emu-3.5-gcc-4.8.patch
+++ /dev/null
@@ -1,211 +0,0 @@
---- Externals/Bochs_disasm/PowerPCDisasm.cpp	2013-05-04 10:01:04.218490222 +0200
-+++ Externals/Bochs_disasm/PowerPCDisasm.cpp	2013-05-04 10:01:19.159459773 +0200
-@@ -580,7 +580,7 @@
- 		if (me < mb) 
- 			mask = ~mask;
- 		//rotate the mask so it can be applied to source reg
--		return _rotl(mask, 32 - r);
-+		return __rotl(mask, 32 - r);
- 	}
- 
- 
---- Source/Core/Common/Src/CommonFuncs.h	2013-05-04 10:01:04.139490384 +0200
-+++ Source/Core/Common/Src/CommonFuncs.h	2013-05-04 10:02:18.181339068 +0200
-@@ -65,7 +65,7 @@
- 	#endif
- 	#define ARRAYSIZE(A) (sizeof(A)/sizeof((A)[0]))
- 
--inline u32 _rotl(u32 x, int shift) {
-+inline u32 __rotl(u32 x, int shift) {
-     shift &= 31;
-     if (!shift) return x;
-     return (x << shift) | (x >> (32 - shift));
-@@ -76,7 +76,7 @@
- 	return (x << n) | (x >> (64 - n));
- }
- 
--inline u32 _rotr(u32 x, int shift) {
-+inline u32 __rotr(u32 x, int shift) {
-     shift &= 31;
-     if (!shift) return x;
-     return (x >> shift) | (x << (32 - shift));
---- Source/Core/Common/Src/Hash.cpp	2013-05-04 10:01:04.140490382 +0200
-+++ Source/Core/Common/Src/Hash.cpp	2013-05-04 10:01:19.161459756 +0200
-@@ -362,15 +362,15 @@
- inline void bmix32(u32 & h1, u32 & h2, u32 & k1, u32 & k2, u32 & c1, u32 & c2)
- {
- 	k1 *= c1; 
--	k1  = _rotl(k1,11); 
-+	k1  = __rotl(k1,11); 
- 	k1 *= c2;
- 	h1 ^= k1;
- 	h1 += h2;
- 
--	h2 = _rotl(h2,17);
-+	h2 = __rotl(h2,17);
- 
- 	k2 *= c2; 
--	k2  = _rotl(k2,11);
-+	k2  = __rotl(k2,11);
- 	k2 *= c1;
- 	h2 ^= k2;
- 	h2 += h1;
---- Source/Core/Core/Src/ARDecrypt.cpp	2013-05-04 10:01:04.193490273 +0200
-+++ Source/Core/Core/Src/ARDecrypt.cpp	2013-05-04 10:01:19.161459756 +0200
-@@ -270,26 +270,26 @@
- {
- 	u32 tmp;
- 
--	*val = _rotl(*val,4);
-+	*val = __rotl(*val,4);
- 
- 	tmp = ((*addr^*val)&0xF0F0F0F0);
- 	*addr ^= tmp;
--	*val = _rotr((*val^tmp),0x14);
-+	*val = __rotr((*val^tmp),0x14);
- 
- 	tmp = ((*addr^*val)&0xFFFF0000);
- 	*addr ^= tmp;
--	*val = _rotr((*val^tmp),0x12);
-+	*val = __rotr((*val^tmp),0x12);
- 
- 	tmp = ((*addr^*val)&0x33333333);
- 	*addr ^= tmp;
--	*val = _rotr((*val^tmp),6);
-+	*val = __rotr((*val^tmp),6);
- 
- 	tmp = ((*addr^*val)&0x00FF00FF);
- 	*addr ^= tmp;
--	*val = _rotl((*val^tmp),9);
-+	*val = __rotl((*val^tmp),9);
- 
- 	tmp = ((*addr^*val)&0xAAAAAAAA);
--	*addr = _rotl((*addr^tmp),1);
-+	*addr = __rotl((*addr^tmp),1);
- 	*val ^= tmp;
- }
- 
-@@ -297,27 +297,27 @@
- {
- 	u32 tmp;
- 
--	*val = _rotr(*val,1);
-+	*val = __rotr(*val,1);
- 
- 	tmp = ((*addr^*val)&0xAAAAAAAA);
- 	*val ^= tmp;
--	*addr = _rotr((*addr^tmp),9);
-+	*addr = __rotr((*addr^tmp),9);
- 
- 	tmp = ((*addr^*val)&0x00FF00FF);
- 	*val ^= tmp;
--	*addr = _rotl((*addr^tmp),6);
-+	*addr = __rotl((*addr^tmp),6);
- 
- 	tmp = ((*addr^*val)&0x33333333);
- 	*val ^= tmp;
--	*addr = _rotl((*addr^tmp),0x12);
-+	*addr = __rotl((*addr^tmp),0x12);
- 
- 	tmp = ((*addr^*val)&0xFFFF0000);
- 	*val ^= tmp;
--	*addr = _rotl((*addr^tmp),0x14);
-+	*addr = __rotl((*addr^tmp),0x14);
- 
- 	tmp = ((*addr^*val)&0xF0F0F0F0);
- 	*val ^= tmp;
--	*addr = _rotr((*addr^tmp),4);
-+	*addr = __rotr((*addr^tmp),4);
- }
- 
- void decryptcode(u32 *seeds, u32 *code)
-@@ -330,11 +330,11 @@
- 	unscramble1(&addr,&val);
- 	while (i < 32)
- 	{
--		tmp = (_rotr(val,4)^seeds[i++]);
-+		tmp = (__rotr(val,4)^seeds[i++]);
- 		tmp2 = (val^seeds[i++]);
- 		addr ^= (table6[tmp&0x3F]^table4[(tmp>>8)&0x3F]^table2[(tmp>>16)&0x3F]^table0[(tmp>>24)&0x3F]^table7[tmp2&0x3F]^table5[(tmp2>>8)&0x3F]^table3[(tmp2>>16)&0x3F]^table1[(tmp2>>24)&0x3F]);
- 
--		tmp = (_rotr(addr,4)^seeds[i++]);
-+		tmp = (__rotr(addr,4)^seeds[i++]);
- 		tmp2 = (addr^seeds[i++]);
- 		val ^= (table6[tmp&0x3F]^table4[(tmp>>8)&0x3F]^table2[(tmp>>16)&0x3F]^table0[(tmp>>24)&0x3F]^table7[tmp2&0x3F]^table5[(tmp2>>8)&0x3F]^table3[(tmp2>>16)&0x3F]^table1[(tmp2>>24)&0x3F]);
- 	}
---- Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_Integer.cpp	2013-05-04 10:01:04.187490286 +0200
-+++ Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_Integer.cpp	2013-05-04 10:01:19.162459748 +0200
-@@ -194,21 +194,21 @@
- void Interpreter::rlwimix(UGeckoInstruction _inst)
- {
- 	u32 mask = Helper_Mask(_inst.MB,_inst.ME);
--	m_GPR[_inst.RA] = (m_GPR[_inst.RA] & ~mask) | (_rotl(m_GPR[_inst.RS],_inst.SH) & mask);
-+	m_GPR[_inst.RA] = (m_GPR[_inst.RA] & ~mask) | (__rotl(m_GPR[_inst.RS],_inst.SH) & mask);
- 	if (_inst.Rc) Helper_UpdateCR0(m_GPR[_inst.RA]);
- }
- 
- void Interpreter::rlwinmx(UGeckoInstruction _inst)
- {
- 	u32 mask = Helper_Mask(_inst.MB,_inst.ME);
--	m_GPR[_inst.RA] = _rotl(m_GPR[_inst.RS],_inst.SH) & mask;
-+	m_GPR[_inst.RA] = __rotl(m_GPR[_inst.RS],_inst.SH) & mask;
- 	if (_inst.Rc) Helper_UpdateCR0(m_GPR[_inst.RA]);
- }
- 
- void Interpreter::rlwnmx(UGeckoInstruction _inst)
- {
- 	u32 mask = Helper_Mask(_inst.MB,_inst.ME);
--	m_GPR[_inst.RA] = _rotl(m_GPR[_inst.RS], m_GPR[_inst.RB] & 0x1F) & mask;
-+	m_GPR[_inst.RA] = __rotl(m_GPR[_inst.RS], m_GPR[_inst.RB] & 0x1F) & mask;
- 
- 	if (_inst.Rc) Helper_UpdateCR0(m_GPR[_inst.RA]);
- }
---- Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp	2013-05-04 10:01:04.185490290 +0200
-+++ Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp	2013-05-04 10:01:19.190459657 +0200
-@@ -1672,7 +1672,7 @@
- 	{
- 		unsigned result = (int)gpr.R(s).offset;
- 		if (inst.SH != 0)
--			result = _rotl(result, inst.SH);
-+			result = __rotl(result, inst.SH);
- 		result &= Helper_Mask(inst.MB, inst.ME);
- 		gpr.SetImmediate32(a, result);
- 		if (inst.Rc)
-@@ -1739,7 +1739,7 @@
- 	if (gpr.R(a).IsImm() && gpr.R(s).IsImm())
- 	{
- 		u32 mask = Helper_Mask(inst.MB,inst.ME);
--		gpr.SetImmediate32(a, ((u32)gpr.R(a).offset & ~mask) | (_rotl((u32)gpr.R(s).offset,inst.SH) & mask));
-+		gpr.SetImmediate32(a, ((u32)gpr.R(a).offset & ~mask) | (__rotl((u32)gpr.R(s).offset,inst.SH) & mask));
- 		if (inst.Rc)
- 		{
- 			ComputeRC(gpr.R(a));
-@@ -1824,7 +1824,7 @@
- 	u32 mask = Helper_Mask(inst.MB, inst.ME);
- 	if (gpr.R(b).IsImm() && gpr.R(s).IsImm())
- 	{
--		gpr.SetImmediate32(a, _rotl((u32)gpr.R(s).offset, (u32)gpr.R(b).offset & 0x1F) & mask);
-+		gpr.SetImmediate32(a, __rotl((u32)gpr.R(s).offset, (u32)gpr.R(b).offset & 0x1F) & mask);
- 		if (inst.Rc)
- 		{
- 			ComputeRC(gpr.R(a));
---- Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp	2013-05-04 10:01:04.188490284 +0200
-+++ Source/Core/Core/Src/PowerPC/Jit64IL/IR.cpp	2013-05-04 10:01:19.191459655 +0200
-@@ -248,7 +248,7 @@
- 		return 0;
- 	case Rol:
- 		if (isImm(*getOp2(I))) {
--			return _rotl(ComputeKnownZeroBits(getOp1(I)),
-+			return __rotl(ComputeKnownZeroBits(getOp1(I)),
- 			             GetImmValue(getOp2(I)));
- 		}
- 	default:
-@@ -844,7 +844,7 @@
- InstLoc IRBuilder::FoldRol(InstLoc Op1, InstLoc Op2) {
- 	if (isImm(*Op2)) {
- 		if (isImm(*Op1))
--			return EmitIntConst(_rotl(GetImmValue(Op1),
-+			return EmitIntConst(__rotl(GetImmValue(Op1),
- 					          GetImmValue(Op2)));
- 		if (!(GetImmValue(Op2) & 31)) return Op1;
- 	}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-emulation/dolphin/files/
@ 2020-08-14 21:55 Sergei Trofimovich
  0 siblings, 0 replies; 2+ messages in thread
From: Sergei Trofimovich @ 2020-08-14 21:55 UTC (permalink / raw
  To: gentoo-commits

commit:     17bd64be273a560dc8c64ff50e046646f9038a21
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Fri Aug 14 14:39:24 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Aug 14 21:55:25 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17bd64be

games-emulation/dolphin: remove unused patch(es)

Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/17120
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 .../files/dolphin-5.0-CHAR_WIDTH-collision.patch   | 49 ----------------------
 .../dolphin/files/dolphin-5.0-no-pie.patch         | 26 ------------
 .../files/dolphin-5.0-soundtouch-exceptions.patch  | 19 ---------
 .../dolphin/files/dolphin-5.0-xgetbv.patch         | 24 -----------
 4 files changed, 118 deletions(-)

diff --git a/games-emulation/dolphin/files/dolphin-5.0-CHAR_WIDTH-collision.patch b/games-emulation/dolphin/files/dolphin-5.0-CHAR_WIDTH-collision.patch
deleted file mode 100644
index d6e4c7a2dc0..00000000000
--- a/games-emulation/dolphin/files/dolphin-5.0-CHAR_WIDTH-collision.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-Avoid clash with TS 18661-1:2014 macros
-https://bugs.gentoo.org/637986
-
---- a/Source/Core/VideoBackends/OGL/RasterFont.cpp
-+++ b/Source/Core/VideoBackends/OGL/RasterFont.cpp
-@@ -15,7 +15,7 @@
- namespace OGL
- {
- 
--static const int CHAR_WIDTH = 8;
-+static const int DOLPHIN_CHAR_WIDTH = 8;
- static const int CHAR_HEIGHT = 13;
- static const int CHAR_OFFSET = 32;
- static const int CHAR_COUNT = 95;
-@@ -146,20 +146,20 @@
- 	glGenTextures(1, &texture);
- 	glActiveTexture(GL_TEXTURE8);
- 	glBindTexture(GL_TEXTURE_2D, texture);
--	std::vector<u32> texture_data(CHAR_WIDTH * CHAR_COUNT * CHAR_HEIGHT);
-+	std::vector<u32> texture_data(DOLPHIN_CHAR_WIDTH * CHAR_COUNT * CHAR_HEIGHT);
- 	for (int y = 0; y < CHAR_HEIGHT; y++)
- 	{
- 		for (int c = 0; c < CHAR_COUNT; c++)
- 		{
--			for (int x = 0; x < CHAR_WIDTH; x++)
-+			for (int x = 0; x < DOLPHIN_CHAR_WIDTH; x++)
- 			{
--				bool pixel = (0 != (rasters[c][y] & (1 << (CHAR_WIDTH - x - 1))));
--				texture_data[CHAR_WIDTH * CHAR_COUNT * y + CHAR_WIDTH * c + x] = pixel ? -1 : 0;
-+				bool pixel = (0 != (rasters[c][y] & (1 << (DOLPHIN_CHAR_WIDTH - x - 1))));
-+				texture_data[DOLPHIN_CHAR_WIDTH * CHAR_COUNT * y + DOLPHIN_CHAR_WIDTH * c + x] = pixel ? -1 : 0;
- 			}
- 		}
- 	}
- 	glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 0);
--	glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, CHAR_WIDTH * CHAR_COUNT, CHAR_HEIGHT, 0, GL_RGBA, GL_UNSIGNED_BYTE, texture_data.data());
-+	glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, DOLPHIN_CHAR_WIDTH * CHAR_COUNT, CHAR_HEIGHT, 0, GL_RGBA, GL_UNSIGNED_BYTE, texture_data.data());
- 
- 	// generate shader
- 	ProgramShaderCache::CompileShader(s_shader, s_vertexShaderSrc, s_fragmentShaderSrc);
-@@ -196,7 +196,7 @@
- 	std::vector<GLfloat> vertices(text.length() * 6 * 4);
- 
- 	int usage = 0;
--	GLfloat delta_x = GLfloat(2 * CHAR_WIDTH) / GLfloat(bbWidth);
-+	GLfloat delta_x = GLfloat(2 * DOLPHIN_CHAR_WIDTH) / GLfloat(bbWidth);
- 	GLfloat delta_y = GLfloat(2 * CHAR_HEIGHT) / GLfloat(bbHeight);
- 	GLfloat border_x = 2.0f / GLfloat(bbWidth);
- 	GLfloat border_y = 4.0f / GLfloat(bbHeight);

diff --git a/games-emulation/dolphin/files/dolphin-5.0-no-pie.patch b/games-emulation/dolphin/files/dolphin-5.0-no-pie.patch
deleted file mode 100644
index 949e42e50de..00000000000
--- a/games-emulation/dolphin/files/dolphin-5.0-no-pie.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-Disable PIE-compatible code generation via -fno-pie.
-
-Before upstream fix:
-https://github.com/dolphin-emu/dolphin/commit/daa03cd1060cc826aca93a1dffc6e94bc6af6d5f
-dolphin assumed executable image to be in low addresses (<2GB)
-and hardcoded 32-bit absolute addresses during JIT phase.
-
-PIE-compatible code does not have this restriction and
-allows mapping binaries above 2GB area (and breaks dolphin's JIT).
-
-Strictly speaking -no-pie (link-time flag) does not or guarantee
-or require low address mapping for binary if it was already built
-as PIC/PIE.
-
-But -fno-pie imposes additional restrictions on generated code by GCC
-and makes -no-pie to take effect.
-Bug: https://bugs.gentoo.org/640124
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -189,4 +189,4 @@ if(NOT ENABLE_GENERIC)
- 			set(_M_X86_64 1)
--			add_definitions(-D_M_X86=1 -D_M_X86_64=1 -msse2)
--			set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-pie")
-+			add_definitions(-D_M_X86=1 -D_M_X86_64=1 -msse2 -fno-pie)
-+			set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-pie -no-pie")
- 		else()

diff --git a/games-emulation/dolphin/files/dolphin-5.0-soundtouch-exceptions.patch b/games-emulation/dolphin/files/dolphin-5.0-soundtouch-exceptions.patch
deleted file mode 100644
index ffd07cf0697..00000000000
--- a/games-emulation/dolphin/files/dolphin-5.0-soundtouch-exceptions.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-https://bugs.gentoo.org/686752
-
-Description: Fix FTBFS with SoundTouch 2.1.2
- Explicitly disable exceptions in SoundTouch headers because Dolphin
- is compiled with -fno-exceptions.
-Author: James Cowgill <jcowgill@debian.org>
-Bug-Debian: https://bugs.debian.org/917671
----
-This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---- a/Source/Core/AudioCommon/OpenALStream.h
-+++ b/Source/Core/AudioCommon/OpenALStream.h
-@@ -32,6 +32,7 @@
- #define BOOL SoundTouch_BOOL
- #endif
- 
-+#define ST_NO_EXCEPTION_HANDLING
- #include <soundtouch/SoundTouch.h>
- #include <soundtouch/STTypes.h>
- 

diff --git a/games-emulation/dolphin/files/dolphin-5.0-xgetbv.patch b/games-emulation/dolphin/files/dolphin-5.0-xgetbv.patch
deleted file mode 100644
index ffa7cc81c13..00000000000
--- a/games-emulation/dolphin/files/dolphin-5.0-xgetbv.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-Workaround collision of _xgetbv intrinsic redeclaration:
-
-Source/Core/Common/x64CPUDetect.cpp:45:12: error: ambiguating new declaration of ‘u64 _xgetbv(u32)’
- static u64 _xgetbv(u32 index)
-            ^~~~~~~
-In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/8.1.0/include/x86intrin.h:74,
-                 from Source/Core/Common/Intrinsics.h:12,
-                 from Source/Core/Common/x64CPUDetect.cpp:10:
-/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.0/include/xsaveintrin.h:60:1: note: old declaration ‘long long int _xgetbv(unsigned int)’
- _xgetbv (unsigned int __A)
- ^~~~~~~
-
-Upstream fied it in
-    commit 823fdda30c38be953c3d425874f2adeabed2b5a8
-    intrinsics: stop defining _xgetbv/_XCR_XFEATURE_ENABLED_MASK, which are reserved
-
---- a/Source/Core/Common/x64CPUDetect.cpp
-+++ b/Source/Core/Common/x64CPUDetect.cpp
-@@ -45 +45 @@ static inline void __cpuid(int info[4], int function_id)
--static u64 _xgetbv(u32 index)
-+static u64 _xgetbv_dolphin(u32 index)
-@@ -137 +137 @@ void CPUInfo::Detect()
--			if ((_xgetbv(_XCR_XFEATURE_ENABLED_MASK) & 0x6) == 0x6)
-+			if ((_xgetbv_dolphin(_XCR_XFEATURE_ENABLED_MASK) & 0x6) == 0x6)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-14 21:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-17 12:08 [gentoo-commits] repo/gentoo:master commit in: games-emulation/dolphin/files/ Michael Palimaka
  -- strict thread matches above, loose matches on Subject: below --
2020-08-14 21:55 Sergei Trofimovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox