From 091834ce217aba92819069929008d80cf97d9a9a1ad336f1d0ecd78443e855de Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 13 Jun 2018 03:44:24 +0000 Subject: [PATCH] Accepting request 616403 from home:TheBlackCat:branches:X11:wxWidgets - Add fix_no_return_in_nonvoid.patch Fix lack of return in non-void function issue in generated sip bindings. OBS-URL: https://build.opensuse.org/request/show/616403 OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=5 --- fix_no_return_in_nonvoid.patch | 20 ++++++++++++++++++++ python-wxPython.changes | 7 +++++++ python-wxPython.spec | 4 ++++ 3 files changed, 31 insertions(+) create mode 100644 fix_no_return_in_nonvoid.patch diff --git a/fix_no_return_in_nonvoid.patch b/fix_no_return_in_nonvoid.patch new file mode 100644 index 0000000..45a5a26 --- /dev/null +++ b/fix_no_return_in_nonvoid.patch @@ -0,0 +1,20 @@ +diff -U 3 -H -w -E -d -r -x .osc -- a/sip/cpp/sip_corewxTextCtrl.cpp b/sip/cpp/sip_corewxTextCtrl.cpp +--- a/sip/cpp/sip_corewxTextCtrl.cpp ++++ b/sip/cpp/sip_corewxTextCtrl.cpp +@@ -55,12 +55,16 @@ + { + #ifdef __WXMSW__ + return self->ShowNativeCaret(show); ++ #else ++ return false; + #endif + } + bool _wxTextCtrl_HideNativeCaret(wxTextCtrl* self) + { + #ifdef __WXMSW__ + return self->HideNativeCaret(); ++ #else ++ return false; + #endif + } + void _wxTextCtrl_write(wxTextCtrl* self, const wxString* text) diff --git a/python-wxPython.changes b/python-wxPython.changes index b6d1f3f..f6d1126 100644 --- a/python-wxPython.changes +++ b/python-wxPython.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jun 13 03:42:38 UTC 2018 - toddrme2178@gmail.com + +- Add fix_no_return_in_nonvoid.patch + Fix lack of return in non-void function issue in generated sip + bindings. + ------------------------------------------------------------------- Mon Jun 4 09:11:22 UTC 2018 - petr@cervinka.net diff --git a/python-wxPython.spec b/python-wxPython.spec index 1caf38f..c0fb77b 100644 --- a/python-wxPython.spec +++ b/python-wxPython.spec @@ -35,6 +35,8 @@ Group: Development/Languages/Python URL: https://github.com/wxWidgets/Phoenix Source: https://files.pythonhosted.org/packages/source/w/wxPython/wxPython-%{version}.tar.gz Source1: python-wxPython-rpmlintrc +# PATCH-FIX-OPENSUSE fix_no_return_in_nonvoid.patch -- Fix lack of return in nonvoid functions +Patch0: fix_no_return_in_nonvoid.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} @@ -74,6 +76,7 @@ BuildRequires: %{python_module six} Conflicts: %{oldpython}-wxWidgets Provides: %{oldpython}-wxWidgets = %{version} %endif + %python_subpackages %description @@ -98,6 +101,7 @@ Provides translations to the package %{name}. %prep %setup -q -n wxPython-%{version} +%patch0 -p1 sed -i -e '/^#!\//, 1d' wx/py/*.py sed -i -e '/^#!\//, 1d' wx/tools/*.py sed -i -e '/^#!\//, 1d' wx/py/tests/*.py