diff options
Diffstat (limited to 'meta-python/recipes-devtools/python3-wxgtk4')
-rw-r--r-- | meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/0001-sip-Conditionally-use-GetAssertStackTrace-under-USE_.patch | 6 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/0001-sip-Fix-build-with-gcc-14.patch | 31 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/add-back-option-build-base.patch | 9 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/not-overwrite-cflags-cxxflags.patch | 10 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/wxgtk-fixup-build-scripts.patch | 15 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.2.bb (renamed from meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.1.bb) | 15 |
6 files changed, 33 insertions, 53 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 index f8a3061ae0..1426067d23 100644 --- 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 | |||
@@ -1,4 +1,4 @@ | |||
1 | From b9f95c06b2e7a525f4f93d705976882e8dcba6ab Mon Sep 17 00:00:00 2001 | 1 | From b62aa1a2e3e0feced819a375be3b2187cc356284 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Tue, 20 Dec 2022 09:46:31 -0800 | 3 | Date: Tue, 20 Dec 2022 09:46:31 -0800 |
4 | Subject: [PATCH] sip: Conditionally use GetAssertStackTrace under | 4 | Subject: [PATCH] sip: Conditionally use GetAssertStackTrace under |
@@ -15,7 +15,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
15 | 1 file changed, 4 insertions(+) | 15 | 1 file changed, 4 insertions(+) |
16 | 16 | ||
17 | diff --git a/sip/cpp/sip_corewxAppTraits.cpp b/sip/cpp/sip_corewxAppTraits.cpp | 17 | diff --git a/sip/cpp/sip_corewxAppTraits.cpp b/sip/cpp/sip_corewxAppTraits.cpp |
18 | index 9c9f9d5b..1d2d2f90 100644 | 18 | index 9a9a4a66..a54e7659 100644 |
19 | --- a/sip/cpp/sip_corewxAppTraits.cpp | 19 | --- a/sip/cpp/sip_corewxAppTraits.cpp |
20 | +++ b/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 | 21 | @@ -471,7 +471,11 @@ static PyObject *meth_wxAppTraits_GetAssertStackTrace(PyObject *sipSelf, PyObjec |
@@ -23,7 +23,7 @@ index 9c9f9d5b..1d2d2f90 100644 | |||
23 | 23 | ||
24 | Py_BEGIN_ALLOW_THREADS | 24 | Py_BEGIN_ALLOW_THREADS |
25 | +#if wxUSE_STACKWALKER | 25 | +#if wxUSE_STACKWALKER |
26 | sipRes = new ::wxString((sipSelfWasArg ? sipCpp-> ::wxAppTraits::GetAssertStackTrace() : sipCpp->GetAssertStackTrace())); | 26 | sipRes = new ::wxString((sipSelfWasArg ? sipCpp->::wxAppTraits::GetAssertStackTrace() : sipCpp->GetAssertStackTrace())); |
27 | +#else | 27 | +#else |
28 | + sipRes = new ::wxString(""); | 28 | + sipRes = new ::wxString(""); |
29 | +#endif | 29 | +#endif |
diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/0001-sip-Fix-build-with-gcc-14.patch b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/0001-sip-Fix-build-with-gcc-14.patch deleted file mode 100644 index 4782e74ef3..0000000000 --- a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/0001-sip-Fix-build-with-gcc-14.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From 5234a454a1b9f11f83e59909fb2972176497e02c Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 9 May 2024 17:35:11 -0700 | ||
4 | Subject: [PATCH] sip: Fix build with gcc-14 | ||
5 | |||
6 | Fixes -Wincompatible-pointer-types | ||
7 | sip/siplib/siplib.c:3900:20: error: assignment to 'sipSimpleWrapper *' {aka 'struct _sipSimpleWrapper *'} from incompatible pointer type 'PyObject *' {aka 'struct _object *'} [-Wincompatible-pointer-types] | ||
8 | | 3900 | *selfp = va_arg(va, PyObject *); | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | sip/siplib/siplib.c | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/sip/siplib/siplib.c b/sip/siplib/siplib.c | ||
17 | index 95563e5c..ae3fac60 100644 | ||
18 | --- a/sip/siplib/siplib.c | ||
19 | +++ b/sip/siplib/siplib.c | ||
20 | @@ -3897,7 +3897,7 @@ static int parsePass1(PyObject **parseErrp, sipSimpleWrapper **selfp, | ||
21 | { | ||
22 | case '#': | ||
23 | /* A ctor has an argument with the /Transfer/ annotation. */ | ||
24 | - *selfp = va_arg(va, PyObject *); | ||
25 | + *selfp = (sipSimpleWrapper *)va_arg(va, PyObject *); | ||
26 | break; | ||
27 | |||
28 | case 'B': | ||
29 | -- | ||
30 | 2.45.0 | ||
31 | |||
diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/add-back-option-build-base.patch b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/add-back-option-build-base.patch index a46f3f870a..2622df24e2 100644 --- a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/add-back-option-build-base.patch +++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/add-back-option-build-base.patch | |||
@@ -1,4 +1,7 @@ | |||
1 | Add back default user options for cross build. | 1 | From bc08fddaf4b23073b2afbc045a26aedc4d2c6470 Mon Sep 17 00:00:00 2001 |
2 | From: Kai Kang <kai.kang@windriver.com> | ||
3 | Date: Wed, 30 Mar 2022 17:39:33 +0800 | ||
4 | Subject: [PATCH] Add back default user options for cross build. | ||
2 | 5 | ||
3 | Upstream-Status: Pending [oe specific] | 6 | Upstream-Status: Pending [oe specific] |
4 | 7 | ||
@@ -8,10 +11,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com> | |||
8 | 1 file changed, 1 insertion(+), 1 deletion(-) | 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
9 | 12 | ||
10 | diff --git a/setup.py b/setup.py | 13 | diff --git a/setup.py b/setup.py |
11 | index a215da7..dccfeb3 100644 | 14 | index 99ee6612..fad5aba8 100644 |
12 | --- a/setup.py | 15 | --- a/setup.py |
13 | +++ b/setup.py | 16 | +++ b/setup.py |
14 | @@ -105,7 +105,7 @@ class wx_build(orig_build): | 17 | @@ -111,7 +111,7 @@ class wx_build(orig_build): |
15 | Delegate to build.py for doing the actual build, (including wxWidgets) | 18 | Delegate to build.py for doing the actual build, (including wxWidgets) |
16 | instead of letting distutils do it all. | 19 | instead of letting distutils do it all. |
17 | """ | 20 | """ |
diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/not-overwrite-cflags-cxxflags.patch b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/not-overwrite-cflags-cxxflags.patch index 67f7949b38..3dc4cb1e79 100644 --- a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/not-overwrite-cflags-cxxflags.patch +++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/not-overwrite-cflags-cxxflags.patch | |||
@@ -1,4 +1,8 @@ | |||
1 | Not overwrite CFLAGS and CXXFLAGS. It also avoid buildpaths qa issue: | 1 | From 05189dc7063a7c238e38589cbaf92be256270e54 Mon Sep 17 00:00:00 2001 |
2 | From: Kai Kang <kai.kang@windriver.com> | ||
3 | Date: Wed, 23 Nov 2022 13:40:00 +0800 | ||
4 | Subject: [PATCH] Not overwrite CFLAGS and CXXFLAGS. It also avoid buildpaths | ||
5 | qa issue: | ||
2 | 6 | ||
3 | WARNING: python3-wxgtk4-4.2.0-r0 do_package_qa: QA Issue: File | 7 | WARNING: python3-wxgtk4-4.2.0-r0 do_package_qa: QA Issue: File |
4 | /usr/lib64/python3.11/site-packages/wx/.debug/_xml.cpython-311-aarch64-linux-gnu.so | 8 | /usr/lib64/python3.11/site-packages/wx/.debug/_xml.cpython-311-aarch64-linux-gnu.so |
@@ -12,10 +16,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com> | |||
12 | 1 file changed, 2 insertions(+), 2 deletions(-) | 16 | 1 file changed, 2 insertions(+), 2 deletions(-) |
13 | 17 | ||
14 | diff --git a/wscript b/wscript | 18 | diff --git a/wscript b/wscript |
15 | index 067b307..50d96d1 100644 | 19 | index 79bdf3e1..d6244d5e 100644 |
16 | --- a/wscript | 20 | --- a/wscript |
17 | +++ b/wscript | 21 | +++ b/wscript |
18 | @@ -195,8 +195,8 @@ def configure(conf): | 22 | @@ -188,8 +188,8 @@ def configure(conf): |
19 | cfg.finishSetup(conf.env.wx_config, conf.env.debug, | 23 | cfg.finishSetup(conf.env.wx_config, conf.env.debug, |
20 | 'mingw32' if isWindows and not conf.env.use_msvc else None) | 24 | 'mingw32' if isWindows and not conf.env.use_msvc else None) |
21 | 25 | ||
diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/wxgtk-fixup-build-scripts.patch b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/wxgtk-fixup-build-scripts.patch index 0d65ebb598..09497133b0 100644 --- a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/wxgtk-fixup-build-scripts.patch +++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/wxgtk-fixup-build-scripts.patch | |||
@@ -1,4 +1,7 @@ | |||
1 | Fix issues in build scripts: | 1 | From 171df10f86be6defb9e317ac62df8a7b0389b901 Mon Sep 17 00:00:00 2001 |
2 | From: Kai Kang <kai.kang@windriver.com> | ||
3 | Date: Wed, 30 Mar 2022 17:39:33 +0800 | ||
4 | Subject: [PATCH] Fix issues in build scripts: | ||
2 | 5 | ||
3 | * remove hardcode lib path from buildtools/config.py which is not suitable for | 6 | * remove hardcode lib path from buildtools/config.py which is not suitable for |
4 | cross build | 7 | cross build |
@@ -15,10 +18,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com> | |||
15 | 2 files changed, 4 insertions(+), 4 deletions(-) | 18 | 2 files changed, 4 insertions(+), 4 deletions(-) |
16 | 19 | ||
17 | diff --git a/buildtools/config.py b/buildtools/config.py | 20 | diff --git a/buildtools/config.py b/buildtools/config.py |
18 | index c837e5d..d426005 100644 | 21 | index 94c216ec..b3ec3f2e 100644 |
19 | --- a/buildtools/config.py | 22 | --- a/buildtools/config.py |
20 | +++ b/buildtools/config.py | 23 | +++ b/buildtools/config.py |
21 | @@ -312,8 +312,8 @@ class Configuration(object): | 24 | @@ -336,8 +336,8 @@ class Configuration(object): |
22 | # wx-config doesn't output that for some reason. For now, just | 25 | # wx-config doesn't output that for some reason. For now, just |
23 | # add it unconditionally but we should really check if the lib is | 26 | # add it unconditionally but we should really check if the lib is |
24 | # really found there or wx-config should be fixed. | 27 | # really found there or wx-config should be fixed. |
@@ -30,10 +33,10 @@ index c837e5d..d426005 100644 | |||
30 | # Move the various -I, -D, etc. flags we got from the config scripts | 33 | # Move the various -I, -D, etc. flags we got from the config scripts |
31 | # into the distutils lists. | 34 | # into the distutils lists. |
32 | diff --git a/setup.py b/setup.py | 35 | diff --git a/setup.py b/setup.py |
33 | index 64bec4b..fb29253 100644 | 36 | index fad5aba8..eade737b 100644 |
34 | --- a/setup.py | 37 | --- a/setup.py |
35 | +++ b/setup.py | 38 | +++ b/setup.py |
36 | @@ -130,7 +130,7 @@ class wx_build(orig_build): | 39 | @@ -135,7 +135,7 @@ class wx_build(orig_build): |
37 | 'message and the wxWidgets and Phoenix build steps in the future.\n') | 40 | 'message and the wxWidgets and Phoenix build steps in the future.\n') |
38 | 41 | ||
39 | # Use the same Python that is running this script. | 42 | # Use the same Python that is running this script. |
@@ -42,7 +45,7 @@ index 64bec4b..fb29253 100644 | |||
42 | cmd = ' '.join(cmd) | 45 | cmd = ' '.join(cmd) |
43 | runcmd(cmd) | 46 | runcmd(cmd) |
44 | 47 | ||
45 | @@ -233,7 +233,7 @@ if haveWheel: | 48 | @@ -238,7 +238,7 @@ if haveWheel: |
46 | class wx_install(orig_install): | 49 | class wx_install(orig_install): |
47 | def finalize_options(self): | 50 | def finalize_options(self): |
48 | orig_install.finalize_options(self) | 51 | orig_install.finalize_options(self) |
diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.1.bb b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.2.bb index cc6b6cef67..dc57c864e4 100644 --- a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.1.bb +++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.2.bb | |||
@@ -1,24 +1,24 @@ | |||
1 | DESCRIPTION = "Python3 interface to the wxWidgets Cross-platform C++ GUI toolkit." | 1 | DESCRIPTION = "Python3 interface to the wxWidgets Cross-platform C++ GUI toolkit." |
2 | HOMEPAGE = "http://www.wxpython.org" | 2 | HOMEPAGE = "https://www.wxpython.org" |
3 | 3 | ||
4 | LICENSE = "LGPL-2.0-only & WXwindows" | 4 | LICENSE = "LGPL-2.0-only & WXwindows & BSD-2-Clause" |
5 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=bdabf9e11191e2b9d3b6aef5f338ec00" | 5 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=102f37a0d23aa258e59e4cc8b5380b35" |
6 | 6 | ||
7 | DEPENDS = "python3-attrdict3-native python3-six-native wxwidgets-native \ | 7 | DEPENDS = "python3-attrdict3-native python3-six-native wxwidgets-native \ |
8 | wxwidgets \ | 8 | wxwidgets \ |
9 | " | 9 | " |
10 | 10 | ||
11 | PYPI_PACKAGE = "wxPython" | 11 | PYPI_PACKAGE = "wxPython" |
12 | UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" | ||
12 | 13 | ||
13 | SRC_URI += "file://add-back-option-build-base.patch \ | 14 | SRC_URI += "file://add-back-option-build-base.patch \ |
14 | file://wxgtk-fixup-build-scripts.patch \ | 15 | file://wxgtk-fixup-build-scripts.patch \ |
15 | file://not-overwrite-cflags-cxxflags.patch \ | 16 | file://not-overwrite-cflags-cxxflags.patch \ |
16 | file://0001-sip-Conditionally-use-GetAssertStackTrace-under-USE_.patch \ | 17 | file://0001-sip-Conditionally-use-GetAssertStackTrace-under-USE_.patch \ |
17 | file://0001-sip-Fix-build-with-gcc-14.patch \ | ||
18 | " | 18 | " |
19 | SRC_URI[sha256sum] = "e48de211a6606bf072ec3fa778771d6b746c00b7f4b970eb58728ddf56d13d5c" | 19 | SRC_URI[sha256sum] = "5dbcb0650f67fdc2c5965795a255ffaa3d7b09fb149aa8da2d0d9aa44e38e2ba" |
20 | 20 | ||
21 | S = "${WORKDIR}/wxPython-${PV}" | 21 | S = "${UNPACKDIR}/wxPython-${PV}" |
22 | 22 | ||
23 | inherit pypi setuptools3 pkgconfig features_check | 23 | inherit pypi setuptools3 pkgconfig features_check |
24 | 24 | ||
@@ -36,4 +36,5 @@ RDEPENDS:${PN} = "\ | |||
36 | python3-pycairo \ | 36 | python3-pycairo \ |
37 | python3-six \ | 37 | python3-six \ |
38 | python3-xml \ | 38 | python3-xml \ |
39 | " | 39 | python3-cairocffi \ |
40 | " | ||