summaryrefslogtreecommitdiff
path: root/external/python3/python-3.3.0-pythreadstate.patch.1
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2013-11-03 20:28:42 +0200
committerDavid Tardon <dtardon@redhat.com>2013-11-04 02:40:45 -0600
commit9dc3f0f5af0fe64ced5d1aca2fc1ddf28c3974c9 (patch)
tree9dd3583b360f02747470d68b4f4de644ab73a4d4 /external/python3/python-3.3.0-pythreadstate.patch.1
parent45053900a4b05018359bfc135ebe0b2c6ab93f4f (diff)
fdo#70393: move python3 to a subdir of external
Change-Id: Ic5796f096255d2d84e39415324e8a2e06bcf09c9 Reviewed-on: https://gerrit.libreoffice.org/6550 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'external/python3/python-3.3.0-pythreadstate.patch.1')
-rw-r--r--external/python3/python-3.3.0-pythreadstate.patch.115
1 files changed, 15 insertions, 0 deletions
diff --git a/external/python3/python-3.3.0-pythreadstate.patch.1 b/external/python3/python-3.3.0-pythreadstate.patch.1
new file mode 100644
index 000000000000..66350e2c8112
--- /dev/null
+++ b/external/python3/python-3.3.0-pythreadstate.patch.1
@@ -0,0 +1,15 @@
+disable a check in PyThreadState_Swap that is hopefully not a "real" problem
+
+--- python3/Python/pystate.c 2013-04-17 22:45:00.799800000 +0200
++++ python3/Python/pystate.c 2013-04-17 22:46:53.743800000 +0200
+@@ -437,7 +437,9 @@
+ to be used for a thread. Check this the best we can in debug
+ builds.
+ */
+-#if defined(Py_DEBUG) && defined(WITH_THREAD)
++#if defined(Py_DEBUG) && defined(WITH_THREAD) && 0
++ /* disable this for LO - it is triggered by nested PyThreadAttach
++ which do not appear to be a real problem */
+ if (newts) {
+ /* This can be called from PyEval_RestoreThread(). Similar
+ to it, we need to ensure errno doesn't change.