Commit Graph

15 Commits

Author SHA1 Message Date
Derek Straka
c089690f57
python3-*: Update recipes to correctly check the upstream packages
With the upstream check migrated to the simple repo API, a number of the
recipes required updates to:
1. Remove outdated UPSTREAM_CHECK_REGEX checks
2. Add recipe specific UPSTREAM_CHECK_PYPI_PACKAGE definitions for
   packages that use '_', CamelCase, or other deviations from PEP625 in
   the source archive

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-12-19 09:41:21 -08:00
Alexander Kanavin
a01270e642
python3-wxgtk4: update 4.2.1 -> 4.2.2
This addresses python 3.13 issues.

License-Update: added bsd-2-clause to LICENSE.txt

Drop 0001-sip-Fix-build-with-gcc-14.patch as already fixed upstream.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-16 14:07:30 -07:00
Khem Raj
e47585ffc8
python3-wxgtk4: Fix build with gcc-14
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-12 08:43:19 -07:00
Khem Raj
039ed44201 python3-wxgtk4: upgrade 4.2.0 -> 4.2.1
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-11-06 08:47:42 -08:00
Khem Raj
85323a3b5c python3-wxgtk4: Do not use GetAssertStackTrace with USE_STACKWALKER disabled
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-27 09:55:19 -08:00
Kai Kang
bd4f8ed7c2 python3-wxgtk4: replace deprecated inspect.getargspec
Backport patch to replace deprecated inspect.getargspec in lib pubsub.

And add python3-pip to RDEPENDS which is required by utils wxdemo,
wxdocs and wxget provided by python3-wxgtk4.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-05 18:02:40 -08:00
Kai Kang
e3d9829968 python3-wxgtk4: 4.1.1 -> 4.2.0
Upgrade python3-wxgtk4 from 4.1.1 to 4.2.0:

* fix licence according to LICENSE.txt that it is licenced under
  LGPL-2.0, and WXwindows is used for documents
* remove backported patches
* not overwrite CFLAGS and CXXFLAGS in file wscript

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-11-23 08:25:30 -08:00
Alexander Kanavin
f2eff02962 python3-wxgtk4: skip the recipe
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-27 08:55:20 -07:00
Kai Kang
8246a9cef2 python3-wxgtk4: backport patch to fix svg issue
Backport patch to fix import svg issue:

| $ python3 -c 'from wx.svg import SVGimage'
|
| ImportError: /usr/lib64/python3.10/site-packages/wx/svg/_nanosvg.cpython-310-x86_64-linux-gnu.so:
    undefined symbol: _PyGen_Send

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-15 22:27:38 -07:00
Khem Raj
e347168b10 python3-wxgtk4: Needs x11 for sip module
sip/cpp/sip_corewxWindow.cpp requires gdk/gdkx.h which wont be built
when gtk is built without x11, therefore require x11 when building this
recipe, if gdkx.h is removed form includes then it fails

../../../../sip/cpp/sip_corewxWindow.cpp:56:16: error: unknown type name 'XID'
        static XID GetXWindow(const wxWindow* wxwin) {
               ^
../../../../sip/cpp/sip_corewxWindow.cpp:59:28: error: use of undeclared identifier 'GDK_WINDOW_XID'
                    return GDK_WINDOW_XID(gtk_widget_get_window((wxwin)->m_wxwindow));
                           ^
../../../../sip/cpp/sip_corewxWindow.cpp:64:28: error: use of undeclared identifier 'GDK_WINDOW_XID'
                    return GDK_WINDOW_XID(gtk_widget_get_window((wxwin)->m_widget));
                           ^
so it is using it and will need some work to get it going without x11
until then disable building it on non-x11 distros

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Robert Yang <liezhi.yang@windriver.com>
2022-05-02 14:12:13 -07:00
Robert Yang
46612115db python3-wxgtk4: Require DISTRO_FEATURES as gtk3
It can't be built without gtk3:
No package 'gtk+-3.0' found

So make it have the same DISTRO_FEATURES as gtk3. It may also support gtk2, but
it depends on wxwidgets which doesn't support gtk2, so we don't have to
consider that.

And python3-wxgtk4 doesn't have PACKAGECONFIG, so remove the checking for
PACKAGECONFIG.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2022-04-11 09:22:30 -04:00
Kai Kang
b924bc52ca python3-wxgtk4: pass '--baselib' to WX_CONFIG
Pass option '--baselib=${baselib}' to WX_CONFIG to support multilib
build.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2022-04-11 09:22:30 -04:00
Davide Gardenal
b1645981ff python3-wxgtk4: add distro feature check to match dependency
Add REQUIRED_DISTRO_FEATURE to match wxwidgets,
this fix build error (not buildable target) when x11 is not supported

Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2022-04-06 14:55:16 -04:00
Khem Raj
f36fe239ad python3-wxgtk4: Use cross prefix with native wx-config
This ensures that it relocates the returns of queries w.r.t. target
sysroot and not based on native sysroot where this tool itself resides
and uses that by default. Fixes build issues seen on mips architecture

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Kai Kang <kai.kang@windriver.com>
2022-03-30 18:00:02 -07:00
Kai Kang
6eb78d932f python3-wxgtk4: add recipe
Add recipe for python3-wxgtk4 which is a python3 interface to the
wxWidgets Cross-platform C++ GUI toolkit.

Add patches to
* add back build options for oe
* fixup build scripts for cross compile
* fix sip oevrride functions compile errors

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-30 07:51:38 -07:00