[packages/wxWidgets] up to 3.2.3

atler atler at pld-linux.org
Fri Oct 13 00:06:41 CEST 2023


commit 1cbcdb2a73dece6c57ac0abe5d3c31c8eb295142
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Oct 13 00:06:21 2023 +0200

    up to 3.2.3

 os-release.patch    |  77 ------------------------
 webkit2gtk4.1.patch | 164 ----------------------------------------------------
 wxWidgets.spec      |  13 ++---
 3 files changed, 6 insertions(+), 248 deletions(-)
---
diff --git a/wxWidgets.spec b/wxWidgets.spec
index 3e90450..60b29fb 100644
--- a/wxWidgets.spec
+++ b/wxWidgets.spec
@@ -15,19 +15,17 @@ Summary:	wxWidgets library
 Summary(pl.UTF-8):	Biblioteka wxWidgets
 Name:		wxWidgets
 %define	majver	3.2
-Version:	3.2.2.1
-Release:	2
+Version:	3.2.3
+Release:	1
 License:	wxWindows Library Licence 3.1 (LGPL v2+ with exception)
 Group:		X11/Libraries
 #Source0Download: https://github.com/wxWidgets/wxWidgets/releases
 Source0:	https://github.com/wxWidgets/wxWidgets/releases/download/v%{version}/%{name}-%{version}.tar.bz2
-# Source0-md5:	45bd5f56a06e7c4ca7caf6c0b4d5d506
+# Source0-md5:	621a67681e96147194d752db12d7f24d
 Patch0:		%{name}-samples.patch
 Patch1:		%{name}-ac.patch
 Patch2:		%{name}-gifdelay.patch
 Patch3:		relax-abicheck.patch
-Patch4:		os-release.patch
-Patch5:		webkit2gtk4.1.patch
 URL:		https://www.wxWidgets.org/
 %{?with_directfb:BuildRequires:	DirectFB-devel >= 0.9.23}
 %{?with_gtk3:BuildRequires:	EGL-devel >= 1.5}
@@ -84,6 +82,9 @@ BuildRequires:	xorg-lib-libXinerama-devel
 BuildRequires:	xorg-lib-libXt-devel
 BuildRequires:	xorg-lib-libXxf86vm-devel
 %endif
+%if %{with gtk2} || %{with gtk3}
+BuildRequires:	xorg-lib-libxkbcommon-devel
+%endif
 BuildRequires:	xz-devel
 BuildRequires:	zlib-devel >= 1.1.4
 # these are not supported by wxWidgets
@@ -923,8 +924,6 @@ obsługą UNICODE.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%patch4 -p1
-%patch5 -p1
 
 %{__rm} build/aclocal/bakefile*.m4
 
diff --git a/os-release.patch b/os-release.patch
deleted file mode 100644
index 3a0456f..0000000
--- a/os-release.patch
+++ /dev/null
@@ -1,77 +0,0 @@
-From 1b0c5d63f6269afa46d121c28160a339da5dd5b7 Mon Sep 17 00:00:00 2001
-From: Scott Talbert <swt at techie.net>
-Date: Fri, 14 Jul 2023 11:45:19 -0400
-Subject: [PATCH] Read Linux distribution info from os-release file
-
-The Linux distribution community has somewhat deprecated the lsb_release
-utility and has standardized on a new file, os-release, that can be
-simply parsed to get the same information.  Attempt to read this file in
-/etc/os-release, then /usr/lib/os-release, and finally, fall back to
-using the lsb_release utility if neither of those files are found.
-
-See: https://www.freedesktop.org/software/systemd/man/os-release.html
-Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2184391
-
-See #23712.
-
-(cherry picked from commit aef7df6c9f44f751d97f4f6519ae6e5c3b81019d)
----
- docs/changes.txt      |  1 +
- src/unix/utilsunx.cpp | 30 ++++++++++++++++++++++++++++++
- 2 files changed, 31 insertions(+)
-
-diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp
-index ac5181e187f3..302aaa25b8f5 100644
---- a/src/unix/utilsunx.cpp
-+++ b/src/unix/utilsunx.cpp
-@@ -62,6 +62,8 @@
- #include "wx/evtloop.h"
- #include "wx/mstream.h"
- #include "wx/private/fdioeventloopsourcehandler.h"
-+#include "wx/config.h"
-+#include "wx/filename.h"
- 
- #include <pwd.h>
- #include <sys/wait.h>       // waitpid()
-@@ -1147,6 +1149,23 @@ wxString wxGetNativeCpuArchitectureName()
- 
- #ifdef __LINUX__
- 
-+static bool
-+wxGetValuesFromOSRelease(const wxString& filename, wxLinuxDistributionInfo& ret)
-+{
-+    if ( !wxFileName::Exists(filename) )
-+    {
-+        return false;
-+    }
-+
-+    wxFileConfig fc(wxEmptyString, wxEmptyString, wxEmptyString, filename);
-+    ret.Id = fc.Read(wxS("ID"), wxEmptyString).Capitalize();
-+    ret.Description = fc.Read(wxS("PRETTY_NAME"), wxEmptyString);
-+    ret.Release = fc.Read(wxS("VERSION_ID"), wxEmptyString);
-+    ret.CodeName = fc.Read(wxS("VERSION_CODENAME"), wxEmptyString);
-+
-+    return true;
-+}
-+
- static bool
- wxGetValueFromLSBRelease(const wxString& arg, const wxString& lhs, wxString* rhs)
- {
-@@ -1161,6 +1180,17 @@ wxLinuxDistributionInfo wxGetLinuxDistributionInfo()
- {
-     wxLinuxDistributionInfo ret;
- 
-+    // Read /etc/os-release and fall back to /usr/lib/os-release per below
-+    // https://www.freedesktop.org/software/systemd/man/os-release.html
-+    if ( wxGetValuesFromOSRelease(wxS("/etc/os-release"), ret) )
-+    {
-+        return ret;
-+    }
-+    if ( wxGetValuesFromOSRelease(wxS("/usr/lib/os-release"), ret) )
-+    {
-+        return ret;
-+    }
-+
-     if ( !wxGetValueFromLSBRelease(wxS("--id"), wxS("Distributor ID:\t"),
-                                    &ret.Id) )
-     {
diff --git a/webkit2gtk4.1.patch b/webkit2gtk4.1.patch
deleted file mode 100644
index 1fe2cd1..0000000
--- a/webkit2gtk4.1.patch
+++ /dev/null
@@ -1,164 +0,0 @@
-From df46add1165314bce93d70e611ddc453561ffb60 Mon Sep 17 00:00:00 2001
-From: Scott Talbert <swt at techie.net>
-Date: Mon, 12 Jun 2023 20:28:35 -0400
-Subject: [PATCH] Add support for building WebView with libwebkit2gtk-4.1
-
-libwebkit2gtk-4.1 has the same API as libwebkit2gtk-4.0, except that the
-former links with libsoup-3.0 and the latter links with libsoup-2.4.
-
-Fixes #23630.
-
-(cherry picked from commit 1b8664426603376b68f8ca3c54de97ec630e5940)
----
- build/cmake/init.cmake                | 10 ++-
- build/cmake/modules/FindLIBSOUP.cmake | 14 +++-
- build/cmake/modules/FindWEBKIT2.cmake |  5 +-
- configure                             | 95 +++++++++++++++++++++++++--
- configure.in                          | 16 ++++-
- src/gtk/webview_webkit2.cpp           |  4 ++
- 6 files changed, 129 insertions(+), 15 deletions(-)
-
-diff --git a/build/cmake/init.cmake b/build/cmake/init.cmake
-index fc206cf2e03a..5d88a7e487cc 100644
---- a/build/cmake/init.cmake
-+++ b/build/cmake/init.cmake
-@@ -453,15 +453,21 @@ if(wxUSE_GUI)
-     if(wxUSE_WEBVIEW)
-         if(WXGTK)
-             if(wxUSE_WEBVIEW_WEBKIT)
--                find_package(LIBSOUP)
-+                set(WEBKIT_LIBSOUP_VERSION 2.4)
-                 if(WXGTK2)
-                     find_package(WEBKIT 1.0)
-                 elseif(WXGTK3)
--                    find_package(WEBKIT2)
-+                    find_package(WEBKIT2 4.1 QUIET)
-+                    if(WEBKIT2_FOUND)
-+                        set(WEBKIT_LIBSOUP_VERSION 3.0)
-+                    else()
-+                        find_package(WEBKIT2 4.0)
-+                    endif()
-                     if(NOT WEBKIT2_FOUND)
-                         find_package(WEBKIT 3.0)
-                     endif()
-                 endif()
-+                find_package(LIBSOUP ${WEBKIT_LIBSOUP_VERSION})
-             endif()
-             set(wxUSE_WEBVIEW_WEBKIT OFF)
-             set(wxUSE_WEBVIEW_WEBKIT2 OFF)
-diff --git a/build/cmake/modules/FindLIBSOUP.cmake b/build/cmake/modules/FindLIBSOUP.cmake
-index cbfba1cf9366..2433d141eaf7 100644
---- a/build/cmake/modules/FindLIBSOUP.cmake
-+++ b/build/cmake/modules/FindLIBSOUP.cmake
-@@ -31,19 +31,27 @@
- # LibSoup does not provide an easy way to retrieve its version other than its
- # .pc file, so we need to rely on PC_LIBSOUP_VERSION and REQUIRE the .pc file
- # to be found.
-+SET(LIBSOUP_VERSION 2.4)
-+if(DEFINED LIBSOUP_FIND_VERSION)
-+    SET(LIBSOUP_VERSION ${LIBSOUP_FIND_VERSION})
-+endif()
-+
-+set(LIBSOUP_INCLUDE_DIRS LIBSOUP_INCLUDE_DIRS-NOTFOUND)
-+set(LIBSOUP_LIBRARIES LIBSOUP_LIBRARIES-NOTFOUND)
-+
- FIND_PACKAGE(PkgConfig)
--PKG_CHECK_MODULES(PC_LIBSOUP QUIET libsoup-2.4)
-+PKG_CHECK_MODULES(PC_LIBSOUP QUIET libsoup-${LIBSOUP_VERSION})
- 
- if(PC_LIBSOUP_FOUND)
-     FIND_PATH(LIBSOUP_INCLUDE_DIRS
-         NAMES libsoup/soup.h
-         HINTS ${PC_LIBSOUP_INCLUDEDIR}
-         ${PC_LIBSOUP_INCLUDE_DIRS}
--        PATH_SUFFIXES libsoup-2.4
-+        PATH_SUFFIXES libsoup-${LIBSOUP_VERSION}
-         )
- 
-     FIND_LIBRARY(LIBSOUP_LIBRARIES
--        NAMES soup-2.4
-+        NAMES soup-${LIBSOUP_VERSION}
-         HINTS ${PC_LIBSOUP_LIBDIR}
-         ${PC_LIBSOUP_LIBRARY_DIRS}
-         )
-diff --git a/build/cmake/modules/FindWEBKIT2.cmake b/build/cmake/modules/FindWEBKIT2.cmake
-index 133e7a4563ea..e39077ac4a71 100644
---- a/build/cmake/modules/FindWEBKIT2.cmake
-+++ b/build/cmake/modules/FindWEBKIT2.cmake
-@@ -5,7 +5,10 @@
- #  WEBKIT2_LIBRARIES   - List of libraries when using Webkit2.
- #  WEBKIT2_FOUND       - True if Webkit2 found.
- 
--SET( WEBKIT2_VERSION 4.0)
-+SET(WEBKIT2_VERSION 4.0)
-+if(DEFINED WEBKIT2_FIND_VERSION)
-+    SET(WEBKIT2_VERSION ${WEBKIT2_FIND_VERSION})
-+endif()
- 
- set(WEBKIT2_INCLUDE_DIR WEBKIT2_INCLUDE_DIR-NOTFOUND)
- set(WEBKIT2_LIBRARY WEBKIT2_LIBRARY-NOTFOUND)
-diff --git a/configure.in b/configure.in
-index 957be8dda34c..257c95a6009b 100644
---- a/configure.in
-+++ b/configure.in
-@@ -7529,15 +7529,27 @@ if test "$wxUSE_WEBVIEW" = "yes"; then
-         if test "$wxUSE_GTK" = 1; then
-             if test "$WXGTK3" = 1; then
-                 PKG_CHECK_MODULES([WEBKIT],
--                                  [webkit2gtk-4.0],
-+                                  [webkit2gtk-4.1],
-                                   [
-                                     USE_WEBVIEW_WEBKIT2=1
-                                     CXXFLAGS="$CXXFLAGS $WEBKIT_CFLAGS"
-                                     EXTRALIBS_WEBVIEW="$WEBKIT_LIBS"
-                                   ],
-                                   [
--                                    AC_MSG_WARN([webkit2gtk not found, falling back to webkitgtk])
-+                                    AC_MSG_WARN([webkit2gtk-4.1 not found, falling back to webkit2gtk-4.0])
-                                   ])
-+                if test "$USE_WEBVIEW_WEBKIT2" = 0; then
-+                    PKG_CHECK_MODULES([WEBKIT],
-+                                      [webkit2gtk-4.0],
-+                                      [
-+                                        USE_WEBVIEW_WEBKIT2=1
-+                                        CXXFLAGS="$CXXFLAGS $WEBKIT_CFLAGS"
-+                                        EXTRALIBS_WEBVIEW="$WEBKIT_LIBS"
-+                                      ],
-+                                      [
-+                                        AC_MSG_WARN([webkit2gtk-4.0 not found, falling back to webkitgtk])
-+                                      ])
-+                fi
-             fi
-             if test "$USE_WEBVIEW_WEBKIT2" = 0; then
-                 webkitgtk=webkit-1.0
-diff --git a/src/gtk/webview_webkit2.cpp b/src/gtk/webview_webkit2.cpp
-index 191cbcf2cc18..87a9bd5ad3a8 100644
---- a/src/gtk/webview_webkit2.cpp
-+++ b/src/gtk/webview_webkit2.cpp
-@@ -173,15 +173,18 @@ wxgtk_webview_webkit_load_failed(WebKitWebView *,
-     {
-         switch (error->code)
-         {
-+#if SOUP_MAJOR_VERSION < 3
-             case SOUP_STATUS_CANCELLED:
-                 type = wxWEBVIEW_NAV_ERR_USER_CANCELLED;
-                 break;
- 
-             case SOUP_STATUS_CANT_RESOLVE:
-+#endif
-             case SOUP_STATUS_NOT_FOUND:
-                 type = wxWEBVIEW_NAV_ERR_NOT_FOUND;
-                 break;
- 
-+#if SOUP_MAJOR_VERSION < 3
-             case SOUP_STATUS_CANT_RESOLVE_PROXY:
-             case SOUP_STATUS_CANT_CONNECT:
-             case SOUP_STATUS_CANT_CONNECT_PROXY:
-@@ -193,6 +196,7 @@ wxgtk_webview_webkit_load_failed(WebKitWebView *,
-             case SOUP_STATUS_MALFORMED:
-                 type = wxWEBVIEW_NAV_ERR_REQUEST;
-                 break;
-+#endif
- 
-             case SOUP_STATUS_BAD_REQUEST:
-                 type = wxWEBVIEW_NAV_ERR_REQUEST;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wxWidgets.git/commitdiff/1cbcdb2a73dece6c57ac0abe5d3c31c8eb295142



More information about the pld-cvs-commit mailing list