diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-12-20 09:55:59 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-12-27 09:55:19 -0800 |
| commit | 85323a3b5ced9c0db858aa87c0aa4db8999f7385 (patch) | |
| tree | 15bd2f5eab98a68c1919b0ab04e56d81ca413ff9 /meta-python/recipes-devtools/python3-wxgtk4 | |
| parent | fe2654d57c17eb77aae9fbb6b8c31efc418a2b0a (diff) | |
| download | meta-openembedded-85323a3b5ced9c0db858aa87c0aa4db8999f7385.tar.gz | |
python3-wxgtk4: Do not use GetAssertStackTrace with USE_STACKWALKER disabled
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python3-wxgtk4')
2 files changed, 37 insertions, 4 deletions
diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/0001-sip-Conditionally-use-GetAssertStackTrace-under-USE_.patch b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/0001-sip-Conditionally-use-GetAssertStackTrace-under-USE_.patch new file mode 100644 index 0000000000..f8a3061ae0 --- /dev/null +++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/0001-sip-Conditionally-use-GetAssertStackTrace-under-USE_.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From b9f95c06b2e7a525f4f93d705976882e8dcba6ab Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 20 Dec 2022 09:46:31 -0800 | ||
| 4 | Subject: [PATCH] sip: Conditionally use GetAssertStackTrace under | ||
| 5 | USE_STACKWALKER | ||
| 6 | |||
| 7 | Musl eg. does not implement stack walker ( backtrace ) therefore it gets | ||
| 8 | disabled for wxwidgets on those systems. This needs to be checked before using | ||
| 9 | GetAssertStackTrace() | ||
| 10 | |||
| 11 | Upstream-Status: Pending | ||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | sip/cpp/sip_corewxAppTraits.cpp | 4 ++++ | ||
| 15 | 1 file changed, 4 insertions(+) | ||
| 16 | |||
| 17 | diff --git a/sip/cpp/sip_corewxAppTraits.cpp b/sip/cpp/sip_corewxAppTraits.cpp | ||
| 18 | index 9c9f9d5b..1d2d2f90 100644 | ||
| 19 | --- a/sip/cpp/sip_corewxAppTraits.cpp | ||
| 20 | +++ b/sip/cpp/sip_corewxAppTraits.cpp | ||
| 21 | @@ -471,7 +471,11 @@ static PyObject *meth_wxAppTraits_GetAssertStackTrace(PyObject *sipSelf, PyObjec | ||
| 22 | PyErr_Clear(); | ||
| 23 | |||
| 24 | Py_BEGIN_ALLOW_THREADS | ||
| 25 | +#if wxUSE_STACKWALKER | ||
| 26 | sipRes = new ::wxString((sipSelfWasArg ? sipCpp-> ::wxAppTraits::GetAssertStackTrace() : sipCpp->GetAssertStackTrace())); | ||
| 27 | +#else | ||
| 28 | + sipRes = new ::wxString(""); | ||
| 29 | +#endif | ||
| 30 | Py_END_ALLOW_THREADS | ||
| 31 | |||
| 32 | if (PyErr_Occurred()) | ||
diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.0.bb b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.0.bb index df23037fc6..bf87b0a73d 100644 --- a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.0.bb +++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.0.bb | |||
| @@ -11,10 +11,11 @@ DEPENDS = "python3-attrdict3-native python3-six-native wxwidgets-native \ | |||
| 11 | PYPI_PACKAGE = "wxPython" | 11 | PYPI_PACKAGE = "wxPython" |
| 12 | 12 | ||
| 13 | SRC_URI += "file://add-back-option-build-base.patch \ | 13 | SRC_URI += "file://add-back-option-build-base.patch \ |
| 14 | file://wxgtk-fixup-build-scripts.patch \ | 14 | file://wxgtk-fixup-build-scripts.patch \ |
| 15 | file://not-overwrite-cflags-cxxflags.patch \ | 15 | file://not-overwrite-cflags-cxxflags.patch \ |
| 16 | file://0001-pypubsub-Replace-deprecated-inspect.getargspec.patch \ | 16 | file://0001-pypubsub-Replace-deprecated-inspect.getargspec.patch \ |
| 17 | " | 17 | file://0001-sip-Conditionally-use-GetAssertStackTrace-under-USE_.patch \ |
| 18 | " | ||
| 18 | SRC_URI[sha256sum] = "663cebc4509d7e5d113518865fe274f77f95434c5d57bc386ed58d65ceed86c7" | 19 | SRC_URI[sha256sum] = "663cebc4509d7e5d113518865fe274f77f95434c5d57bc386ed58d65ceed86c7" |
| 19 | 20 | ||
| 20 | S = "${WORKDIR}/wxPython-${PV}" | 21 | S = "${WORKDIR}/wxPython-${PV}" |
