[packages/wpe-webkit1.1] - updated to 2.54.3
qboosh
qboosh at pld-linux.org
Sun Nov 29 18:32:46 CET 2026
commit 6dba3d74fb0a7c935294b81cf5c73f10557978aa
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 29 18:32:54 2026 +0100
- updated to 2.54.3
max-bundle-size.patch | 11 ---
webkitgtk-serializers.patch | 209 -------------------------------------------
wpe-webkit-x32.patch | 10 +--
wpe-webkit1.1.spec | 185 ++++++++++++++++++++++----------------
wpewebkit-32bit.patch | 33 +++++++
wpewebkit-api1.1-fixes.patch | 20 -----
6 files changed, 145 insertions(+), 323 deletions(-)
---
diff --git a/wpe-webkit1.1.spec b/wpe-webkit1.1.spec
index 5abf56e..5cd6eb2 100644
--- a/wpe-webkit1.1.spec
+++ b/wpe-webkit1.1.spec
@@ -1,12 +1,13 @@
# TODO: review configure options:
# - FTL_JIT on !x86_64?
-# - WEB_RTC (experimental; BR: gstreamer-plugins-bad-devel (webrtc component) >= 1.20, openssl-devel)
+# - WEB_RTC (disabled by default in wpe port; BR: gstreamer-plugins-bad-devel (webrtc component) >= 1.20, openssl-devel)
# - WEB_RTC+MEDIA_STREAM (BR: openwebrtc)
# - ENABLE_ENCRYPTED_MEDIA, ENABLE_THUNDER (experimental; https://github.com/rdkcentral/Thunder)?
-# - ENABLE_WPE_PLATFORM? (BR: libinput-devel >= 1.19.0 wayland-devel >= 1.20 wayland-protocols >= 1.24 xorg-lib-libxkbcommon-devel >= 0.4.0 instead of libwpe; API 2.0 only)
-# - ENABLE_WPE_QT_API? (developer mode)
+# - ENABLE_WPE_QT_API? (developer mode; BR: Qt6Quick Qt6Test)
# - WEBDRIVER_BIDI (experimental)
# - ENABLE_WEBXR (experimental; BR: OpenXR >= 1.0.20)
+# - WK_WEB_EXTENSIONS (experimental)
+# - USE_VULKAN (experimental; BR: vulkan-volk)
#
# Conditional build:
%bcond_without api_1_1 # libWPEWebKit-1.1 (libsoup3 based) variant
@@ -19,19 +20,17 @@
Summary: Port of WebKit embeddable web component to WPE with HTTP/2 support
Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do WPE z obsługą HTTP/2
Name: wpe-webkit1.1
-# NOTE: 2.52.x is stable, 2.53.x devel
-Version: 2.52.4
+# NOTE: 2.54.x is stable, 2.55.x devel
+Version: 2.54.3
Release: 1
License: BSD-like
Group: X11/Libraries
Source0: https://wpewebkit.org/releases/wpewebkit-%{version}.tar.xz
-# Source0-md5: 77e544c3578000456de199fd4fa1c493
+# Source0-md5: 1ec13cd500cc6ae6ce60cbee4ef2ca4a
Patch0: wpe-webkit-x32.patch
-Patch1: wpewebkit-api1.1-fixes.patch
+Patch1: wpewebkit-32bit.patch
Patch2: wpe-webkit-driver-version-suffix.patch
Patch3: parallel-gir.patch
-Patch4: max-bundle-size.patch
-Patch5: webkitgtk-serializers.patch
URL: https://wpewebkit.org/
BuildRequires: /usr/bin/ld.gold
BuildRequires: EGL-devel
@@ -43,10 +42,11 @@ BuildRequires: bubblewrap >= 0.3.1
BuildRequires: cairo-devel >= 1.16.0
BuildRequires: cmake >= 3.20
BuildRequires: docbook-dtd412-xml
+BuildRequires: enchant2-devel >= 2
# or libspiel-devel with -DUSE_SPIEL=ON
BuildRequires: flite-devel >= 2.2
BuildRequires: fontconfig-devel >= 2.13.0
-BuildRequires: freetype-devel >= 1:2.9.0
+BuildRequires: freetype-devel >= 1:2.10.2
BuildRequires: gettext-tools
BuildRequires: gi-docgen
BuildRequires: glib2-devel >= 1:2.70.0
@@ -70,10 +70,10 @@ BuildRequires: libdrm-devel
BuildRequires: libepoxy-devel >= 1.5.4
BuildRequires: libgcrypt-devel >= 1.7.0
BuildRequires: libicu-devel >= 70.1
+%{?with_api_2_0:BuildRequires: libinput-devel >= 1.19.0}
BuildRequires: libjpeg-devel
BuildRequires: libjxl-devel >= 0.7.0
-# WPE_PLATFORM only
-#BuildRequires: libmanette-devel >= 0.2.4
+%{?with_api_2_0:BuildRequires: libmanette-devel >= 0.2.4}
BuildRequires: libpng-devel
BuildRequires: libseccomp-devel
BuildRequires: libsoup3-devel >= 3.0
@@ -81,52 +81,61 @@ BuildRequires: libsoup3-devel >= 3.0
BuildRequires: libstdc++-devel >= 6:12.2
BuildRequires: libtasn1-devel
BuildRequires: libwebp-devel
+# for legacy API
BuildRequires: libwpe-devel >= 1.14.0
BuildRequires: libxml2-devel >= 1:2.9.13
BuildRequires: libxslt-devel >= 1.1.13
+BuildRequires: ninja
BuildRequires: openjpeg2-devel >= 2.2.0
BuildRequires: perl-base >= 1:5.10.0
BuildRequires: pkgconfig
BuildRequires: python >= 1:2.7.0
BuildRequires: rpm-build >= 4.6
-BuildRequires: rpmbuild(macros) >= 1.699
+BuildRequires: rpmbuild(macros) >= 2.029
BuildRequires: ruby >= 1:2.5
BuildRequires: ruby-modules >= 1:2.5
%if "%{ruby_version}" >= "3.0"
-BuildRequires: ruby-getoptlong
+# ruby-getoptlong or ruby-bundled-gems
+BuildRequires: rubygem(getoptlong)
%endif
BuildRequires: sqlite3-devel >= 3
BuildRequires: systemd-devel
BuildRequires: tar >= 1:1.22
BuildRequires: udev-devel
BuildRequires: unifdef
+%if %{with api_2_0}
+BuildRequires: wayland-devel >= 1.20
+BuildRequires: wayland-protocols >= 1.24
+%endif
BuildRequires: wpebackend-fdo-devel >= 1.9.0
-BuildRequires: woff2-devel >= 1.0.2
BuildRequires: xdg-dbus-proxy
BuildRequires: xorg-lib-libxkbcommon-devel >= 0.4.0
BuildRequires: xz
BuildRequires: zlib-devel
-Requires: at-spi2-atk-libs >= 2.5.3
-Requires: atk >= 1:2.16.0
-Requires: cairo >= 1.16.0
-Requires: fontconfig-libs >= 2.13.0
-Requires: freetype >= 1:2.9.0
-Requires: glib2 >= 1:2.70.0
-Requires: gstreamer >= 1.2.3
-Requires: gstreamer-plugins-base >= 1.2.3
-Requires: harfbuzz >= 2.7.4
-Requires: libepoxy >= 1.5.4
-Requires: libgcrypt >= 1.7.0
-Requires: libjxl >= 0.7.0
-Requires: libsoup3 >= 3.0.0
-Requires: libwpe >= 1.14.0
-Requires: libxml2 >= 1:2.9.13
-Requires: libxslt >= 1.1.13
-Requires: openjpeg2 >= 2.2.0
-Requires: woff2 >= 1.0.2
-Requires: wpebackend-fdo >= 1.9.0
-# Source/JavaScriptCore/CMakeLists.txt /WTF_CPU_
-ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 hppa mips ppc ppc64 ppc64le s390 s390x sh4
+Requires: at-spi2-atk-libs%{?_isa} >= 2.5.3
+Requires: atk%{?_isa} >= 1:2.16.0
+Requires: cairo%{?_isa} >= 1.16.0
+Requires: fontconfig-libs%{?_isa} >= 2.13.0
+Requires: freetype%{?_isa} >= 1:2.10.2
+Requires: glib2%{?_isa} >= 1:2.70.0
+Requires: gstreamer%{?_isa} >= 1.2.3
+Requires: gstreamer-plugins-base%{?_isa} >= 1.2.3
+Requires: harfbuzz%{?_isa} >= 2.7.4
+Requires: libepoxy%{?_isa} >= 1.5.4
+Requires: libgcrypt%{?_isa} >= 1.7.0
+Requires: libjxl%{?_isa} >= 0.7.0
+Requires: libsoup3%{?_isa} >= 3.0.0
+Requires: libwpe%{?_isa} >= 1.14.0
+Requires: libxml2%{?_isa} >= 1:2.9.13
+Requires: libxslt%{?_isa} >= 1.1.13
+Requires: openjpeg2%{?_isa} >= 2.2.0
+Requires: wpebackend-fdo%{?_isa} >= 1.9.0
+%ifarch %{ix86}
+# requires SSE2 fp math
+Requires: cpuinfo(sse2)
+%endif
+# Source/cmake/WebKitCommon.cmake /WTF_CPU_
+ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 loongarch64 mips mips64 ppc ppc64 ppc64le riscv64
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -148,10 +157,10 @@ Summary: Development files for WebKit for WPE
Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla WPE
Group: X11/Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: glib2-devel >= 1:2.70.0
-Requires: libsoup3-devel >= 3.0.0
-Requires: libstdc++-devel >= 6:11.2
-Requires: libwpe-devel >= 1.14.0
+Requires: glib2-devel%{?_isa} >= 1:2.70.0
+Requires: libsoup3-devel%{?_isa} >= 3.0.0
+Requires: libstdc++-devel%{?_isa} >= 6:11.2
+Requires: libwpe-devel%{?_isa} >= 1.14.0
%description devel
Development files for WebKit for WPE with HTTP/2 support.
@@ -175,25 +184,31 @@ Dokumentacja API portu WebKitu do WPE z obsługą HTTP/2.
Summary: Port of WebKit embeddable web component to WPE with HTTP/2 support
Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do WPE z obsługą HTTP/2
Group: X11/Libraries
-Requires: at-spi2-atk-libs >= 2.5.3
-Requires: atk >= 1:2.16.0
-Requires: cairo >= 1.16.0
-Requires: fontconfig-libs >= 2.13.0
-Requires: freetype >= 1:2.9.0
-Requires: glib2 >= 1:2.70.0
-Requires: gstreamer >= 1.2.3
-Requires: gstreamer-plugins-base >= 1.2.3
-Requires: harfbuzz >= 2.7.4
-Requires: libepoxy >= 1.5.4
-Requires: libgcrypt >= 1.7.0
-Requires: libjxl >= 0.7.0
-Requires: libsoup3 >= 3.0.0
-Requires: libwpe >= 1.14.0
-Requires: libxml2 >= 1:2.9.13
-Requires: libxslt >= 1.1.13
-Requires: openjpeg2 >= 2.2.0
-Requires: woff2 >= 1.0.2
-Requires: wpebackend-fdo >= 1.9.0
+Requires: at-spi2-atk-libs%{?_isa} >= 2.5.3
+Requires: atk%{?_isa} >= 1:2.16.0
+Requires: cairo%{?_isa} >= 1.16.0
+Requires: fontconfig-libs%{?_isa} >= 2.13.0
+Requires: freetype%{?_isa} >= 1:2.10.2
+Requires: glib2%{?_isa} >= 1:2.70.0
+Requires: gstreamer%{?_isa} >= 1.2.3
+Requires: gstreamer-plugins-base%{?_isa} >= 1.2.3
+Requires: harfbuzz%{?_isa} >= 2.7.4
+Requires: libepoxy%{?_isa} >= 1.5.4
+Requires: libgcrypt%{?_isa} >= 1.7.0
+Requires: libinput%{?_isa} >= 1.19.0
+Requires: libjxl%{?_isa} >= 0.7.0
+Requires: libmanette%{?_isa} >= 0.2.4
+Requires: libsoup3%{?_isa} >= 3.0.0
+Requires: libwpe%{?_isa} >= 1.14.0
+Requires: libxml2%{?_isa} >= 1:2.9.13
+Requires: libxslt%{?_isa} >= 1.1.13
+Requires: openjpeg2%{?_isa} >= 2.2.0
+Requires: wayland%{?_isa} >= 1.20
+Requires: wpebackend-fdo%{?_isa} >= 1.9.0
+%ifarch %{ix86}
+# requires SSE2 fp math
+Requires: cpuinfo(sse2)
+%endif
%description -n wpe-webkit2
wpe-webkit2 is a port of the WebKit embeddable web component to WPE
@@ -213,11 +228,11 @@ urządzeń komputerowych wbudowanych oraz o niskim poborze energii.
Summary: Development files for WebKit for WPE with HTTP/2 support
Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla WPE z obsługą HTTP/2
Group: X11/Development/Libraries
-Requires: glib2-devel >= 1:2.70.0
-Requires: libsoup3-devel >= 3.0.0
-Requires: libstdc++-devel >= 6:11.2
-Requires: libwpe-devel >= 1.14.0
-Requires: wpe-webkit2 = %{version}-%{release}
+Requires: glib2-devel%{?_isa} >= 1:2.70.0
+Requires: libsoup3-devel%{?_isa} >= 3.0.0
+Requires: libstdc++-devel%{?_isa} >= 6:11.2
+Requires: libwpe-devel%{?_isa} >= 1.14.0
+Requires: wpe-webkit2%{?_isa} = %{version}-%{release}
%description -n wpe-webkit2-devel
Development files for WebKit for WPE with HTTP/2 support.
@@ -243,43 +258,41 @@ Dokumentacja API portu WebKitu do WPE z obsługą HTTP/2.
%patch -P1 -p1
%patch -P2 -p1
%patch -P3 -p1
-%patch -P4 -p1
-%patch -P5 -p1
%build
CXXFLAGS="%{rpmcxxflags} -DNDEBUG %{?with_lowmem:--param ggc-min-expand=20 --param ggc-min-heapsize=65536}"
for kind in %{?with_api_1_1:soup3-1.1} %{?with_api_2_0:soup3-2.0} ; do
# USE_SYSTEM_MALLOC=ON (default in 32-bit builds) is broken as of v2.52.4 (bmalloc_CopyHeaders referred unconditionally in Source/JavaScriptCore/CMakeLists.txt)
-%cmake -B build-${kind} \
+%cmake -B build-${kind} -GNinja \
-DENABLE_GEOLOCATION=ON \
-DENABLE_GTKDOC=ON \
+ -DENABLE_VIDEO=ON \
+ -DENABLE_WEB_AUDIO=ON \
+ -DENABLE_WEBGL=ON \
+ $([ "$kind" = "soup3-1.1" ] && echo -DENABLE_WPE_1_1_API=ON -DENABLE_WPE_PLATFORM=OFF) \
%ifarch x32
-DENABLE_C_LOOP=ON \
-DENABLE_JIT=OFF \
-DENABLE_SAMPLING_PROFILER=OFF \
-%endif
- -DENABLE_VIDEO=ON \
- -DENABLE_WEB_AUDIO=ON \
- -DENABLE_WEBGL=ON \
- $([ "$kind" = "soup3-1.1" ] && echo -DENABLE_WPE_1_1_API=ON) \
-%ifarch %{ix86} %{x8664} x32
- -DHAVE_SSE2_EXTENSIONS=ON \
%endif
-DPORT=WPE \
-DSHOULD_INSTALL_JS_SHELL=ON \
-DUSE_LIBBACKTRACE=OFF \
+%ifarch %{x8664} aarch64 loongarch64 mips64 ppc64 ppc64le riscv64
-DUSE_SYSTEM_MALLOC=OFF \
- %{?max_bundle_size:-DUNIFIED_BUILD_MAX_BUNDLE_SIZE=%{max_bundle_size}}
+%else
+ -DUSE_SYSTEM_MALLOC=ON \
+%endif
+ %{?max_bundle_size:-DWEBKIT_MAX_BUNDLE_SIZE=%{max_bundle_size}}
-%{__make} -C build-${kind}
+%ninja_build -C build-${kind}
done
%install
rm -rf $RPM_BUILD_ROOT
for kind in %{?with_api_1_1:soup3-1.1} %{?with_api_2_0:soup3-2.0} ; do
-%{__make} -C build-${kind} install \
- DESTDIR=$RPM_BUILD_ROOT
+%ninja_install -C build-${kind}
done
install -d $RPM_BUILD_ROOT%{_gidocdir}
@@ -341,6 +354,10 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libWPEWebKit-2.0.so.*.*.*
%ghost %{_libdir}/libWPEWebKit-2.0.so.1
%{_libdir}/girepository-1.0/WPEJavaScriptCore-2.0.typelib
+%{_libdir}/girepository-1.0/WPEPlatform-2.0.typelib
+%{_libdir}/girepository-1.0/WPEPlatformDRM-2.0.typelib
+%{_libdir}/girepository-1.0/WPEPlatformHeadless-2.0.typelib
+%{_libdir}/girepository-1.0/WPEPlatformWayland-2.0.typelib
%{_libdir}/girepository-1.0/WPEWebKit-2.0.typelib
%{_libdir}/girepository-1.0/WPEWebProcessExtension-2.0.typelib
%if "%{_libexecdir}" != "%{_libdir}"
@@ -360,14 +377,26 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libWPEWebKit-2.0.so
%{_includedir}/wpe-webkit-2.0
%{_datadir}/gir-1.0/WPEJavaScriptCore-2.0.gir
+%{_datadir}/gir-1.0/WPEPlatform-2.0.gir
+%{_datadir}/gir-1.0/WPEPlatformDRM-2.0.gir
+%{_datadir}/gir-1.0/WPEPlatformHeadless-2.0.gir
+%{_datadir}/gir-1.0/WPEPlatformWayland-2.0.gir
%{_datadir}/gir-1.0/WPEWebKit-2.0.gir
%{_datadir}/gir-1.0/WPEWebProcessExtension-2.0.gir
+%{_pkgconfigdir}/wpe-platform-2.0.pc
+%{_pkgconfigdir}/wpe-platform-drm-2.0.pc
+%{_pkgconfigdir}/wpe-platform-headless-2.0.pc
+%{_pkgconfigdir}/wpe-platform-wayland-2.0.pc
%{_pkgconfigdir}/wpe-web-process-extension-2.0.pc
%{_pkgconfigdir}/wpe-webkit-2.0.pc
%files -n wpe-webkit2-apidocs
%defattr(644,root,root,755)
%{_gidocdir}/wpe-javascriptcore-2.0
+%{_gidocdir}/wpe-platform-2.0
+%{_gidocdir}/wpe-platform-drm-2.0
+%{_gidocdir}/wpe-platform-headless-2.0
+%{_gidocdir}/wpe-platform-wayland-2.0
%{_gidocdir}/wpe-web-process-extension-2.0
%{_gidocdir}/wpe-webkit-2.0
%endif
diff --git a/max-bundle-size.patch b/max-bundle-size.patch
deleted file mode 100644
index 0765210..0000000
--- a/max-bundle-size.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- webkitgtk-2.50.4/Source/cmake/WebKitMacros.cmake.orig 2025-08-08 11:17:56.304456000 +0200
-+++ webkitgtk-2.50.4/Source/cmake/WebKitMacros.cmake 2026-01-23 12:48:45.426052097 +0100
-@@ -16,6 +16,8 @@
- # Windows needs a larger bundle size because that helps keep WebCore.lib's size below the 4GB maximum in debug builds.
- if (MSVC AND ${_framework} STREQUAL "WebCore" AND ${_framework}_LIBRARY_TYPE STREQUAL "STATIC")
- list(APPEND gusb_args --max-bundle-size 16)
-+ elseif (UNIFIED_BUILD_MAX_BUNDLE_SIZE)
-+ list(APPEND gusb_args --max-bundle-size ${UNIFIED_BUILD_MAX_BUNDLE_SIZE})
- endif ()
-
- if (ENABLE_UNIFIED_BUILDS)
diff --git a/webkitgtk-serializers.patch b/webkitgtk-serializers.patch
deleted file mode 100644
index bdbbf11..0000000
--- a/webkitgtk-serializers.patch
+++ /dev/null
@@ -1,209 +0,0 @@
-Based on commit https://github.com/WebKit/WebKit/commit/9823057a18307774342fa90acf9c0e1c189e30a8
-but with "Shared" part split additionally in 4 files to let compilation fit in 3GB address space
-
---- webkitgtk-2.52.4/Source/WebKit/CMakeLists.txt.orig 2026-06-11 06:12:49.003188621 +0200
-+++ webkitgtk-2.52.4/Source/WebKit/CMakeLists.txt 2026-06-11 06:27:30.225366168 +0200
-@@ -943,7 +943,17 @@ list(APPEND WebKit_SERIALIZATION_DEPENDE
-
- list(APPEND WebKit_DERIVED_SOURCES
- ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializers.h
-- ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializers.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersShared.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersSharedRemoteLayerTree.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersSharedWebCoreArgumentCoders.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersSharedWebGPU.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersWebProcess.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersGPUProcess.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersNetworkProcess.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersPlatform.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersModelProcess.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersUIProcess.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersCommon.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
- ${WebKit_DERIVED_SOURCES_DIR}/SerializedTypeInfo.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
- ${WebKit_DERIVED_SOURCES_DIR}/WebKitPlatformGeneratedSerializers.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
- )
-@@ -951,7 +961,17 @@ list(APPEND WebKit_DERIVED_SOURCES
- add_custom_command(
- OUTPUT
- ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializers.h
-- ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializers.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersShared.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersSharedRemoteLayerTree.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersSharedWebCoreArgumentCoders.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersSharedWebGPU.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersWebProcess.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersGPUProcess.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersNetworkProcess.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersPlatform.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersModelProcess.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersUIProcess.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
-+ ${WebKit_DERIVED_SOURCES_DIR}/GeneratedSerializersCommon.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
- ${WebKit_DERIVED_SOURCES_DIR}/SerializedTypeInfo.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
- ${WebKit_DERIVED_SOURCES_DIR}/WebKitPlatformGeneratedSerializers.${WebKit_GENERATED_SERIALIZERS_SUFFIX}
- MAIN_DEPENDENCY ${WEBKIT_DIR}/Scripts/generate-serializers.py
---- webkitgtk-2.52.4/Source/WebKit/Scripts/generate-serializers.py.orig 2026-06-11 06:13:09.926528604 +0200
-+++ webkitgtk-2.52.4/Source/WebKit/Scripts/generate-serializers.py 2026-06-11 06:28:56.328233042 +0200
-@@ -30,6 +30,40 @@ import sys
-
- from webkit.opaque_ipc_types import is_opaque_type, opaque_ipc_types
-
-+# Directories under Source/WebKit/ that get their own per-domain
-+# GeneratedSerializers<Domain>.{mm,cpp} translation unit when invoked with
-+# --split-by-directory. Anything not matching one of these falls into
-+# GeneratedSerializersCommon.{mm,cpp} (the residual bucket).
-+KNOWN_DOMAINS = ['Shared', 'SharedRemoteLayerTree', 'SharedWebGPU', 'SharedWebCoreArgumentCoders', 'WebProcess', 'GPUProcess', 'NetworkProcess', 'Platform', 'ModelProcess', 'UIProcess']
-+RESIDUAL_DOMAIN = '__residual__'
-+
-+
-+def derive_source_directory(input_file_path):
-+ """Return the top-level subdirectory under Source/WebKit/ for a .serialization.in path,
-+ or None if the file doesn't live under Source/WebKit/<DIR>/...
-+ """
-+ parts = os.path.normpath(input_file_path).split(os.sep)
-+ for i in range(len(parts) - 2):
-+ if parts[i] == 'Source' and parts[i + 1] == 'WebKit':
-+ if parts[i + 2] == "Shared":
-+ if parts[i + 3] in {"WebGPU", "RemoteLayerTree"}:
-+ return f"Shared{parts[i+3]}"
-+ elif parts[i + 3].startswith("WebCoreArgumentCoders"):
-+ return "SharedWebCoreArgumentCoders"
-+ return "Shared"
-+ return parts[i + 2]
-+ return None
-+
-+
-+def matches_domain(item, domain_filter):
-+ """Filter helper used by argument_coder_declarations and generate_impl."""
-+ if domain_filter is None:
-+ return True
-+ source_directory = getattr(item, 'source_directory', None)
-+ if domain_filter == RESIDUAL_DOMAIN:
-+ return source_directory not in KNOWN_DOMAINS
-+ return source_directory == domain_filter
-+
- # Supported type attributes:
- #
- # AdditionalEncoder - generate serializers for StreamConnectionEncoder in addition to IPC::Encoder.
-@@ -106,6 +140,7 @@ class SerializedType(object):
- self.disableMissingMemberCheck = False
- self.debug_decoding_failure = False
- self.generic_wrapper = None
-+ self.source_directory = None
- if attributes is not None:
- for attribute in attributes.split(', '):
- if '=' in attribute:
-@@ -273,6 +308,7 @@ class SerializedEnum(object):
- self.valid_values = valid_values
- self.condition = condition
- self.attributes = attributes
-+ self.source_directory = None
-
- def namespace_and_name(self):
- if self.namespace is None:
-@@ -572,13 +608,15 @@ def one_argument_coder_declaration(type,
- return result
-
-
--def argument_coder_declarations(serialized_types, skip_nested, webkit_platform):
-+def argument_coder_declarations(serialized_types, skip_nested, webkit_platform, domain_filter=None):
- result = []
- for type in serialized_types:
- if type.nested == skip_nested:
- continue
- if (webkit_platform is not None and type.webkit_platform != webkit_platform):
- continue
-+ if not matches_domain(type, domain_filter):
-+ continue
- if type.templates:
- for template in type.templates:
- result.extend(one_argument_coder_declaration(type, template))
-@@ -1157,7 +1195,7 @@ def generate_one_impl(type, template_arg
- return result
-
-
--def generate_impl(serialized_types, serialized_enums, headers, generating_webkit_platform_impl, objc_wrapped_types):
-+def generate_impl(serialized_types, serialized_enums, headers, generating_webkit_platform_impl, objc_wrapped_types, domain_filter=None):
- result = []
- result.append(_license_header)
- result.append('#include "config.h"')
-@@ -1218,12 +1256,14 @@ def generate_impl(serialized_types, seri
- result.append(f'#endif // {type.condition}')
- result.append('')
-
-- result = result + argument_coder_declarations(serialized_types, False, generating_webkit_platform_impl)
-+ result = result + argument_coder_declarations(serialized_types, False, generating_webkit_platform_impl, domain_filter=domain_filter)
- result.append('')
-
- for type in serialized_types:
- if type.webkit_platform != generating_webkit_platform_impl:
- continue
-+ if not matches_domain(type, domain_filter):
-+ continue
- if type.templates:
- for template in type.templates:
- result.extend(generate_one_impl(type, template, serialized_types))
-@@ -1237,6 +1277,8 @@ def generate_impl(serialized_types, seri
- continue
- if not type.members_are_subclasses:
- continue
-+ if not matches_domain(type, domain_filter):
-+ continue
- result.append('')
- if type.condition is not None:
- result.append(f'#if {type.condition}')
-@@ -1261,6 +1303,8 @@ def generate_impl(serialized_types, seri
- for enum in serialized_enums:
- if enum.is_webkit_platform() != generating_webkit_platform_impl:
- continue
-+ if not matches_domain(enum, domain_filter):
-+ continue
- result.append('')
- if enum.condition is not None:
- result.append(f'#if {enum.condition}')
-@@ -2026,6 +2070,7 @@ def generate_webkit_secure_coding_header
-
-
- def main(argv):
-+ split_by_directory = True
- serialized_types = []
- serialized_enums = []
- using_statements = []
-@@ -2036,12 +2081,15 @@ def main(argv):
- additional_forward_declarations_list = []
- file_extension = argv[1]
- for i in range(2, len(argv)):
-+ source_directory = derive_source_directory(argv[i])
- with open(argv[i]) as file:
- new_types, new_enums, new_headers, new_using_statements, new_additional_forward_declarations, new_objc_wrapped_types = parse_serialized_types(file)
- for type in new_types:
- type.enforce_opaque_ipc_types_usage()
-+ type.source_directory = source_directory
- serialized_types.append(type)
- for enum in new_enums:
-+ enum.source_directory = source_directory
- serialized_enums.append(enum)
- for using_statement in new_using_statements:
- using_statement.enforce_opaque_ipc_types_usage()
-@@ -2058,8 +2106,20 @@ def main(argv):
-
- with open('GeneratedSerializers.h', "w+") as output:
- output.write(generate_header(serialized_types, serialized_enums, additional_forward_declarations_list))
-- with open('GeneratedSerializers.%s' % file_extension, "w+") as output:
-- output.write(generate_impl(serialized_types, serialized_enums, headers, False, []))
-+ if split_by_directory:
-+ for domain in KNOWN_DOMAINS:
-+ with open(f'GeneratedSerializers{domain}.{file_extension}', "w+") as output:
-+ output.write(generate_impl(serialized_types, serialized_enums, headers, False, [], domain_filter=domain))
-+ with open(f'GeneratedSerializersCommon.{file_extension}', "w+") as output:
-+ output.write(generate_impl(serialized_types, serialized_enums, headers, False, [], domain_filter=RESIDUAL_DOMAIN))
-+
-+ residual_types = [t.namespace_and_name() for t in serialized_types
-+ if not t.webkit_platform and t.source_directory not in KNOWN_DOMAINS]
-+ if residual_types:
-+ sys.stderr.write(f'generate-serializers.py: {len(residual_types)} type(s) fell into GeneratedSerializersCommon.{file_extension} (residual bucket): {", ".join(sorted(set(residual_types))[:10])}{"..." if len(residual_types) > 10 else ""}\n')
-+ else:
-+ with open('GeneratedSerializers.%s' % file_extension, "w+") as output:
-+ output.write(generate_impl(serialized_types, serialized_enums, headers, False, []))
- with open('WebKitPlatformGeneratedSerializers.%s' % file_extension, "w+") as output:
- output.write(generate_impl(serialized_types, serialized_enums, headers, True, objc_wrapped_types))
- with open('SerializedTypeInfo.%s' % file_extension, "w+") as output:
diff --git a/wpe-webkit-x32.patch b/wpe-webkit-x32.patch
index ef1b358..6b65ea5 100644
--- a/wpe-webkit-x32.patch
+++ b/wpe-webkit-x32.patch
@@ -31,14 +31,14 @@ Index: webkitgtk/Source/WTF/wtf/Platform.h
elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(x64|x86_64|amd64)")
# FORCE_32BIT is set in the build script when --32-bit is passed
# on a Linux/intel 64bit host. This allows us to produce 32bit
---- webkitgtk-2.52.4/Source/bmalloc/bmalloc/Gigacage.h.orig 2026-05-18 13:52:11.862685200 +0200
-+++ webkitgtk-2.52.4/Source/bmalloc/bmalloc/Gigacage.h 2026-06-14 13:15:08.543763015 +0200
-@@ -43,7 +43,7 @@
- #endif
+--- webkitgtk-2.54.3/Source/bmalloc/bmalloc/BPlatform.h.orig 2026-07-24 10:02:56.286923400 +0200
++++ webkitgtk-2.54.3/Source/bmalloc/bmalloc/BPlatform.h 2026-11-24 20:35:37.529448101 +0100
+@@ -470,7 +470,7 @@
#if ((BOS(DARWIN) || BOS(LINUX)) && \
+ !BUSE(MIMALLOC) && \
- (BCPU(X86_64) || (BCPU(ARM64) && !defined(__ILP32__) && (!BPLATFORM(IOS_FAMILY) || BPLATFORM(IOS)))))
-+ (BCPU(X86_64) && !defined(__ILP32__) || (BCPU(ARM64) && !defined(__ILP32__) && (!BPLATFORM(IOS_FAMILY) || BPLATFORM(IOS)))))
++ ((BCPU(X86_64) && !defined(__ILP32__)) || (BCPU(ARM64) && !defined(__ILP32__) && (!BPLATFORM(IOS_FAMILY) || BPLATFORM(IOS)))))
#define GIGACAGE_ENABLED 1
#else
#define GIGACAGE_ENABLED 0
diff --git a/wpewebkit-32bit.patch b/wpewebkit-32bit.patch
new file mode 100644
index 0000000..8e11268
--- /dev/null
+++ b/wpewebkit-32bit.patch
@@ -0,0 +1,33 @@
+From: Alberto Garcia <berto at igalia.com>
+Subject: Fix FTBFS on 32-bit architectures without __uint128_t
+Forwarded: no
+Index: webkitgtk/Source/bmalloc/libpas/src/libpas/pas_utils.h
+===================================================================
+--- webkitgtk.orig/Source/bmalloc/libpas/src/libpas/pas_utils.h
++++ webkitgtk/Source/bmalloc/libpas/src/libpas/pas_utils.h
+@@ -948,6 +948,25 @@ static inline uintptr_t pas_pair_high(pa
+ return pair.high;
+ }
+
++#elif __SIZEOF_POINTER__ == 4
++
++typedef uint64_t pas_pair;
++
++static inline pas_pair pas_pair_create(uintptr_t low, uintptr_t high)
++{
++ return ((pas_pair)low) | ((pas_pair)(high) << 32);
++}
++
++static inline uintptr_t pas_pair_low(pas_pair pair)
++{
++ return pair;
++}
++
++static inline uintptr_t pas_pair_high(pas_pair pair)
++{
++ return pair >> 32;
++}
++
+ #else
+
+ typedef __uint128_t pas_pair;
diff --git a/wpewebkit-api1.1-fixes.patch b/wpewebkit-api1.1-fixes.patch
deleted file mode 100644
index 0a7d7e7..0000000
--- a/wpewebkit-api1.1-fixes.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- wpewebkit-2.52.4/Source/WebKit/PlatformWPE.cmake.orig 2026-03-11 22:45:48.372039000 +0100
-+++ wpewebkit-2.52.4/Source/WebKit/PlatformWPE.cmake 2026-06-14 10:15:13.222512124 +0200
-@@ -246,6 +246,7 @@ if (ENABLE_2022_GLIB_API)
- )
- list(APPEND WebKit_SOURCES
- ${WEBKIT_DIR}/UIProcess/API/glib/WebKitWebExtension.cpp
-+ ${WEBKIT_DIR}/UIProcess/API/glib/WebKitWebExtensionMatchPattern.cpp
- )
- endif ()
-
---- wpewebkit-2.52.4/Source/WebKit/SourcesWPE.txt.orig 2026-02-23 15:40:56.394295500 +0100
-+++ wpewebkit-2.52.4/Source/WebKit/SourcesWPE.txt 2026-06-14 10:12:36.003049748 +0200
-@@ -189,7 +189,6 @@ UIProcess/API/glib/WebKitUserContentMana
- UIProcess/API/glib/WebKitUserMediaPermissionRequest.cpp @no-unify
- UIProcess/API/glib/WebKitVersion.cpp @no-unify
- UIProcess/API/glib/WebKitWebContext.cpp @no-unify
--UIProcess/API/glib/WebKitWebExtensionMatchPattern.cpp @no-unify
- UIProcess/API/glib/WebKitWebResource.cpp @no-unify
- UIProcess/API/glib/WebKitWebResourceLoadManager.cpp @no-unify
- UIProcess/API/glib/WebKitWebView.cpp @no-unify
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/wpe-webkit1.1.git/commitdiff/6dba3d74fb0a7c935294b81cf5c73f10557978aa
More information about the pld-cvs-commit
mailing list