summaryrefslogtreecommitdiff
path: root/freefilesync/debian/patches/disable_wxuse_Exceptions.patch
diff options
context:
space:
mode:
Diffstat (limited to 'freefilesync/debian/patches/disable_wxuse_Exceptions.patch')
-rw-r--r--freefilesync/debian/patches/disable_wxuse_Exceptions.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/freefilesync/debian/patches/disable_wxuse_Exceptions.patch b/freefilesync/debian/patches/disable_wxuse_Exceptions.patch
new file mode 100644
index 0000000..89ea834
--- /dev/null
+++ b/freefilesync/debian/patches/disable_wxuse_Exceptions.patch
@@ -0,0 +1,16 @@
+Author: bgstack15
+Source: Original research
+Version: 13.1
+Date: 2023-10-28
+Message: Disable wxUSE_EXCEPTIONS flag to fix FTBFS
+--- 13.1-0/FreeFileSync/Source/application.h 2023-10-28 08:12:34.776976562 -0400
++++ 13.1-1/FreeFileSync/Source/application.h 2023-10-28 08:54:26.710403937 -0400
+@@ -13,6 +13,8 @@
+ #include "config.h"
+ #include "return_codes.h"
+
++// Zenju probably turns this flag off for Windows builds, but the Debian package for wx3.2-headers turns it on. We need to disable it here because a make invocation fails right away unless we turn this flag off.
++#define wxUSE_EXCEPTIONS 0
+
+ namespace fff //avoid name clash with "int ffs()" for fuck's sake! (maxOS, Linux issue only: <string> internally includes <strings.h>, WTF!)
+ {
bgstack15