summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/add-back-option-build-base.patch22
-rw-r--r--meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/sip-fix-override-functions.patch35
-rw-r--r--meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/wxgtk-fixup-build-scripts.patch53
-rw-r--r--meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb32
4 files changed, 142 insertions, 0 deletions
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
new file mode 100644
index 0000000000..a46f3f870a
--- /dev/null
+++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/add-back-option-build-base.patch
@@ -0,0 +1,22 @@
1Add back default user options for cross build.
2
3Upstream-Status: Pending [oe specific]
4
5Signed-off-by: Kai Kang <kai.kang@windriver.com>
6---
7 setup.py | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10diff --git a/setup.py b/setup.py
11index a215da7..dccfeb3 100644
12--- a/setup.py
13+++ b/setup.py
14@@ -105,7 +105,7 @@ class wx_build(orig_build):
15 Delegate to build.py for doing the actual build, (including wxWidgets)
16 instead of letting distutils do it all.
17 """
18- user_options = [
19+ user_options = orig_build.user_options + [
20 ('skip-build', None, 'skip building the C/C++ code (assumes it has already been done)'),
21 ]
22 boolean_options = ['skip-build']
diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/sip-fix-override-functions.patch b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/sip-fix-override-functions.patch
new file mode 100644
index 0000000000..51b9a462b1
--- /dev/null
+++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/sip-fix-override-functions.patch
@@ -0,0 +1,35 @@
1It fails to compile with errors:
2
3| ../../../../sip/cpp/sip_gridwxGridEvent.cpp:35:9: error: 'int sipwxGridEvent::GetRow()'
4 marked 'override', but does not override
5| 35 | int GetRow() SIP_OVERRIDE;
6| | ^~~~~~
7| ../../../../sip/cpp/sip_gridwxGridEvent.cpp:36:9: error: 'int sipwxGridEvent::GetCol()'
8 marked 'override', but does not over ride
9| 36 | int GetCol() SIP_OVERRIDE;
10| | ^~~~~~
11
12Make these functions non-override.
13
14Upstream-Status: Pending
15
16Signed-off-by: Kai Kang <kai.kang@windriver.com>
17---
18 sip/cpp/sip_gridwxGridEvent.cpp | 4 ++--
19 1 file changed, 2 insertions(+), 2 deletions(-)
20
21diff --git a/sip/cpp/sip_gridwxGridEvent.cpp b/sip/cpp/sip_gridwxGridEvent.cpp
22index 0830b677..314aec94 100644
23--- a/sip/cpp/sip_gridwxGridEvent.cpp
24+++ b/sip/cpp/sip_gridwxGridEvent.cpp
25@@ -32,8 +32,8 @@ public:
26 * this class.
27 */
28 protected:
29- int GetRow() SIP_OVERRIDE;
30- int GetCol() SIP_OVERRIDE;
31+ int GetRow() ;
32+ int GetCol() ;
33 ::wxEvent* Clone() const SIP_OVERRIDE;
34 ::wxEventCategory GetEventCategory() const SIP_OVERRIDE;
35
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
new file mode 100644
index 0000000000..0d65ebb598
--- /dev/null
+++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/wxgtk-fixup-build-scripts.patch
@@ -0,0 +1,53 @@
1Fix issues in build scripts:
2
3* remove hardcode lib path from buildtools/config.py which is not suitable for
4 cross build
5* only build target 'build_py' in setup.py
6* do not override self.install_lib with self.install_platlib which causes
7 package issue when multilib is enabled.
8
9Upstream-Status: Pending [cross build specific]
10
11Signed-off-by: Kai Kang <kai.kang@windriver.com>
12---
13 buildtools/config.py | 4 ++--
14 setup.py | 4 ++--
15 2 files changed, 4 insertions(+), 4 deletions(-)
16
17diff --git a/buildtools/config.py b/buildtools/config.py
18index c837e5d..d426005 100644
19--- a/buildtools/config.py
20+++ b/buildtools/config.py
21@@ -312,8 +312,8 @@ class Configuration(object):
22 # 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
24 # really found there or wx-config should be fixed.
25- if self.WXPORT != 'msw':
26- self.libdirs.append("/usr/X11R6/lib")
27+ #if self.WXPORT != 'msw':
28+ # self.libdirs.append("/usr/X11R6/lib")
29
30 # Move the various -I, -D, etc. flags we got from the config scripts
31 # into the distutils lists.
32diff --git a/setup.py b/setup.py
33index 64bec4b..fb29253 100644
34--- a/setup.py
35+++ b/setup.py
36@@ -130,7 +130,7 @@ class wx_build(orig_build):
37 'message and the wxWidgets and Phoenix build steps in the future.\n')
38
39 # Use the same Python that is running this script.
40- cmd = ['"{}"'.format(sys.executable), '-u', 'build.py', 'build']
41+ cmd = ['"{}"'.format(sys.executable), '-u', 'build.py', 'build_py']
42 cmd = ' '.join(cmd)
43 runcmd(cmd)
44
45@@ -233,7 +233,7 @@ if haveWheel:
46 class wx_install(orig_install):
47 def finalize_options(self):
48 orig_install.finalize_options(self)
49- self.install_lib = self.install_platlib
50+ #self.install_lib = self.install_platlib
51
52 def run(self):
53 self.run_command("build")
diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb
new file mode 100644
index 0000000000..af7b51d83b
--- /dev/null
+++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb
@@ -0,0 +1,32 @@
1DESCRIPTION = "Python3 interface to the wxWidgets Cross-platform C++ GUI toolkit."
2HOMEPAGE = "http://www.wxpython.org"
3
4LICENSE = "WXwindows"
5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fce1d18e2d633d41786c0a8dfbc80917"
6
7DEPENDS = "wxwidgets-native wxwidgets"
8
9PYPI_PACKAGE = "wxPython"
10
11SRC_URI += "file://add-back-option-build-base.patch \
12 file://wxgtk-fixup-build-scripts.patch \
13 file://sip-fix-override-functions.patch \
14 "
15SRC_URI[sha256sum] = "00e5e3180ac7f2852f342ad341d57c44e7e4326de0b550b9a5c4a8361b6c3528"
16
17S = "${WORKDIR}/wxPython-${PV}"
18
19inherit pypi setuptools3 pkgconfig
20
21export WX_CONFIG = "${RECIPE_SYSROOT_NATIVE}${bindir}/wx-config"
22
23RDEPENDS:${PN} = "\
24 python3-difflib \
25 python3-image \
26 python3-numpy \
27 python3-pillow \
28 python3-pprint \
29 python3-pycairo \
30 python3-six \
31 python3-xml \
32"