From 13f8cd1713e5bc76a9c2461d1101c8009df057db Mon Sep 17 00:00:00 2001 From: John Date: Thu, 2 Jul 2020 13:11:48 +0200 Subject: [PATCH] pcsx2: fix build on i686-musl --- ...20a9e048e4bd9d7760cb72e6335aee8155d4.patch | 42 +++++++++++++++++++ srcpkgs/pcsx2/template | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/pcsx2/patches/6b7f20a9e048e4bd9d7760cb72e6335aee8155d4.patch diff --git a/srcpkgs/pcsx2/patches/6b7f20a9e048e4bd9d7760cb72e6335aee8155d4.patch b/srcpkgs/pcsx2/patches/6b7f20a9e048e4bd9d7760cb72e6335aee8155d4.patch new file mode 100644 index 00000000000..7aefcc8dc72 --- /dev/null +++ b/srcpkgs/pcsx2/patches/6b7f20a9e048e4bd9d7760cb72e6335aee8155d4.patch @@ -0,0 +1,42 @@ +From 6b7f20a9e048e4bd9d7760cb72e6335aee8155d4 Mon Sep 17 00:00:00 2001 +From: John Zimmermann +Date: Thu, 2 Jul 2020 12:24:45 +0200 +Subject: [PATCH] Allow running on systems without wx stackwalkler + +closes #2796 +--- + pcsx2/gui/AppAssert.cpp | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git pcsx2/gui/AppAssert.cpp pcsx2/gui/AppAssert.cpp +index a282715c4e..4ce151f86f 100644 +--- pcsx2/gui/AppAssert.cpp ++++ pcsx2/gui/AppAssert.cpp +@@ -19,6 +19,7 @@ + + #include + ++#if wxUSE_STACKWALKER + class StackDump : public wxStackWalker + { + protected: +@@ -94,6 +95,7 @@ static wxString pxGetStackTrace( const FnChar_t* calledFrom ) + dump.Walk( 3 ); + return dump.GetStackTrace(); + } ++#endif + + #ifdef __WXDEBUG__ + +@@ -122,7 +124,11 @@ bool AppDoAssert( const DiagnosticOrigin& origin, const wxChar *msg ) + static bool disableAsserts = false; + if( disableAsserts ) return false; + ++#if wxUSE_STACKWALKER + wxString trace( pxGetStackTrace(origin.function) ); ++#else ++ wxString trace( "Warning: Platform doesn't support wx stackwalker" ); ++#endif + wxString dbgmsg( origin.ToString( msg ) ); + + wxMessageOutputDebug().Printf( L"%s", WX_STR(dbgmsg) ); diff --git a/srcpkgs/pcsx2/template b/srcpkgs/pcsx2/template index 16a720db567..50a4b0c1cce 100644 --- a/srcpkgs/pcsx2/template +++ b/srcpkgs/pcsx2/template @@ -1,5 +1,5 @@ # Template file for 'pcsx2' -archs="i686" +archs="i686*" lib32mode="full" nopie=yes