Compare commits

...

4 Commits

Author SHA256 Message Date
2df551cde5 Use webkit2gtk-4.1 2024-10-07 16:16:27 +02:00
Markéta Calábková
241650b413 add patch doxygen111.patch 2024-10-01 13:55:03 +02:00
071d574776 wxWidgets 3.2.6 2024-09-09 18:47:10 +02:00
Christian Boltz
96fa1f9078 Add textfiletest-fix-file-exists.diff (s390 build fix) 2024-08-21 08:49:31 +02:00
7 changed files with 157 additions and 55 deletions

48
doxygen111.patch Normal file
View File

@ -0,0 +1,48 @@
From 2d79dfc7a2a8dd42021ff0ea3dcc8ed05f7c23ef Mon Sep 17 00:00:00 2001
From: Scott Talbert <swt@techie.net>
Date: Mon, 16 Sep 2024 22:38:13 -0400
Subject: [PATCH] Fix docs generation for datetime with doxygen 1.11.0
References: https://github.com/wxWidgets/wxWidgets/pull/24814
It seems that as of the below commit, doxygen changed its handling of
parsing backticks in comments such that it now fails to properly
generate documentation for the entire datetime.h file. Fix this by
closing the open backtick.
Also update the actual, non-documentation, header to match for
consistency, even if non-matching backticks are not a problem there.
See: https://github.com/doxygen/doxygen/commit/f18767307be20ca8d2ca81f74cc1f3446205282b
Closes #24814.
---
include/wx/datetime.h | 2 +-
interface/wx/datetime.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/wx/datetime.h b/include/wx/datetime.h
index 445c3dbb3929..55292f008408 100644
--- a/include/wx/datetime.h
+++ b/include/wx/datetime.h
@@ -149,7 +149,7 @@ class WXDLLIMPEXP_BASE wxDateTime
Local,
// zones from GMT (= Greenwich Mean Time): they're guaranteed to be
- // consequent numbers, so writing something like `GMT0 + offset' is
+ // consequent numbers, so writing something like `GMT0 + offset` is
// safe if abs(offset) <= 12
// underscore stands for minus
diff --git a/interface/wx/datetime.h b/interface/wx/datetime.h
index ea3df2323338..1a0222435565 100644
--- a/interface/wx/datetime.h
+++ b/interface/wx/datetime.h
@@ -96,7 +96,7 @@ class wxDateTime
///@{
/// zones from GMT (= Greenwich Mean Time): they're guaranteed to be
- /// consequent numbers, so writing something like `GMT0 + offset' is
+ /// consequent numbers, so writing something like `GMT0 + offset` is
/// safe if abs(offset) <= 12
// underscore stands for minus

View File

@ -1,26 +1,31 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2014-11-07 10:41:58.650412802 +0100
Because it is so easy to change the ABI with just one configure option,
explicitly mark our build with a vendor tag.
(We do the same in windows:mingw: where this issue is even more pressing.)
https://github.com/wxWidgets/wxWidgets/releases/tag/v3.2.6 claims
it's ABI compatible with 3.2.5, but then you see virtual function
changes...
In addition, because wxWidgets changes the ABI midway (for example,
did so between 3.0.1 and 3.0.2) without changing the SONAME, we have
to do it. As we have a vendor suffix, no filename conflicts can occur.
- virtual void SetupMouseEvent(wxMouseEvent &wxevent, NSEvent * nsEvent);
+
+ using MouseEvents = std::vector<wxMouseEvent>;
+ virtual MouseEvents TranslateMouseEvent(NSEvent * nsEvent);
One needs to look at the diff between versions. If in doubt, just
always bump, specifically(!) the SO major.
So their promise means nothing.
It is also possible for distributions to accidentally cause ABI
changes with the flick of a configure option (e.g. enable-stl), since
that can change the set of class bases, members or member function
signatures.
---
Makefile.in | 5 +++--
build/aclocal/bakefile.m4 | 3 +--
2 files changed, 4 insertions(+), 4 deletions(-)
Index: wxWidgets-3.2.5/Makefile.in
Index: wxWidgets-3.2.6/Makefile.in
===================================================================
--- wxWidgets-3.2.5.orig/Makefile.in
+++ wxWidgets-3.2.5/Makefile.in
--- wxWidgets-3.2.6.orig/Makefile.in
+++ wxWidgets-3.2.6/Makefile.in
@@ -2225,6 +2225,7 @@ LOCALE_LINGUAS = ca cs da de el es fi fr
@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@WXCOMPILER = _gcc
@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@WXCOMPILER \
@ -39,18 +44,18 @@ Index: wxWidgets-3.2.5/Makefile.in
COND_wxUSE_REGEX_builtin___wxregex___depname = \
$(LIBDIRNAME)/$(LIBPREFIX)wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)$(LIBEXT)
@@ -13982,7 +13983,7 @@ COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE
@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@ = .0.2.3.$(SO_SUFFIX)
@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@ = .0.3.0.$(SO_SUFFIX)
@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@dll___targetsuf3 = -0.$(SO_SUFFIX)
@COND_USE_SOVERSION_0@dll___targetsuf3 = .$(SO_SUFFIX)
-@COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1@dll___targetsuf3 = .$(SO_SUFFIX).0
+@COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1@dll___targetsuf3 = .$(SO_SUFFIX).11.0.0
+@COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1@dll___targetsuf3 = .$(SO_SUFFIX).12.0.0
@COND_TOOLKIT_MSW@__RCDEFDIR_p = --include-dir \
@COND_TOOLKIT_MSW@ $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
@COND_USE_GUI_1_wxUSE_LIBTIFF_builtin@__LIB_TIFF_p \
Index: wxWidgets-3.2.5/build/aclocal/bakefile.m4
Index: wxWidgets-3.2.6/build/aclocal/bakefile.m4
===================================================================
--- wxWidgets-3.2.5.orig/build/aclocal/bakefile.m4
+++ wxWidgets-3.2.5/build/aclocal/bakefile.m4
--- wxWidgets-3.2.6.orig/build/aclocal/bakefile.m4
+++ wxWidgets-3.2.6/build/aclocal/bakefile.m4
@@ -408,8 +408,7 @@ AC_DEFUN([AC_BAKEFILE_SHARED_VERSIONS],
SONAME_FLAG="-Wl,-soname,"
fi

View File

@ -0,0 +1,29 @@
https://github.com/wxWidgets/wxWidgets/pull/24768
From 2d943fd8f34816b3ad16b532132992a2523179e2 Mon Sep 17 00:00:00 2001
From: Christian Boltz <github-wxwidgets@cboltz.de>
Date: Tue, 20 Aug 2024 23:28:27 +0200
Subject: [PATCH] textfiletest: fix skip condition
... so that condition and skip message match.
As a side effect, it also prevents a test failure if /sys/power/state
doesn't exist.
---
tests/textfile/textfiletest.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/textfile/textfiletest.cpp b/tests/textfile/textfiletest.cpp
index 646d6818c90c..1a1347e85475 100644
--- a/tests/textfile/textfiletest.cpp
+++ b/tests/textfile/textfiletest.cpp
@@ -342,7 +342,7 @@ TEST_CASE("wxTextFile::Special", "[textfile][linux][special-file]")
SECTION("/sys")
{
- if ( wxFile::Exists("/sys/power/state") )
+ if ( !wxFile::Exists("/sys/power/state") )
{
WARN("/sys/power/state doesn't exist, skipping test");
return;

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0ad86a3ad3e2e519b6a705248fc9226e3a09bbf069c6c692a02acf7c2d1c6b51
size 27539152

BIN
wxWidgets-3.2.6.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,37 @@
-------------------------------------------------------------------
Mon Oct 7 14:14:45 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Use webkit2gtk-4.1 pkgconfig file instead of 4.0
-------------------------------------------------------------------
Tue Oct 1 09:33:13 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Add upstream doxygen111.patch to fix the docs with new doxygen
-------------------------------------------------------------------
Mon Sep 9 16:24:15 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 3.2.6
* Add wxTranslations::AddAvailableCatalog() overload with msgid
language
* Dark mode appearance fixes for wxActivityIndicator,
wxHyperlinkCtrl, etc.
* Improve wxWizard appearance in high DPI
* Fix wxPropertyGrid row height in high DPI
* Fix possible crash during drag-and-drop
* Fix wxListBox minimum size regression introduced in 3.2.5
* Fix wxBitmapComboBox bitmaps scaling in high DPI
* Allow positioning wxDialog at specified position, at least
under X11
* Fix incorrect handling of ligatures in wxStyledTextCtrl
* Fix using wrong keyboard layout in key events
-------------------------------------------------------------------
Tue Aug 20 19:05:50 UTC 2024 - Christian Boltz <suse-beta@cboltz.de>
- Add textfiletest-fix-file-exists.diff to fix a wrong skip
condition in the test (fixes the build on s390x)
-------------------------------------------------------------------
Thu May 16 13:40:01 UTC 2024 - Jan Engelhardt <jengelh@inai.de>

View File

@ -65,10 +65,10 @@ wxString and instead rely on the wxChar pointer API.
# At most one Name: line to not confuse quilt(1)
%define base_name wxWidgets-3_2
%define wx_minor 3.2
%define psonum 11_0_0
%define sonum 11.0.0
%define psonum 12_0_0
%define sonum 12.0.0
Name: %this_spec
Version: 3.2.5
Version: 3.2.6
Release: 0
Summary: C++ Library for Cross-Platform Development
License: LGPL-2.1-or-later WITH WxWindows-exception-3.1
@ -82,6 +82,8 @@ Source5: wxWidgets-3_2-rpmlintrc
Source6: wxpython-mkdiff.sh
Patch0: soversion.diff
Patch1: autoconf-2_72.diff
Patch2: textfiletest-fix-file-exists.diff
Patch3: doxygen111.patch
%if "%{flavor}" == "doc"
BuildRequires: doxygen
BuildRequires: fdupes
@ -107,7 +109,7 @@ BuildRequires: pkgconfig(gtk+-2.0)
%if "%toolkit" == "gtk3"
BuildRequires: pkgconfig(gtk+-3.0)
%if %{with webview}
BuildRequires: pkgconfig(webkit2gtk-4.0)
BuildRequires: pkgconfig(webkit2gtk-4.1)
%endif
%endif
%if "%toolkit" == "qt"
@ -466,38 +468,22 @@ export WX_TEST_WEBREQUEST_URL=0
# ./test_gui -l || true
%endif
%post -n libwx_baseu-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_baseu-%variant%psonum -p /sbin/ldconfig
%post -n libwx_baseu_net-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_baseu_net-%variant%psonum -p /sbin/ldconfig
%post -n libwx_baseu_xml-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_baseu_xml-%variant%psonum -p /sbin/ldconfig
%post -n libwx_%{toolkit}u_adv-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_%{toolkit}u_adv-%variant%psonum -p /sbin/ldconfig
%post -n libwx_%{toolkit}u_aui-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_%{toolkit}u_aui-%variant%psonum -p /sbin/ldconfig
%post -n libwx_%{toolkit}u_core-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_%{toolkit}u_core-%variant%psonum -p /sbin/ldconfig
%post -n libwx_%{toolkit}u_gl-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_%{toolkit}u_gl-%variant%psonum -p /sbin/ldconfig
%post -n libwx_%{toolkit}u_html-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_%{toolkit}u_html-%variant%psonum -p /sbin/ldconfig
%post -n libwx_%{toolkit}u_media-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_%{toolkit}u_media-%variant%psonum -p /sbin/ldconfig
%post -n libwx_%{toolkit}u_propgrid-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_%{toolkit}u_propgrid-%variant%psonum -p /sbin/ldconfig
%post -n libwx_%{toolkit}u_qa-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_%{toolkit}u_qa-%variant%psonum -p /sbin/ldconfig
%post -n libwx_%{toolkit}u_ribbon-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_%{toolkit}u_ribbon-%variant%psonum -p /sbin/ldconfig
%post -n libwx_%{toolkit}u_richtext-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_%{toolkit}u_richtext-%variant%psonum -p /sbin/ldconfig
%post -n libwx_%{toolkit}u_stc-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_%{toolkit}u_stc-%variant%psonum -p /sbin/ldconfig
%post -n libwx_%{toolkit}u_webview-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_%{toolkit}u_webview-%variant%psonum -p /sbin/ldconfig
%post -n libwx_%{toolkit}u_xrc-%variant%psonum -p /sbin/ldconfig
%postun -n libwx_%{toolkit}u_xrc-%variant%psonum -p /sbin/ldconfig
%ldconfig_scriptlets -n libwx_baseu-%variant%psonum
%ldconfig_scriptlets -n libwx_baseu_net-%variant%psonum
%ldconfig_scriptlets -n libwx_baseu_xml-%variant%psonum
%ldconfig_scriptlets -n libwx_%{toolkit}u_adv-%variant%psonum
%ldconfig_scriptlets -n libwx_%{toolkit}u_aui-%variant%psonum
%ldconfig_scriptlets -n libwx_%{toolkit}u_core-%variant%psonum
%ldconfig_scriptlets -n libwx_%{toolkit}u_gl-%variant%psonum
%ldconfig_scriptlets -n libwx_%{toolkit}u_html-%variant%psonum
%ldconfig_scriptlets -n libwx_%{toolkit}u_media-%variant%psonum
%ldconfig_scriptlets -n libwx_%{toolkit}u_propgrid-%variant%psonum
%ldconfig_scriptlets -n libwx_%{toolkit}u_qa-%variant%psonum
%ldconfig_scriptlets -n libwx_%{toolkit}u_ribbon-%variant%psonum
%ldconfig_scriptlets -n libwx_%{toolkit}u_richtext-%variant%psonum
%ldconfig_scriptlets -n libwx_%{toolkit}u_stc-%variant%psonum
%ldconfig_scriptlets -n libwx_%{toolkit}u_webview-%variant%psonum
%ldconfig_scriptlets -n libwx_%{toolkit}u_xrc-%variant%psonum
%if "%{flavor}" == "doc"
%files xml