From 6a41a425080526c85be9e4695fde00c3d7b094f5 Mon Sep 17 00:00:00 2001 From: Shokara Kou Date: Thu, 2 Jun 2022 19:01:24 -0400 Subject: add webkitgtk4 --- www/webkitgtk4/CVS/Entries | 4 + www/webkitgtk4/CVS/Repository | 1 + www/webkitgtk4/CVS/Root | 1 + www/webkitgtk4/Makefile | 156 +++++++++++ www/webkitgtk4/distinfo | 2 + www/webkitgtk4/patches/CVS/Entries | 44 ++++ www/webkitgtk4/patches/CVS/Repository | 1 + www/webkitgtk4/patches/CVS/Root | 1 + ...h-Source_JavaScriptCore_API_glib_JSCOptions_cpp | 36 +++ ...ource_JavaScriptCore_assembler_ARM64Assembler_h | 12 + ...ource_JavaScriptCore_assembler_ARMv7Assembler_h | 12 + ...aScriptCore_assembler_MacroAssemblerX86Common_h | 19 ++ ...h-Source_JavaScriptCore_heap_BlockDirectory_cpp | 14 + ...h-Source_JavaScriptCore_javascriptcoregtk_pc_in | 10 + .../patches/patch-Source_JavaScriptCore_jsc_cpp | 11 + ...patch-Source_JavaScriptCore_offlineasm_arm64_rb | 12 + ...-Source_JavaScriptCore_runtime_MachineContext_h | 118 +++++++++ ...patch-Source_JavaScriptCore_runtime_Options_cpp | 25 ++ ...h-Source_ThirdParty_ANGLE_src_common_platform_h | 20 ++ ...rdParty_ANGLE_src_common_system_utils_posix_cpp | 16 ++ .../patches/patch-Source_WTF_wtf_InlineASM_h | 12 + .../patches/patch-Source_WTF_wtf_PageBlock_h | 12 + .../patches/patch-Source_WTF_wtf_PlatformCPU_h | 28 ++ .../patches/patch-Source_WTF_wtf_PlatformEnable_h | 14 + .../patches/patch-Source_WTF_wtf_PlatformHave_h | 18 ++ .../patches/patch-Source_WTF_wtf_Platform_h | 13 + .../patches/patch-Source_WTF_wtf_dtoa_utils_h | 12 + .../patch-Source_WebCore_PAL_pal_PlatformGTK_cmake | 18 ++ ...re_crypto_algorithms_CryptoAlgorithmAES_GCM_cpp | 16 ++ .../patch-Source_WebCore_page_NavigatorBase_cpp | 21 ++ ...Core_platform_graphics_FontSelectionAlgorithm_h | 30 +++ ...e_WebCore_platform_graphics_PlatformDisplay_cpp | 109 ++++++++ ...rce_WebCore_platform_graphics_PlatformDisplay_h | 51 ++++ ...tform_graphics_libwpe_PlatformDisplayLibWPE_cpp | 16 ++ ...orm_graphics_wayland_PlatformDisplayWayland_cpp | 86 ++++++ ...tform_graphics_wayland_PlatformDisplayWayland_h | 50 ++++ ...re_platform_graphics_x11_PlatformDisplayX11_cpp | 108 ++++++++ ...Core_platform_graphics_x11_PlatformDisplayX11_h | 33 +++ .../patch-Source_WebCore_platform_network_DNS_h | 11 + ...h-Source_WebCore_rendering_RenderLayerBacking_h | 16 ++ .../patch-Source_WebDriver_PlatformGTK_cmake | 17 ++ ...Kit_WebProcess_gtk_WaylandCompositorDisplay_cpp | 17 ++ ...ource_WebKit_gtk_webkit2gtk-web-extension_pc_in | 10 + .../patch-Source_WebKit_gtk_webkit2gtk_pc_in | 10 + ...atch-Source_bmalloc_bmalloc_AvailableMemory_cpp | 89 +++++++ .../patch-Source_bmalloc_bmalloc_AvailableMemory_h | 21 ++ .../patch-Source_bmalloc_bmalloc_BPlatform_h | 14 + .../patches/patch-Source_cmake_OptionsCommon_cmake | 16 ++ .../patches/patch-Source_cmake_WebKitCommon_cmake | 43 +++ .../patch-Source_cmake_WebKitCompilerFlags_cmake | 16 ++ .../patch-Source_cmake_WebKitFeatures_cmake | 12 + www/webkitgtk4/pkg/CVS/Entries | 3 + www/webkitgtk4/pkg/CVS/Repository | 1 + www/webkitgtk4/pkg/CVS/Root | 1 + www/webkitgtk4/pkg/DESCR | 4 + www/webkitgtk4/pkg/PLIST | 290 +++++++++++++++++++++ 56 files changed, 1753 insertions(+) create mode 100644 www/webkitgtk4/CVS/Entries create mode 100644 www/webkitgtk4/CVS/Repository create mode 100644 www/webkitgtk4/CVS/Root create mode 100644 www/webkitgtk4/Makefile create mode 100644 www/webkitgtk4/distinfo create mode 100644 www/webkitgtk4/patches/CVS/Entries create mode 100644 www/webkitgtk4/patches/CVS/Repository create mode 100644 www/webkitgtk4/patches/CVS/Root create mode 100644 www/webkitgtk4/patches/patch-Source_JavaScriptCore_API_glib_JSCOptions_cpp create mode 100644 www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler_h create mode 100644 www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARMv7Assembler_h create mode 100644 www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_MacroAssemblerX86Common_h create mode 100644 www/webkitgtk4/patches/patch-Source_JavaScriptCore_heap_BlockDirectory_cpp create mode 100644 www/webkitgtk4/patches/patch-Source_JavaScriptCore_javascriptcoregtk_pc_in create mode 100644 www/webkitgtk4/patches/patch-Source_JavaScriptCore_jsc_cpp create mode 100644 www/webkitgtk4/patches/patch-Source_JavaScriptCore_offlineasm_arm64_rb create mode 100644 www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_MachineContext_h create mode 100644 www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_Options_cpp create mode 100644 www/webkitgtk4/patches/patch-Source_ThirdParty_ANGLE_src_common_platform_h create mode 100644 www/webkitgtk4/patches/patch-Source_ThirdParty_ANGLE_src_common_system_utils_posix_cpp create mode 100644 www/webkitgtk4/patches/patch-Source_WTF_wtf_InlineASM_h create mode 100644 www/webkitgtk4/patches/patch-Source_WTF_wtf_PageBlock_h create mode 100644 www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformCPU_h create mode 100644 www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformEnable_h create mode 100644 www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformHave_h create mode 100644 www/webkitgtk4/patches/patch-Source_WTF_wtf_Platform_h create mode 100644 www/webkitgtk4/patches/patch-Source_WTF_wtf_dtoa_utils_h create mode 100644 www/webkitgtk4/patches/patch-Source_WebCore_PAL_pal_PlatformGTK_cmake create mode 100644 www/webkitgtk4/patches/patch-Source_WebCore_crypto_algorithms_CryptoAlgorithmAES_GCM_cpp create mode 100644 www/webkitgtk4/patches/patch-Source_WebCore_page_NavigatorBase_cpp create mode 100644 www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_FontSelectionAlgorithm_h create mode 100644 www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_PlatformDisplay_cpp create mode 100644 www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_PlatformDisplay_h create mode 100644 www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_libwpe_PlatformDisplayLibWPE_cpp create mode 100644 www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_wayland_PlatformDisplayWayland_cpp create mode 100644 www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_wayland_PlatformDisplayWayland_h create mode 100644 www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_x11_PlatformDisplayX11_cpp create mode 100644 www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_x11_PlatformDisplayX11_h create mode 100644 www/webkitgtk4/patches/patch-Source_WebCore_platform_network_DNS_h create mode 100644 www/webkitgtk4/patches/patch-Source_WebCore_rendering_RenderLayerBacking_h create mode 100644 www/webkitgtk4/patches/patch-Source_WebDriver_PlatformGTK_cmake create mode 100644 www/webkitgtk4/patches/patch-Source_WebKit_WebProcess_gtk_WaylandCompositorDisplay_cpp create mode 100644 www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk-web-extension_pc_in create mode 100644 www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk_pc_in create mode 100644 www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_cpp create mode 100644 www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h create mode 100644 www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_BPlatform_h create mode 100644 www/webkitgtk4/patches/patch-Source_cmake_OptionsCommon_cmake create mode 100644 www/webkitgtk4/patches/patch-Source_cmake_WebKitCommon_cmake create mode 100644 www/webkitgtk4/patches/patch-Source_cmake_WebKitCompilerFlags_cmake create mode 100644 www/webkitgtk4/patches/patch-Source_cmake_WebKitFeatures_cmake create mode 100644 www/webkitgtk4/pkg/CVS/Entries create mode 100644 www/webkitgtk4/pkg/CVS/Repository create mode 100644 www/webkitgtk4/pkg/CVS/Root create mode 100644 www/webkitgtk4/pkg/DESCR create mode 100644 www/webkitgtk4/pkg/PLIST diff --git a/www/webkitgtk4/CVS/Entries b/www/webkitgtk4/CVS/Entries new file mode 100644 index 0000000..7277554 --- /dev/null +++ b/www/webkitgtk4/CVS/Entries @@ -0,0 +1,4 @@ +/Makefile/1.170/Mon Apr 4 11:07:36 2022// +/distinfo/1.92/Sat Mar 26 16:11:55 2022// +D/patches//// +D/pkg//// diff --git a/www/webkitgtk4/CVS/Repository b/www/webkitgtk4/CVS/Repository new file mode 100644 index 0000000..5000111 --- /dev/null +++ b/www/webkitgtk4/CVS/Repository @@ -0,0 +1 @@ +ports/www/webkitgtk4 diff --git a/www/webkitgtk4/CVS/Root b/www/webkitgtk4/CVS/Root new file mode 100644 index 0000000..3811072 --- /dev/null +++ b/www/webkitgtk4/CVS/Root @@ -0,0 +1 @@ +/cvs diff --git a/www/webkitgtk4/Makefile b/www/webkitgtk4/Makefile new file mode 100644 index 0000000..26d51b4 --- /dev/null +++ b/www/webkitgtk4/Makefile @@ -0,0 +1,156 @@ +# patches/patch-Source_JavaScriptCore_javascriptcoregtk_pc_in +# patches/patch-Source_WebKit_gtk_webkit2gtk-web-extension_pc_in +# patches/patch-Source_WebKit_gtk_webkit2gtk_pc_in +USE_WXNEEDED = Yes + +BROKEN-alpha = GCC 5.0.0 is required to build WebKitGTK+, use a newer GCC version or clang +BROKEN-hppa = GCC 5.0.0 is required to build WebKitGTK+, use a newer GCC version or clang +BROKEN-arm = JavaScriptCore/runtime/MachineContext.h, various sigcontext-related + +PORTROACH = limitw:1,even + +COMMENT = GTK+ port of the WebKit rendering engine + +V = 2.36.0 +DISTNAME = webkitgtk-${V} +PKGNAME = webkitgtk4-${V} +REVISION = 1 + +EXTRACT_SUFX = .tar.xz +API = 4.0 +SUBST_VARS = API +DPB_PROPERTIES = parallel + +SHARED_LIBS += javascriptcoregtk-${API} 3.6 # 18.13.3 +SHARED_LIBS += webkit2gtk-${API} 3.6 # 37.37.2 + +CATEGORIES = www + +HOMEPAGE = https://webkitgtk.org/ + +MAINTAINER = Antoine Jacoutot + +# LGPLv2 and BSD +PERMIT_PACKAGE = Yes + +WANTLIB += ${COMPILER_LIBCXX} EGL GL X11 Xcomposite Xdamage Xrender +WANTLIB += Xt atk-1.0 c cairo cairo-gobject enchant-2 fontconfig +WANTLIB += freetype gcrypt gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0 +WANTLIB += gmodule-2.0 gobject-2.0 gpg-error gstapp-1.0 gstaudio-1.0 +WANTLIB += gstbase-1.0 gstfft-1.0 gstgl-1.0 gstpbutils-1.0 gstreamer-1.0 +WANTLIB += gsttag-1.0 gstvideo-1.0 gtk-3 harfbuzz harfbuzz-icu +WANTLIB += hyphen icudata icui18n icuuc intl jpeg lcms2 m notify +WANTLIB += openjp2 pango-1.0 pangocairo-1.0 png secret-1 soup-2.4 +WANTLIB += sqlite3 tasn1 webp webpdemux woff2dec xml2 xslt z + +MASTER_SITES = https://webkitgtk.org/releases/ + +MODULES = devel/cmake \ + lang/python \ + lang/ruby \ + x11/gnome + +COMPILER = base-clang ports-gcc + +MODRUBY_RUNDEP = No +MODPY_RUNDEP = No +MODPY_ADJ_FILES = Tools/glib/generate-inspector-gresource-manifest.py +MODGNOME_TOOLS = gobject-introspection + +# XXX set DEBUG=-g1 because libWebCoreGTK.a is too big (4.1G) +# https://bugs.webkit.org/show_bug.cgi?id=140384 +# ld.lld: error: lib/libWebCoreGTK.a: +# could not get the member for symbol WebCore::WorkerThread::runEventLoop(): +# truncated or malformed archive (terminator characters in archive member "ar" not the correct "`\n" values for the archive member header for 12__retguard_29) +DEBUG_PACKAGES = ${BUILD_PACKAGES} +DEBUG = -g1 + +NO_TEST = Yes + +BUILD_DEPENDS = devel/bison \ + devel/gettext,-tools \ + devel/gperf \ + geo/geoclue2 + +RUN_DEPENDS = geo/geoclue2 \ + multimedia/gstreamer1/plugins-good + +LIB_DEPENDS = archivers/woff2 \ + devel/harfbuzz,-icu \ + devel/libnotify \ + devel/libsoup \ + graphics/libwebp \ + graphics/openjp2 \ + multimedia/gstreamer1/plugins-base \ + textproc/enchant2 \ + textproc/hyphen \ + textproc/libxslt \ + x11/gnome/libsecret \ + x11/gtk+3 + +CONFIGURE_ENV = WK_USE_CCACHE=NO +CONFIGURE_ARGS = -DPORT=GTK \ + -DENABLE_MINIBROWSER=ON \ + -DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \ + -DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \ + -DENABLE_JOURNALD_LOG=OFF \ + -DUSE_SOUP2=ON + +# XXX broken at run time +#CONFIGURE_ARGS += -DUSE_SYSTEM_MALLOC=ON + +# required for faking a better user-agent +.if ${MACHINE_ARCH} == "amd64" +CPUARCH = x86_64 +.else +CPUARCH = ${ARCH} +.endif +CONFIGURE_ARGS += -DUSER_AGENT_BRANDING="Linux ${CPUARCH}" + +# needs Wayland (libwpe -> WPEBackend-fdo -> Wayland) +CONFIGURE_ARGS += -DUSE_WPE_RENDERER=OFF + +# Needs GUdev +CONFIGURE_ARGS += -DENABLE_GAMEPAD=OFF + +# sync with Source/JavaScriptCore/assembler/MacroAssembler.h +# native support for riscv64 in LLInt fails to link with relocation errors +.if ${MACHINE_ARCH} != "aarch64" && ${MACHINE_ARCH} != "amd64" && \ + ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "i386" && \ + ${MACHINE_ARCH} != "mips64" && ${MACHINE_ARCH} != "mips64el" +# #error "The MacroAssembler is not supported on this platform." +CONFIGURE_ARGS += -DENABLE_JIT=OFF +CONFIGURE_ARGS += -DENABLE_C_LOOP=ON +.endif + + +# we don't want an allocation of 1GB, it's above the default ulimit +.if ${MACHINE_ARCH} == "amd64" +CXXFLAGS += -DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=512 +.endif +CXXFLAGS += -DSTRUCTURE_HEAP_ADDRESS_SIZE_IN_MB=256 + +# XXX fatal error: 'X11/Xlib.h' file not found +CXXFLAGS += -I${X11BASE}/include + +.include + +# disable thin archives for bfd +.if !${PROPERTIES:Mlld} +CONFIGURE_ARGS += -DUSE_THIN_ARCHIVES=FALSE +.endif + +.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "i386" +# Don't make LLVM run out of memory +DPB_PROPERTIES = lonesome +LDFLAGS += -Wl,--no-keep-memory +.endif + +post-extract: + ln -sf ${MODPY_BIN} ${WRKDIR}/bin/python + ln -sf ${RUBY} ${WRKDIR}/bin/ruby + +pre-configure: + ${SUBST_CMD} ${WRKSRC}/Source/cmake/WebKitCommon.cmake + +.include diff --git a/www/webkitgtk4/distinfo b/www/webkitgtk4/distinfo new file mode 100644 index 0000000..9eb6577 --- /dev/null +++ b/www/webkitgtk4/distinfo @@ -0,0 +1,2 @@ +SHA256 (webkitgtk-2.36.0.tar.xz) = uHfMofEFI19d1Xx6wrLCvjxraR/0RPk5JcclTPFWxk0= +SIZE (webkitgtk-2.36.0.tar.xz) = 26900828 diff --git a/www/webkitgtk4/patches/CVS/Entries b/www/webkitgtk4/patches/CVS/Entries new file mode 100644 index 0000000..2aad1e7 --- /dev/null +++ b/www/webkitgtk4/patches/CVS/Entries @@ -0,0 +1,44 @@ +/patch-Source_JavaScriptCore_API_glib_JSCOptions_cpp/1.2/Fri Mar 11 20:11:07 2022// +/patch-Source_JavaScriptCore_assembler_ARM64Assembler_h/1.12/Sat Mar 26 16:11:56 2022// +/patch-Source_JavaScriptCore_assembler_ARMv7Assembler_h/1.7/Sat Mar 26 16:11:56 2022// +/patch-Source_JavaScriptCore_assembler_MacroAssemblerX86Common_h/1.7/Fri Mar 11 20:11:07 2022// +/patch-Source_JavaScriptCore_heap_BlockDirectory_cpp/1.2/Fri Mar 11 20:11:07 2022// +/patch-Source_JavaScriptCore_javascriptcoregtk_pc_in/1.5/Fri Mar 11 20:11:07 2022// +/patch-Source_JavaScriptCore_jsc_cpp/1.5/Sat Mar 26 16:11:56 2022// +/patch-Source_JavaScriptCore_offlineasm_arm64_rb/1.8/Fri Mar 11 20:11:07 2022// +/patch-Source_JavaScriptCore_runtime_MachineContext_h/1.10/Sat Mar 26 16:11:56 2022// +/patch-Source_JavaScriptCore_runtime_Options_cpp/1.8/Fri Mar 11 20:11:07 2022// +/patch-Source_ThirdParty_ANGLE_src_common_platform_h/1.1/Sat Mar 26 16:11:56 2022// +/patch-Source_ThirdParty_ANGLE_src_common_system_utils_posix_cpp/1.1/Sat Mar 26 16:11:56 2022// +/patch-Source_WTF_wtf_InlineASM_h/1.4/Fri Mar 11 20:11:07 2022// +/patch-Source_WTF_wtf_PageBlock_h/1.6/Fri Mar 11 20:11:07 2022// +/patch-Source_WTF_wtf_PlatformCPU_h/1.3/Fri Mar 11 20:11:07 2022// +/patch-Source_WTF_wtf_PlatformEnable_h/1.7/Sat Mar 26 16:11:56 2022// +/patch-Source_WTF_wtf_PlatformHave_h/1.8/Tue Apr 5 07:28:25 2022// +/patch-Source_WTF_wtf_Platform_h/1.19/Fri Mar 11 20:11:07 2022// +/patch-Source_WTF_wtf_dtoa_utils_h/1.6/Fri Mar 11 20:11:07 2022// +/patch-Source_WebCore_PAL_pal_PlatformGTK_cmake/1.3/Fri Mar 11 20:11:07 2022// +/patch-Source_WebCore_crypto_algorithms_CryptoAlgorithmAES_GCM_cpp/1.2/Fri Mar 11 20:11:07 2022// +/patch-Source_WebCore_page_NavigatorBase_cpp/1.3/Sat Mar 26 16:11:56 2022// +/patch-Source_WebCore_platform_graphics_FontSelectionAlgorithm_h/1.4/Fri Mar 11 20:11:07 2022// +/patch-Source_WebCore_platform_graphics_PlatformDisplay_cpp/1.2/Fri Apr 1 09:08:36 2022// +/patch-Source_WebCore_platform_graphics_PlatformDisplay_h/1.2/Fri Apr 1 09:08:36 2022// +/patch-Source_WebCore_platform_graphics_libwpe_PlatformDisplayLibWPE_cpp/1.2/Fri Apr 1 09:08:36 2022// +/patch-Source_WebCore_platform_graphics_wayland_PlatformDisplayWayland_cpp/1.2/Fri Apr 1 09:08:37 2022// +/patch-Source_WebCore_platform_graphics_wayland_PlatformDisplayWayland_h/1.2/Fri Apr 1 09:08:37 2022// +/patch-Source_WebCore_platform_graphics_x11_PlatformDisplayX11_cpp/1.4/Fri Apr 1 09:08:37 2022// +/patch-Source_WebCore_platform_graphics_x11_PlatformDisplayX11_h/1.2/Fri Apr 1 09:08:37 2022// +/patch-Source_WebCore_platform_network_DNS_h/1.3/Fri Mar 11 20:11:07 2022// +/patch-Source_WebCore_rendering_RenderLayerBacking_h/1.2/Fri Mar 11 20:11:07 2022// +/patch-Source_WebDriver_PlatformGTK_cmake/1.2/Fri Mar 11 20:11:07 2022// +/patch-Source_WebKit_WebProcess_gtk_WaylandCompositorDisplay_cpp/1.2/Fri Apr 1 09:08:37 2022// +/patch-Source_WebKit_gtk_webkit2gtk-web-extension_pc_in/1.6/Fri Mar 11 20:11:07 2022// +/patch-Source_WebKit_gtk_webkit2gtk_pc_in/1.6/Fri Mar 11 20:11:07 2022// +/patch-Source_bmalloc_bmalloc_AvailableMemory_cpp/1.1/Sat Mar 26 16:11:56 2022// +/patch-Source_bmalloc_bmalloc_AvailableMemory_h/1.1/Sat Mar 26 16:11:56 2022// +/patch-Source_bmalloc_bmalloc_BPlatform_h/1.1/Sat Mar 26 16:11:56 2022// +/patch-Source_cmake_OptionsCommon_cmake/1.21/Sat Mar 26 16:11:56 2022// +/patch-Source_cmake_WebKitCommon_cmake/1.9/Sat Mar 26 16:11:56 2022// +/patch-Source_cmake_WebKitCompilerFlags_cmake/1.11/Sat Mar 26 16:11:56 2022// +/patch-Source_cmake_WebKitFeatures_cmake/1.12/Sat Mar 26 16:11:56 2022// +D diff --git a/www/webkitgtk4/patches/CVS/Repository b/www/webkitgtk4/patches/CVS/Repository new file mode 100644 index 0000000..be284f0 --- /dev/null +++ b/www/webkitgtk4/patches/CVS/Repository @@ -0,0 +1 @@ +ports/www/webkitgtk4/patches diff --git a/www/webkitgtk4/patches/CVS/Root b/www/webkitgtk4/patches/CVS/Root new file mode 100644 index 0000000..3811072 --- /dev/null +++ b/www/webkitgtk4/patches/CVS/Root @@ -0,0 +1 @@ +/cvs diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_API_glib_JSCOptions_cpp b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_API_glib_JSCOptions_cpp new file mode 100644 index 0000000..813ceaf --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_API_glib_JSCOptions_cpp @@ -0,0 +1,36 @@ +Unbreak i386: +- revert https://trac.webkit.org/changeset/241014/webkit +- https://bugs.webkit.org/show_bug.cgi?id=194330 + +Index: Source/JavaScriptCore/API/glib/JSCOptions.cpp +--- Source/JavaScriptCore/API/glib/JSCOptions.cpp.orig ++++ Source/JavaScriptCore/API/glib/JSCOptions.cpp +@@ -73,7 +73,6 @@ static void valueToGValue(int32_t value, GValue* gValu + g_value_set_int(gValue, value); + } + +-#if CPU(ADDRESS64) + static bool valueFromGValue(const GValue* gValue, unsigned& value) + { + value = g_value_get_uint(gValue); +@@ -84,7 +83,6 @@ static void valueToGValue(unsigned value, GValue* gVal + { + g_value_set_uint(gValue, value); + } +-#endif + + static bool valueFromGValue(const GValue* gValue, size_t& value) + { +@@ -542,12 +540,10 @@ static JSCOptionType jscOptionsType(int) + return JSC_OPTION_INT; + } + +-#if CPU(ADDRESS64) + static JSCOptionType jscOptionsType(unsigned) + { + return JSC_OPTION_UINT; + } +-#endif + + static JSCOptionType jscOptionsType(size_t) + { diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler_h b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler_h new file mode 100644 index 0000000..a73d1a4 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler_h @@ -0,0 +1,12 @@ +Index: Source/JavaScriptCore/assembler/ARM64Assembler.h +--- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig ++++ Source/JavaScriptCore/assembler/ARM64Assembler.h +@@ -2945,6 +2945,8 @@ class ARM64Assembler { (public) + { + #if OS(DARWIN) + sys_cache_control(kCacheFunctionPrepareForExecution, code, size); ++#elif OS(FREEBSD) || OS(NETBSD) || OS(OPENBSD) ++ __clear_cache(code, reinterpret_cast(code) + size); + #elif OS(FUCHSIA) + zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN); + #elif OS(LINUX) diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARMv7Assembler_h b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARMv7Assembler_h new file mode 100644 index 0000000..5a5fb4d --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARMv7Assembler_h @@ -0,0 +1,12 @@ +Index: Source/JavaScriptCore/assembler/ARMv7Assembler.h +--- Source/JavaScriptCore/assembler/ARMv7Assembler.h.orig ++++ Source/JavaScriptCore/assembler/ARMv7Assembler.h +@@ -2507,6 +2507,8 @@ class ARMv7Assembler { (public) + linuxPageFlush(current, current + page); + + linuxPageFlush(current, end); ++#elif CPU(ARM_TRADITIONAL) && (OS(FREEBSD) || OS(OPENBSD)) && COMPILER(CLANG) ++ __clear_cache(code, reinterpret_cast(code) + size); + #else + #error "The cacheFlush support is missing on this platform." + #endif diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_MacroAssemblerX86Common_h b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_MacroAssemblerX86Common_h new file mode 100644 index 0000000..f864540 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_MacroAssemblerX86Common_h @@ -0,0 +1,19 @@ +XXX error: macro "swap32" passed 2 arguments, but takes just 1 +XXX error: macro "swap64" passed 2 arguments, but takes just 1 + +Index: Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h +--- Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h.orig ++++ Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h +@@ -31,6 +31,12 @@ + #include "AbstractMacroAssembler.h" + #include + ++/* conflicting definition in endian.h */ ++#if OS(OPENBSD) ++#undef swap32 ++#undef swap64 ++#endif ++ + namespace JSC { + + using Assembler = TARGET_ASSEMBLER; diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_heap_BlockDirectory_cpp b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_heap_BlockDirectory_cpp new file mode 100644 index 0000000..0ec4c26 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_heap_BlockDirectory_cpp @@ -0,0 +1,14 @@ +No mincore(2) on OpenBSD. + +Index: Source/JavaScriptCore/heap/BlockDirectory.cpp +--- Source/JavaScriptCore/heap/BlockDirectory.cpp.orig ++++ Source/JavaScriptCore/heap/BlockDirectory.cpp +@@ -60,7 +60,7 @@ void BlockDirectory::setSubspace(Subspace* subspace) + void BlockDirectory::updatePercentageOfPagedOutPages(SimpleStats& stats) + { + // FIXME: We should figure out a solution for Windows. +-#if OS(UNIX) ++#if OS(UNIX) && !OS(OPENBSD) + size_t pageSize = WTF::pageSize(); + ASSERT(!(MarkedBlock::blockSize % pageSize)); + auto numberOfPagesInMarkedBlock = MarkedBlock::blockSize / pageSize; diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_javascriptcoregtk_pc_in b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_javascriptcoregtk_pc_in new file mode 100644 index 0000000..72d8553 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_javascriptcoregtk_pc_in @@ -0,0 +1,10 @@ +Index: Source/JavaScriptCore/javascriptcoregtk.pc.in +--- Source/JavaScriptCore/javascriptcoregtk.pc.in.orig ++++ Source/JavaScriptCore/javascriptcoregtk.pc.in +@@ -8,5 +8,5 @@ Name: JavaScriptCoreGTK+ + Description: GTK+ version of the JavaScriptCore engine + Version: @PROJECT_VERSION@ + Requires: glib-2.0 gobject-2.0 +-Libs: -L${libdir} -ljavascriptcoregtk-@WEBKITGTK_API_VERSION@ ++Libs: -L${libdir} -ljavascriptcoregtk-@WEBKITGTK_API_VERSION@ -Wl,-z,wxneeded + Cflags: -I${includedir}/webkitgtk-@WEBKITGTK_API_VERSION@ diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_jsc_cpp b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_jsc_cpp new file mode 100644 index 0000000..679d2bb --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_jsc_cpp @@ -0,0 +1,11 @@ +Index: Source/JavaScriptCore/jsc.cpp +--- Source/JavaScriptCore/jsc.cpp.orig ++++ Source/JavaScriptCore/jsc.cpp +@@ -78,6 +78,7 @@ + #include "WasmCapabilities.h" + #include "WasmFaultSignalHandler.h" + #include "WasmMemory.h" ++#include /* LC_ALL */ + #include + #include + #include diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_offlineasm_arm64_rb b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_offlineasm_arm64_rb new file mode 100644 index 0000000..4d74860 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_offlineasm_arm64_rb @@ -0,0 +1,12 @@ +Index: Source/JavaScriptCore/offlineasm/arm64.rb +--- Source/JavaScriptCore/offlineasm/arm64.rb.orig ++++ Source/JavaScriptCore/offlineasm/arm64.rb +@@ -1127,7 +1127,7 @@ class Instruction + $asm.puts "ldr #{operands[1].arm64Operand(:quad)}, [#{operands[1].arm64Operand(:quad)}, #{operands[0].asmLabel}@GOTPAGEOFF]" + + # On Linux, use ELF GOT relocation specifiers. +- $asm.putStr("#elif OS(LINUX)") ++ $asm.putStr("#elif OS(LINUX) || OS(OPENBSD)") + $asm.puts "adrp #{operands[1].arm64Operand(:quad)}, :got:#{operands[0].asmLabel}" + $asm.puts "ldr #{operands[1].arm64Operand(:quad)}, [#{operands[1].arm64Operand(:quad)}, :got_lo12:#{operands[0].asmLabel}]" + diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_MachineContext_h b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_MachineContext_h new file mode 100644 index 0000000..94dc8b1 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_MachineContext_h @@ -0,0 +1,118 @@ +Index: Source/JavaScriptCore/runtime/MachineContext.h +--- Source/JavaScriptCore/runtime/MachineContext.h.orig ++++ Source/JavaScriptCore/runtime/MachineContext.h +@@ -176,6 +176,22 @@ static inline void*& stackPointerImpl(mcontext_t& mach + #error Unknown Architecture + #endif + ++#elif OS(OPENBSD) ++ ++#if CPU(X86) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_esp); ++#elif CPU(X86_64) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_rsp); ++#elif CPU(ARM) ++ return reinterpret_cast((uintptr_t&) machineContext.__gregs[_REG_SP]); ++#elif CPU(ARM64) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_sp); ++#elif CPU(MIPS) ++ return reinterpret_cast((uintptr_t&) machineContext.mc_regs[29]); ++#else ++#error Unknown Architecture ++#endif ++ + #elif OS(FUCHSIA) || OS(LINUX) + + #if CPU(X86) +@@ -305,6 +321,22 @@ static inline void*& framePointerImpl(mcontext_t& mach + #error Unknown Architecture + #endif + ++#elif OS(OPENBSD) ++ ++#if CPU(X86) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_ebp); ++#elif CPU(X86_64) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_rbp); ++#elif CPU(ARM) ++ return reinterpret_cast((uintptr_t&) machineContext.__gregs[_REG_FP]); ++#elif CPU(ARM64) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_x[29]); ++#elif CPU(MIPS) ++ return reinterpret_cast((uintptr_t&) machineContext.mc_regs[30]); ++#else ++#error Unknown Architecture ++#endif ++ + #elif OS(FUCHSIA) || OS(LINUX) + + // The following sequence depends on glibc's sys/ucontext.h. +@@ -447,6 +479,22 @@ static inline void*& instructionPointerImpl(mcontext_t + #error Unknown Architecture + #endif + ++#elif OS(OPENBSD) ++ ++#if CPU(X86) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_eip); ++#elif CPU(X86_64) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_rip); ++#elif CPU(ARM) ++ return reinterpret_cast((uintptr_t&) machineContext.__gregs[_REG_PC]); ++#elif CPU(ARM64) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_elr); ++#elif CPU(MIPS) ++ return reinterpret_cast((uintptr_t&) machineContext.mc_pc); ++#else ++#error Unknown Architecture ++#endif ++ + #elif OS(FUCHSIA) || OS(LINUX) + + // The following sequence depends on glibc's sys/ucontext.h. +@@ -587,6 +635,22 @@ inline void*& argumentPointer<1>(mcontext_t& machineCo + #error Unknown Architecture + #endif + ++#elif OS(OPENBSD) ++ ++#if CPU(X86) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_edx); ++#elif CPU(X86_64) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_rsi); ++#elif CPU(ARM) ++ return reinterpret_cast((uintptr_t&) machineContext.__gregs[_REG_R1]); ++#elif CPU(ARM64) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_x[1]); ++#elif CPU(MIPS) ++ return reinterpret_cast((uintptr_t&) machineContext.mc_regs[5]); ++#else ++#error Unknown Architecture ++#endif ++ + #elif OS(FUCHSIA) || OS(LINUX) + + // The following sequence depends on glibc's sys/ucontext.h. +@@ -700,6 +764,22 @@ inline void*& llintInstructionPointer(mcontext_t& mach + return reinterpret_cast((uintptr_t&) machineContext.__gregs[_REG_R8]); + #elif CPU(ARM64) + return reinterpret_cast((uintptr_t&) machineContext.mc_gpregs.gp_x[4]); ++#elif CPU(MIPS) ++ return reinterpret_cast((uintptr_t&) machineContext.mc_regs[12]); ++#else ++#error Unknown Architecture ++#endif ++ ++#elif OS(OPENBSD) ++ ++#if CPU(X86) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_esi); ++#elif CPU(X86_64) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_r8); ++#elif CPU(ARM) ++ return reinterpret_cast((uintptr_t&) machineContext.__gregs[_REG_R8]); ++#elif CPU(ARM64) ++ return reinterpret_cast((uintptr_t&) machineContext.sc_x[4]); + #elif CPU(MIPS) + return reinterpret_cast((uintptr_t&) machineContext.mc_regs[12]); + #else diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_Options_cpp b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_Options_cpp new file mode 100644 index 0000000..537fc18 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_Options_cpp @@ -0,0 +1,25 @@ +powerpc and i386 fix for: +undefined reference to `WTF::Optional +JSC::parse(char const*)' + +Index: Source/JavaScriptCore/runtime/Options.cpp +--- Source/JavaScriptCore/runtime/Options.cpp.orig ++++ Source/JavaScriptCore/runtime/Options.cpp +@@ -89,7 +89,7 @@ std::optional parse(const ch + return std::nullopt; + } + +-#if CPU(ADDRESS64) || OS(DARWIN) ++#if CPU(ADDRESS64) || OS(DARWIN) || OS(OPENBSD) + template<> + std::optional parse(const char* string) + { +@@ -98,7 +98,7 @@ std::optional parse(const char* + return value; + return std::nullopt; + } +-#endif // CPU(ADDRESS64) || OS(DARWIN) ++#endif // CPU(ADDRESS64) || OS(DARWIN) || OS(OPENBSD) + + template<> + std::optional parse(const char* string) diff --git a/www/webkitgtk4/patches/patch-Source_ThirdParty_ANGLE_src_common_platform_h b/www/webkitgtk4/patches/patch-Source_ThirdParty_ANGLE_src_common_platform_h new file mode 100644 index 0000000..d211055 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_ThirdParty_ANGLE_src_common_platform_h @@ -0,0 +1,20 @@ +Index: Source/ThirdParty/ANGLE/src/common/platform.h +--- Source/ThirdParty/ANGLE/src/common/platform.h.orig ++++ Source/ThirdParty/ANGLE/src/common/platform.h +@@ -26,7 +26,15 @@ + #elif defined(__linux__) || defined(EMSCRIPTEN) + # define ANGLE_PLATFORM_LINUX 1 + # define ANGLE_PLATFORM_POSIX 1 +-#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || \ ++#elif defined(__OpenBSD__) ++# define ANGLE_PLATFORM_OPENBSD 1 ++# define ANGLE_PLATFORM_POSIX 1 ++# define ANGLE_PLATFORM_BSD 1 ++#elif defined(__FreeBSD__) ++# define ANGLE_PLATFORM_FREEBSD 1 ++# define ANGLE_PLATFORM_POSIX 1 ++# define ANGLE_PLATFORM_BSD 1 ++#elif defined(__NetBSD__) || \ + defined(__DragonFly__) || defined(__sun) || defined(__GLIBC__) || defined(__GNU__) || \ + defined(__QNX__) || defined(__Fuchsia__) || defined(__HAIKU__) + # define ANGLE_PLATFORM_POSIX 1 diff --git a/www/webkitgtk4/patches/patch-Source_ThirdParty_ANGLE_src_common_system_utils_posix_cpp b/www/webkitgtk4/patches/patch-Source_ThirdParty_ANGLE_src_common_system_utils_posix_cpp new file mode 100644 index 0000000..f42d46b --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_ThirdParty_ANGLE_src_common_system_utils_posix_cpp @@ -0,0 +1,16 @@ +Index: Source/ThirdParty/ANGLE/src/common/system_utils_posix.cpp +--- Source/ThirdParty/ANGLE/src/common/system_utils_posix.cpp.orig ++++ Source/ThirdParty/ANGLE/src/common/system_utils_posix.cpp +@@ -222,10 +222,12 @@ Library *OpenSharedLibraryWithExtensionAndGetError(con + } + + int extraFlags = 0; ++#if !ANGLE_PLATFORM_OPENBSD + if (searchType == SearchType::AlreadyLoaded) + { + extraFlags = RTLD_NOLOAD; + } ++#endif + + std::string fullPath = directory + libraryName; + #if ANGLE_PLATFORM_IOS diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_InlineASM_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_InlineASM_h new file mode 100644 index 0000000..38594b2 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_InlineASM_h @@ -0,0 +1,12 @@ +Index: Source/WTF/wtf/InlineASM.h +--- Source/WTF/wtf/InlineASM.h.orig ++++ Source/WTF/wtf/InlineASM.h +@@ -43,7 +43,7 @@ + #define THUMB_FUNC_PARAM(name) + #endif + +-#if (OS(LINUX) || OS(FREEBSD)) && CPU(X86_64) ++#if (OS(LINUX) || OS(FREEBSD) || OS(OPENBSD)) && CPU(X86_64) + #define GLOBAL_REFERENCE(name) #name "@plt" + #elif CPU(X86) && COMPILER(MINGW) + #define GLOBAL_REFERENCE(name) "@" #name "@4" diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_PageBlock_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PageBlock_h new file mode 100644 index 0000000..8f65f4e --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PageBlock_h @@ -0,0 +1,12 @@ +Index: Source/WTF/wtf/PageBlock.h +--- Source/WTF/wtf/PageBlock.h.orig ++++ Source/WTF/wtf/PageBlock.h +@@ -51,6 +51,8 @@ constexpr size_t CeilingOnPageSize = 16 * KB; + constexpr size_t CeilingOnPageSize = 64 * KB; + #elif OS(WINDOWS) || CPU(X86) || CPU(X86_64) || CPU(ARM) || CPU(ARM64) || CPU(RISCV64) + constexpr size_t CeilingOnPageSize = 4 * KB; ++#elif CPU(SPARC64) ++constexpr size_t CeilingOnPageSize = 8 * KB; + #else + #error Must set CeilingOnPageSize in PageBlock.h when adding a new CPU architecture! + #endif diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformCPU_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformCPU_h new file mode 100644 index 0000000..1bebf1f --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformCPU_h @@ -0,0 +1,28 @@ +https://bugs.webkit.org/show_bug.cgi?id=129963 + +Index: Source/WTF/wtf/PlatformCPU.h +--- Source/WTF/wtf/PlatformCPU.h.orig ++++ Source/WTF/wtf/PlatformCPU.h +@@ -89,6 +89,13 @@ + #define WTF_CPU_KNOWN 1 + #endif + ++/* CPU(SPARC64) - SPARC V9 */ ++#if defined(__sparc64__) ++#define WTF_CPU_KNOWN 1 ++#define WTF_CPU_SPARC64 1 ++#define WTF_CPU_BIG_ENDIAN 1 ++#endif ++ + /* CPU(X86) - i386 / x86 32-bit */ + #if defined(__i386__) \ + || defined(i386) \ +@@ -289,7 +296,7 @@ + #define WTF_CPU_UNKNOWN 1 + #endif + +-#if CPU(ARM) || CPU(MIPS) || CPU(UNKNOWN) ++#if CPU(ARM) || CPU(MIPS) || CPU(SPARC64) || CPU(UNKNOWN) + #define WTF_CPU_NEEDS_ALIGNED_ACCESS 1 + #endif + diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformEnable_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformEnable_h new file mode 100644 index 0000000..c3d7922 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformEnable_h @@ -0,0 +1,14 @@ +https://bugs.webkit.org/show_bug.cgi?id=129963 + +Index: Source/WTF/wtf/PlatformEnable.h +--- Source/WTF/wtf/PlatformEnable.h.orig ++++ Source/WTF/wtf/PlatformEnable.h +@@ -644,7 +644,7 @@ + #if !defined(ENABLE_DFG_JIT) && ENABLE(JIT) + + /* Enable the DFG JIT on X86 and X86_64. */ +-#if CPU(X86_64) && (OS(DARWIN) || OS(LINUX) || OS(FREEBSD) || OS(HURD) || OS(WINDOWS)) ++#if CPU(X86_64) && (OS(DARWIN) || OS(LINUX) || OS(FREEBSD) || OS(OPENBSD) || OS(HURD) || OS(WINDOWS)) + #define ENABLE_DFG_JIT 1 + #endif + diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformHave_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformHave_h new file mode 100644 index 0000000..4be2495 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformHave_h @@ -0,0 +1,18 @@ +Undo parts of upstream commit 6c2615dd66a12e9a10d7867241cc3bedfb2b2473 [0] +Machine context definitions were only added for Linux. +[0] https://github.com/WebKit/WebKit/commit/6c2615dd66a12e9a10d7867241cc3bedfb2b2473 + +Index: Source/WTF/wtf/PlatformHave.h +--- Source/WTF/wtf/PlatformHave.h.orig ++++ Source/WTF/wtf/PlatformHave.h +@@ -233,6 +233,10 @@ + #define HAVE_MACHINE_CONTEXT 1 + #endif + ++#if OS(OPENBSD) && CPU(RISCV64) ++#undef HAVE_MACHINE_CONTEXT ++#endif ++ + #if OS(DARWIN) || (OS(LINUX) && defined(__GLIBC__) && !defined(__UCLIBC__) && !CPU(MIPS)) + #define HAVE_BACKTRACE 1 + #endif diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_Platform_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_Platform_h new file mode 100644 index 0000000..c503325 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_Platform_h @@ -0,0 +1,13 @@ +Fix build with icu4c >=69.1 + +Index: Source/WTF/wtf/Platform.h +--- Source/WTF/wtf/Platform.h.orig ++++ Source/WTF/wtf/Platform.h +@@ -113,7 +113,6 @@ + + /* FIXME: This does not belong in Platform.h and should instead be included in another mechanism (compiler option, prefix header, config.h, etc) */ + /* ICU configuration. Some of these match ICU defaults on some platforms, but we would like them consistently set everywhere we build WebKit. */ +-#define U_HIDE_DEPRECATED_API 1 + #define U_SHOW_CPLUSPLUS_API 0 + #ifdef __cplusplus + #define UCHAR_TYPE char16_t diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_dtoa_utils_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_dtoa_utils_h new file mode 100644 index 0000000..dd59932 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_dtoa_utils_h @@ -0,0 +1,12 @@ +Index: Source/WTF/wtf/dtoa/utils.h +--- Source/WTF/wtf/dtoa/utils.h.orig ++++ Source/WTF/wtf/dtoa/utils.h +@@ -86,7 +86,7 @@ int main(int argc, char** argv) { + defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \ + defined(_POWER) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || \ + defined(__sparc__) || defined(__sparc) || defined(__s390__) || \ +- defined(__SH4__) || defined(__alpha__) || \ ++ defined(__SH4__) || defined(__alpha__) || defined(__sparc64__) || \ + defined(_MIPS_ARCH_MIPS32R2) || \ + defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \ + defined(__riscv) || \ diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_PAL_pal_PlatformGTK_cmake b/www/webkitgtk4/patches/patch-Source_WebCore_PAL_pal_PlatformGTK_cmake new file mode 100644 index 0000000..965bc52 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebCore_PAL_pal_PlatformGTK_cmake @@ -0,0 +1,18 @@ +Index: Source/WebCore/PAL/pal/PlatformGTK.cmake +--- Source/WebCore/PAL/pal/PlatformGTK.cmake.orig ++++ Source/WebCore/PAL/pal/PlatformGTK.cmake +@@ -20,6 +20,14 @@ list(APPEND PAL_SOURCES + unix/LoggingUnix.cpp + ) + ++list(APPEND PAL_INCLUDE_DIRECTORIES ++ ${LIBGCRYPT_INCLUDE_DIRS} ++) ++ ++list(APPEND PAL_LIBRARIES ++ ${LIBGCRYPT_LIBRARIES} ++) ++ + if (ENABLE_WEB_CRYPTO) + list(APPEND PAL_PUBLIC_HEADERS + crypto/tasn1/Utilities.h diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_crypto_algorithms_CryptoAlgorithmAES_GCM_cpp b/www/webkitgtk4/patches/patch-Source_WebCore_crypto_algorithms_CryptoAlgorithmAES_GCM_cpp new file mode 100644 index 0000000..061724e --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebCore_crypto_algorithms_CryptoAlgorithmAES_GCM_cpp @@ -0,0 +1,16 @@ +Index: Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_GCM.cpp +--- Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_GCM.cpp.orig ++++ Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_GCM.cpp +@@ -26,6 +26,12 @@ + #include "config.h" + #include "CryptoAlgorithmAES_GCM.h" + ++#if defined(_LP64) ++# define __WORDSIZE 64 ++#else ++# define __WORDSIZE 32 ++#endif ++ + #if ENABLE(WEB_CRYPTO) + + #include "CryptoAlgorithmAesGcmParams.h" diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_page_NavigatorBase_cpp b/www/webkitgtk4/patches/patch-Source_WebCore_page_NavigatorBase_cpp new file mode 100644 index 0000000..7bf4088 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebCore_page_NavigatorBase_cpp @@ -0,0 +1,21 @@ +Index: Source/WebCore/page/NavigatorBase.cpp +--- Source/WebCore/page/NavigatorBase.cpp.orig ++++ Source/WebCore/page/NavigatorBase.cpp +@@ -40,7 +40,7 @@ + #include + #include + +-#if OS(LINUX) ++#if OS(LINUX) || OS(OPENBSD) + #include "sys/utsname.h" + #include + #endif +@@ -88,7 +88,7 @@ String NavigatorBase::appVersion() const + + String NavigatorBase::platform() const + { +-#if OS(LINUX) ++#if OS(LINUX) || OS(OPENBSD) + static LazyNeverDestroyed platformName; + static std::once_flag onceKey; + std::call_once(onceKey, [] { diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_FontSelectionAlgorithm_h b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_FontSelectionAlgorithm_h new file mode 100644 index 0000000..37189ec --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_FontSelectionAlgorithm_h @@ -0,0 +1,30 @@ +XXX libstdc++ from gcc-4.9.4 doesn't yet decorate std::min/std::max +with constexpr + +Index: Source/WebCore/platform/graphics/FontSelectionAlgorithm.h +--- Source/WebCore/platform/graphics/FontSelectionAlgorithm.h.orig ++++ Source/WebCore/platform/graphics/FontSelectionAlgorithm.h +@@ -49,7 +49,11 @@ class FontSelectionValue { (public) + explicit constexpr FontSelectionValue(float); + + // Precision can be lost, but value will be clamped to the representable range. ++#if defined(__GLIBCXX__) && __GLIBCXX__ <= 20160726L ++ static inline FontSelectionValue clampFloat(float); ++#else + static constexpr FontSelectionValue clampFloat(float); ++#endif + + // Since floats have 23 mantissa bits, every value can be represented losslessly. + constexpr operator float() const; +@@ -125,7 +129,11 @@ constexpr FontSelectionValue FontSelectionValue::minim + return { std::numeric_limits::min(), RawTag::RawTag }; + } + ++#if defined(__GLIBCXX__) && __GLIBCXX__ <= 20160726L ++inline FontSelectionValue FontSelectionValue::clampFloat(float value) ++#else + constexpr FontSelectionValue FontSelectionValue::clampFloat(float value) ++#endif + { + return FontSelectionValue { std::max(minimumValue(), std::min(value, maximumValue())) }; + } diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_PlatformDisplay_cpp b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_PlatformDisplay_cpp new file mode 100644 index 0000000..ca59d8f --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_PlatformDisplay_cpp @@ -0,0 +1,109 @@ +From 72fad08f2bfe7d2744c3217fe0ec0afcc671c53e Mon Sep 17 00:00:00 2001 +From: Carlos Garcia Campos +Date: Fri, 1 Apr 2022 09:00:32 +0000 +Subject: [PATCH] REGRESSION(r290360): [GLX] Crash on process exit https://bugs.webkit.org/show_bug.cgi?id=238494 + +Index: Source/WebCore/platform/graphics/PlatformDisplay.cpp +--- Source/WebCore/platform/graphics/PlatformDisplay.cpp.orig ++++ Source/WebCore/platform/graphics/PlatformDisplay.cpp +@@ -96,25 +96,14 @@ std::unique_ptr PlatformDisplay::crea + if (gtk_init_check(nullptr, nullptr)) { + GdkDisplay* display = gdk_display_manager_get_default_display(gdk_display_manager_get()); + #if PLATFORM(X11) +- if (GDK_IS_X11_DISPLAY(display)) { +- auto platformDisplay = PlatformDisplayX11::create(GDK_DISPLAY_XDISPLAY(display)); +-#if USE(ATSPI) && USE(GTK4) +- if (const char* atspiBusAddress = static_cast(g_object_get_data(G_OBJECT(display), "-gtk-atspi-bus-address"))) +- platformDisplay->m_accessibilityBusAddress = String::fromUTF8(atspiBusAddress); ++ if (GDK_IS_X11_DISPLAY(display)) ++ return PlatformDisplayX11::create(display); + #endif +- return platformDisplay; +- } +-#endif ++ + #if PLATFORM(WAYLAND) +- if (GDK_IS_WAYLAND_DISPLAY(display)) { +- auto platformDisplay = PlatformDisplayWayland::create(gdk_wayland_display_get_wl_display(display)); +-#if USE(ATSPI) && USE(GTK4) +- if (const char* atspiBusAddress = static_cast(g_object_get_data(G_OBJECT(display), "-gtk-atspi-bus-address"))) +- platformDisplay->m_accessibilityBusAddress = String::fromUTF8(atspiBusAddress); ++ if (GDK_IS_WAYLAND_DISPLAY(display)) ++ return PlatformDisplayWayland::create(display); + #endif +- return platformDisplay; +- } +-#endif + } + #endif // PLATFORM(GTK) + +@@ -174,19 +163,45 @@ void PlatformDisplay::setSharedDisplayForCompositing(P + s_sharedDisplayForCompositing = &display; + } + +-PlatformDisplay::PlatformDisplay(NativeDisplayOwned displayOwned) +- : m_nativeDisplayOwned(displayOwned) ++PlatformDisplay::PlatformDisplay() + #if USE(EGL) +- , m_eglDisplay(EGL_NO_DISPLAY) ++ : m_eglDisplay(EGL_NO_DISPLAY) + #endif + { + } + ++#if PLATFORM(GTK) ++PlatformDisplay::PlatformDisplay(GdkDisplay* display) ++ : m_sharedDisplay(display) ++{ ++#if USE(ATSPI) && USE(GTK4) ++ if (const char* atspiBusAddress = static_cast(g_object_get_data(G_OBJECT(display), "-gtk-atspi-bus-address"))) ++ m_accessibilityBusAddress = String::fromUTF8(atspiBusAddress); ++#endif ++ ++ g_signal_connect(m_sharedDisplay.get(), "closed", G_CALLBACK(+[](GdkDisplay*, gboolean, gpointer userData) { ++ auto& platformDisplay = *static_cast(userData); ++ platformDisplay.sharedDisplayDidClose(); ++ }), this); ++} ++ ++void PlatformDisplay::sharedDisplayDidClose() ++{ ++#if USE(EGL) || USE(GLX) ++ clearSharingGLContext(); ++#endif ++} ++#endif ++ + PlatformDisplay::~PlatformDisplay() + { + #if USE(EGL) && !PLATFORM(WIN) + ASSERT(m_eglDisplay == EGL_NO_DISPLAY); + #endif ++#if PLATFORM(GTK) ++ if (m_sharedDisplay) ++ g_signal_handlers_disconnect_by_data(m_sharedDisplay.get(), this); ++#endif + if (s_sharedDisplayForCompositing == this) + s_sharedDisplayForCompositing = nullptr; + } +@@ -198,6 +213,11 @@ GLContext* PlatformDisplay::sharingGLContext() + m_sharingGLContext = GLContext::createSharingContext(*this); + return m_sharingGLContext.get(); + } ++ ++void PlatformDisplay::clearSharingGLContext() ++{ ++ m_sharingGLContext = nullptr; ++} + #endif + + #if USE(EGL) +@@ -274,7 +294,7 @@ void PlatformDisplay::terminateEGLDisplay() + m_gstGLDisplay = nullptr; + m_gstGLContext = nullptr; + #endif +- m_sharingGLContext = nullptr; ++ clearSharingGLContext(); + ASSERT(m_eglDisplayInitialized); + if (m_eglDisplay == EGL_NO_DISPLAY) + return; diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_PlatformDisplay_h b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_PlatformDisplay_h new file mode 100644 index 0000000..ce0cd91 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_PlatformDisplay_h @@ -0,0 +1,51 @@ +From 72fad08f2bfe7d2744c3217fe0ec0afcc671c53e Mon Sep 17 00:00:00 2001 +From: Carlos Garcia Campos +Date: Fri, 1 Apr 2022 09:00:32 +0000 +Subject: [PATCH] REGRESSION(r290360): [GLX] Crash on process exit https://bugs.webkit.org/show_bug.cgi?id=238494 + +Index: Source/WebCore/platform/graphics/PlatformDisplay.h +--- Source/WebCore/platform/graphics/PlatformDisplay.h.orig ++++ Source/WebCore/platform/graphics/PlatformDisplay.h +@@ -33,6 +33,12 @@ + typedef void *EGLDisplay; + #endif + ++#if PLATFORM(GTK) ++#include ++ ++typedef struct _GdkDisplay GdkDisplay; ++#endif ++ + #if ENABLE(VIDEO) && USE(GSTREAMER_GL) + #include "GRefPtrGStreamer.h" + +@@ -74,6 +80,7 @@ class PlatformDisplay { (public) + + #if USE(EGL) || USE(GLX) + WEBCORE_EXPORT GLContext* sharingGLContext(); ++ void clearSharingGLContext(); + #endif + + #if USE(EGL) +@@ -96,12 +103,18 @@ class PlatformDisplay { (public) + #endif + + protected: +- enum class NativeDisplayOwned { No, Yes }; +- explicit PlatformDisplay(NativeDisplayOwned); ++ PlatformDisplay(); ++#if PLATFORM(GTK) ++ explicit PlatformDisplay(GdkDisplay*); ++#endif + + static void setSharedDisplayForCompositing(PlatformDisplay&); + +- NativeDisplayOwned m_nativeDisplayOwned { NativeDisplayOwned::No }; ++#if PLATFORM(GTK) ++ virtual void sharedDisplayDidClose(); ++ ++ GRefPtr m_sharedDisplay; ++#endif + + #if USE(EGL) + virtual void initializeEGLDisplay(); diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_libwpe_PlatformDisplayLibWPE_cpp b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_libwpe_PlatformDisplayLibWPE_cpp new file mode 100644 index 0000000..ccd6dce --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_libwpe_PlatformDisplayLibWPE_cpp @@ -0,0 +1,16 @@ +From 72fad08f2bfe7d2744c3217fe0ec0afcc671c53e Mon Sep 17 00:00:00 2001 +From: Carlos Garcia Campos +Date: Fri, 1 Apr 2022 09:00:32 +0000 +Subject: [PATCH] REGRESSION(r290360): [GLX] Crash on process exit https://bugs.webkit.org/show_bug.cgi?id=238494 + +Index: Source/WebCore/platform/graphics/libwpe/PlatformDisplayLibWPE.cpp +--- Source/WebCore/platform/graphics/libwpe/PlatformDisplayLibWPE.cpp.orig ++++ Source/WebCore/platform/graphics/libwpe/PlatformDisplayLibWPE.cpp +@@ -59,7 +59,6 @@ std::unique_ptr PlatformDisplay + } + + PlatformDisplayLibWPE::PlatformDisplayLibWPE() +- : PlatformDisplay(NativeDisplayOwned::No) + { + #if PLATFORM(GTK) + PlatformDisplay::setSharedDisplayForCompositing(*this); diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_wayland_PlatformDisplayWayland_cpp b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_wayland_PlatformDisplayWayland_cpp new file mode 100644 index 0000000..c883d54 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_wayland_PlatformDisplayWayland_cpp @@ -0,0 +1,86 @@ +From 72fad08f2bfe7d2744c3217fe0ec0afcc671c53e Mon Sep 17 00:00:00 2001 +From: Carlos Garcia Campos +Date: Fri, 1 Apr 2022 09:00:32 +0000 +Subject: [PATCH] REGRESSION(r290360): [GLX] Crash on process exit https://bugs.webkit.org/show_bug.cgi?id=238494 + +Index: Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.cpp +--- Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.cpp.orig ++++ Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.cpp +@@ -37,6 +37,14 @@ + #include + #include + ++#if PLATFORM(GTK) ++#if USE(GTK4) ++#include ++#else ++#include ++#endif ++#endif ++ + namespace WebCore { + + const struct wl_registry_listener PlatformDisplayWayland::s_registryListener = { +@@ -56,32 +64,55 @@ std::unique_ptr PlatformDisplayWaylan + if (!display) + return nullptr; + +- auto platformDisplay = std::unique_ptr(new PlatformDisplayWayland(display, NativeDisplayOwned::Yes)); ++ auto platformDisplay = std::unique_ptr(new PlatformDisplayWayland(display)); + platformDisplay->initialize(); + return platformDisplay; + } + +-std::unique_ptr PlatformDisplayWayland::create(struct wl_display* display) ++#if PLATFORM(GTK) ++std::unique_ptr PlatformDisplayWayland::create(GdkDisplay* display) + { +- auto platformDisplay = std::unique_ptr(new PlatformDisplayWayland(display, NativeDisplayOwned::No)); ++ auto platformDisplay = std::unique_ptr(new PlatformDisplayWayland(display)); + platformDisplay->initialize(); + return platformDisplay; + } ++#endif + +-PlatformDisplayWayland::PlatformDisplayWayland(struct wl_display* display, NativeDisplayOwned displayOwned) +- : PlatformDisplay(displayOwned) +- , m_display(display) ++PlatformDisplayWayland::PlatformDisplayWayland(struct wl_display* display) ++ : m_display(display) + { + } + ++#if PLATFORM(GTK) ++PlatformDisplayWayland::PlatformDisplayWayland(GdkDisplay* display) ++ : PlatformDisplay(display) ++ , m_display(gdk_wayland_display_get_wl_display(display)) ++{ ++} ++#endif ++ + PlatformDisplayWayland::~PlatformDisplayWayland() + { +- if (m_nativeDisplayOwned == NativeDisplayOwned::Yes) { ++#if PLATFORM(GTK) ++ bool nativeDisplayOwned = !m_sharedDisplay; ++#else ++ bool nativeDisplayOwned = true; ++#endif ++ ++ if (nativeDisplayOwned) { + m_compositor = nullptr; + m_registry = nullptr; + wl_display_disconnect(m_display); + } + } ++ ++#if PLATFORM(GTK) ++void PlatformDisplayWayland::sharedDisplayDidClose() ++{ ++ PlatformDisplay::sharedDisplayDidClose(); ++ m_display = nullptr; ++} ++#endif + + void PlatformDisplayWayland::initialize() + { diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_wayland_PlatformDisplayWayland_h b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_wayland_PlatformDisplayWayland_h new file mode 100644 index 0000000..b698b34 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_wayland_PlatformDisplayWayland_h @@ -0,0 +1,50 @@ +From 72fad08f2bfe7d2744c3217fe0ec0afcc671c53e Mon Sep 17 00:00:00 2001 +From: Carlos Garcia Campos +Date: Fri, 1 Apr 2022 09:00:32 +0000 +Subject: [PATCH] REGRESSION(r290360): [GLX] Crash on process exit https://bugs.webkit.org/show_bug.cgi?id=238494 + +Index: Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.h +--- Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.h.orig ++++ Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.h +@@ -23,8 +23,7 @@ + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +-#ifndef PlatformDisplayWayland_h +-#define PlatformDisplayWayland_h ++#pragma once + + #if PLATFORM(WAYLAND) + +@@ -37,7 +36,9 @@ namespace WebCore { + class PlatformDisplayWayland : public PlatformDisplay { + public: + static std::unique_ptr create(); +- static std::unique_ptr create(struct wl_display*); ++#if PLATFORM(GTK) ++ static std::unique_ptr create(GdkDisplay*); ++#endif + + virtual ~PlatformDisplayWayland(); + +@@ -51,8 +52,13 @@ class PlatformDisplayWayland : public PlatformDisplay + Type type() const final { return PlatformDisplay::Type::Wayland; } + + protected: +- PlatformDisplayWayland(struct wl_display*, NativeDisplayOwned); ++ explicit PlatformDisplayWayland(struct wl_display*); ++#if PLATFORM(GTK) ++ explicit PlatformDisplayWayland(GdkDisplay*); + ++ void sharedDisplayDidClose() override; ++#endif ++ + void initialize(); + + virtual void registryGlobal(const char* interface, uint32_t name); +@@ -67,5 +73,3 @@ class PlatformDisplayWayland : public PlatformDisplay + SPECIALIZE_TYPE_TRAITS_PLATFORM_DISPLAY(PlatformDisplayWayland, Wayland) + + #endif // PLATFORM(WAYLAND) +- +-#endif // PlatformDisplayWayland_h diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_x11_PlatformDisplayX11_cpp b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_x11_PlatformDisplayX11_cpp new file mode 100644 index 0000000..e0fe052 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_x11_PlatformDisplayX11_cpp @@ -0,0 +1,108 @@ +From 72fad08f2bfe7d2744c3217fe0ec0afcc671c53e Mon Sep 17 00:00:00 2001 +From: Carlos Garcia Campos +Date: Fri, 1 Apr 2022 09:00:32 +0000 +Subject: [PATCH] REGRESSION(r290360): [GLX] Crash on process exit https://bugs.webkit.org/show_bug.cgi?id=238494 + +Index: Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp +--- Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp.orig ++++ Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp +@@ -28,6 +28,7 @@ + + #include "GLContext.h" + #include "XErrorTrapper.h" ++#include + + #if PLATFORM(X11) + #include +@@ -36,7 +37,12 @@ + #if PLATFORM(GTK) + #include + #include ++#if USE(GTK4) ++#include ++#else ++#include + #endif ++#endif + + #if USE(EGL) + #include +@@ -55,29 +61,69 @@ std::unique_ptr PlatformDisplayX11::c + if (!display) + return nullptr; + +- return std::unique_ptr(new PlatformDisplayX11(display, NativeDisplayOwned::Yes)); ++ return std::unique_ptr(new PlatformDisplayX11(display)); + } + +-std::unique_ptr PlatformDisplayX11::create(Display* display) ++#if PLATFORM(GTK) ++std::unique_ptr PlatformDisplayX11::create(GdkDisplay* display) + { +- return std::unique_ptr(new PlatformDisplayX11(display, NativeDisplayOwned::No)); ++ return std::unique_ptr(new PlatformDisplayX11(display)); + } ++#endif + +-PlatformDisplayX11::PlatformDisplayX11(Display* display, NativeDisplayOwned displayOwned) +- : PlatformDisplay(displayOwned) +- , m_display(display) ++static inline void clearSharingGLContextAtExit() + { ++#if USE(GLX) ++ // In X11 only one PlatformDisplay instance is allowed per process which is the sharedDisplay one. ++ // We install an atexit handler to clear the sharing GL context to ensure it's released before ++ // the constructor is called, because clearing the context in X11 requires to access PlatformDisplay::sharedDisplay() ++ // and calling it from its constructor causes issues in some systems. See https://bugs.webkit.org/show_bug.cgi?id=238494. ++ static std::once_flag onceKey; ++ std::call_once(onceKey, [] { ++ std::atexit([] { ++ PlatformDisplay::sharedDisplay().clearSharingGLContext(); ++ }); ++ }); ++#endif + } + ++PlatformDisplayX11::PlatformDisplayX11(Display* display) ++ : m_display(display) ++{ ++ clearSharingGLContextAtExit(); ++} ++ ++#if PLATFORM(GTK) ++PlatformDisplayX11::PlatformDisplayX11(GdkDisplay* display) ++ : PlatformDisplay(display) ++ , m_display(GDK_DISPLAY_XDISPLAY(display)) ++{ ++ clearSharingGLContextAtExit(); ++} ++#endif ++ + PlatformDisplayX11::~PlatformDisplayX11() + { + #if USE(EGL) || USE(GLX) +- // Clear the sharing context before releasing the display. +- m_sharingGLContext = nullptr; ++ ASSERT(!m_sharingGLContext); + #endif +- if (m_nativeDisplayOwned == NativeDisplayOwned::Yes) ++ ++#if PLATFORM(GTK) ++ bool nativeDisplayOwned = !m_sharedDisplay; ++#else ++ bool nativeDisplayOwned = true; ++#endif ++ if (nativeDisplayOwned) + XCloseDisplay(m_display); + } ++ ++#if PLATFORM(GTK) ++void PlatformDisplayX11::sharedDisplayDidClose() ++{ ++ PlatformDisplay::sharedDisplayDidClose(); ++ m_display = nullptr; ++} ++#endif + + #if USE(EGL) + void PlatformDisplayX11::initializeEGLDisplay() diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_x11_PlatformDisplayX11_h b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_x11_PlatformDisplayX11_h new file mode 100644 index 0000000..9052c92 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_x11_PlatformDisplayX11_h @@ -0,0 +1,33 @@ +From 72fad08f2bfe7d2744c3217fe0ec0afcc671c53e Mon Sep 17 00:00:00 2001 +From: Carlos Garcia Campos +Date: Fri, 1 Apr 2022 09:00:32 +0000 +Subject: [PATCH] REGRESSION(r290360): [GLX] Crash on process exit https://bugs.webkit.org/show_bug.cgi?id=238494 + +Index: Source/WebCore/platform/graphics/x11/PlatformDisplayX11.h +--- Source/WebCore/platform/graphics/x11/PlatformDisplayX11.h.orig ++++ Source/WebCore/platform/graphics/x11/PlatformDisplayX11.h +@@ -41,7 +41,9 @@ namespace WebCore { + class PlatformDisplayX11 final : public PlatformDisplay { + public: + static std::unique_ptr create(); +- static std::unique_ptr create(::Display*); ++#if PLATFORM(GTK) ++ static std::unique_ptr create(GdkDisplay*); ++#endif + + virtual ~PlatformDisplayX11(); + +@@ -52,7 +54,12 @@ class PlatformDisplayX11 final : public PlatformDispla + bool supportsGLX(std::optional& glxErrorBase) const; + + private: +- PlatformDisplayX11(::Display*, NativeDisplayOwned); ++ explicit PlatformDisplayX11(::Display*); ++#if PLATFORM(GTK) ++ explicit PlatformDisplayX11(GdkDisplay*); ++ ++ void sharedDisplayDidClose() override; ++#endif + + Type type() const override { return PlatformDisplay::Type::X11; } + diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_platform_network_DNS_h b/www/webkitgtk4/patches/patch-Source_WebCore_platform_network_DNS_h new file mode 100644 index 0000000..03b0b8a --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebCore_platform_network_DNS_h @@ -0,0 +1,11 @@ +Index: Source/WebCore/platform/network/DNS.h +--- Source/WebCore/platform/network/DNS.h.orig ++++ Source/WebCore/platform/network/DNS.h +@@ -34,6 +34,7 @@ + #include + #else + #include ++#include /* AF_INET, AF_INET6 */ + #endif + + namespace WebCore { diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_rendering_RenderLayerBacking_h b/www/webkitgtk4/patches/patch-Source_WebCore_rendering_RenderLayerBacking_h new file mode 100644 index 0000000..50a1830 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebCore_rendering_RenderLayerBacking_h @@ -0,0 +1,16 @@ +Index: Source/WebCore/rendering/RenderLayerBacking.h +--- Source/WebCore/rendering/RenderLayerBacking.h.orig ++++ Source/WebCore/rendering/RenderLayerBacking.h +@@ -33,6 +33,12 @@ + #include "RenderLayerCompositor.h" + #include "ScrollingCoordinator.h" + ++#if defined(_LP64) ++# define __WORDSIZE 64 ++#else ++# define __WORDSIZE 32 ++#endif ++ + namespace WebCore { + + class EventRegionContext; diff --git a/www/webkitgtk4/patches/patch-Source_WebDriver_PlatformGTK_cmake b/www/webkitgtk4/patches/patch-Source_WebDriver_PlatformGTK_cmake new file mode 100644 index 0000000..66cbf89 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebDriver_PlatformGTK_cmake @@ -0,0 +1,17 @@ +Index: Source/WebDriver/PlatformGTK.cmake +--- Source/WebDriver/PlatformGTK.cmake.orig ++++ Source/WebDriver/PlatformGTK.cmake +@@ -5,6 +5,7 @@ add_definitions(-DLIBEXECDIR="${CMAKE_INSTALL_FULL_LIB + list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES + "${GLIB_INCLUDE_DIRS}" + "${LIBSOUP_INCLUDE_DIRS}" ++ "${ICU_INCLUDE_DIRS}" + ) + + list(APPEND WebDriver_SOURCES +@@ -18,4 +19,5 @@ list(APPEND WebDriver_SOURCES + + list(APPEND WebDriver_LIBRARIES + ${LIBSOUP_LIBRARIES} ++ ${ICU_LIBRARIES} + ) diff --git a/www/webkitgtk4/patches/patch-Source_WebKit_WebProcess_gtk_WaylandCompositorDisplay_cpp b/www/webkitgtk4/patches/patch-Source_WebKit_WebProcess_gtk_WaylandCompositorDisplay_cpp new file mode 100644 index 0000000..0546a81 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebKit_WebProcess_gtk_WaylandCompositorDisplay_cpp @@ -0,0 +1,17 @@ +From 72fad08f2bfe7d2744c3217fe0ec0afcc671c53e Mon Sep 17 00:00:00 2001 +From: Carlos Garcia Campos +Date: Fri, 1 Apr 2022 09:00:32 +0000 +Subject: [PATCH] REGRESSION(r290360): [GLX] Crash on process exit https://bugs.webkit.org/show_bug.cgi?id=238494 + +Index: Source/WebKit/WebProcess/gtk/WaylandCompositorDisplay.cpp +--- Source/WebKit/WebProcess/gtk/WaylandCompositorDisplay.cpp.orig ++++ Source/WebKit/WebProcess/gtk/WaylandCompositorDisplay.cpp +@@ -63,7 +63,7 @@ void WaylandCompositorDisplay::bindSurfaceToPage(struc + } + + WaylandCompositorDisplay::WaylandCompositorDisplay(struct wl_display* display) +- : PlatformDisplayWayland(display, NativeDisplayOwned::Yes) ++ : PlatformDisplayWayland(display) + { + PlatformDisplay::setSharedDisplayForCompositing(*this); + } diff --git a/www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk-web-extension_pc_in b/www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk-web-extension_pc_in new file mode 100644 index 0000000..f3426ac --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk-web-extension_pc_in @@ -0,0 +1,10 @@ +Index: Source/WebKit/gtk/webkit2gtk-web-extension.pc.in +--- Source/WebKit/gtk/webkit2gtk-web-extension.pc.in.orig ++++ Source/WebKit/gtk/webkit2gtk-web-extension.pc.in +@@ -9,5 +9,5 @@ Description: Web content engine for GTK - web process + URL: https://webkitgtk.org + Version: @PROJECT_VERSION@ + Requires: glib-2.0 @GTK_PC_NAME@ libsoup-@SOUP_API_VERSION@ javascriptcoregtk-@WEBKITGTK_API_VERSION@ +-Libs: -L${libdir} -lwebkit2gtk-@WEBKITGTK_API_VERSION@ ++Libs: -L${libdir} -lwebkit2gtk-@WEBKITGTK_API_VERSION@ -Wl,-z,wxneeded + Cflags: -I${includedir}/webkitgtk-@WEBKITGTK_API_VERSION@ diff --git a/www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk_pc_in b/www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk_pc_in new file mode 100644 index 0000000..563d209 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk_pc_in @@ -0,0 +1,10 @@ +Index: Source/WebKit/gtk/webkit2gtk.pc.in +--- Source/WebKit/gtk/webkit2gtk.pc.in.orig ++++ Source/WebKit/gtk/webkit2gtk.pc.in +@@ -9,5 +9,5 @@ Description: Web content engine for GTK + URL: https://webkitgtk.org + Version: @PROJECT_VERSION@ + Requires: glib-2.0 @GTK_PC_NAME@ libsoup-@SOUP_API_VERSION@ javascriptcoregtk-@WEBKITGTK_API_VERSION@ +-Libs: -L${libdir} -lwebkit2gtk-@WEBKITGTK_API_VERSION@ ++Libs: -L${libdir} -lwebkit2gtk-@WEBKITGTK_API_VERSION@ -Wl,-z,wxneeded + Cflags: -I${includedir}/webkitgtk-@WEBKITGTK_API_VERSION@ diff --git a/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_cpp b/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_cpp new file mode 100644 index 0000000..d24ab0f --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_cpp @@ -0,0 +1,89 @@ +Index: Source/bmalloc/bmalloc/AvailableMemory.cpp +--- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig ++++ Source/bmalloc/bmalloc/AvailableMemory.cpp +@@ -44,11 +44,15 @@ + #import + #import + #elif BOS(UNIX) ++#if BOS(OPENBSD) ++#include ++#else + #include ++#endif + #if BOS(LINUX) + #include + #include +-#elif BOS(FREEBSD) ++#elif BOS(FREEBSD) || BOS(OPENBSD) + #include "VMAllocate.h" + #include + #include +@@ -164,6 +168,24 @@ static size_t computeAvailableMemory() + if (!sysinfo(&info)) + return info.totalram * info.mem_unit; + return availableMemoryGuess; ++#elif BOS(OPENBSD) ++ struct uvmexp uvmexp; ++ size_t length; ++ static int uvmexp_mib [] = { CTL_VM, VM_UVMEXP }; ++ long pages; ++ long pageSize = sysconf(_SC_PAGE_SIZE); ++ if (pageSize == -1) ++ return availableMemoryGuess; ++ length = sizeof (uvmexp); ++ if (sysctl(uvmexp_mib, std::size(uvmexp_mib), &uvmexp, &length, NULL, 0) == 0) ++ return uvmexp.npages * pageSize; ++ else { ++ bzero(&uvmexp, sizeof(length)); ++ pages = sysconf(_SC_PHYS_PAGES); ++ if (pages == -1) ++ return availableMemoryGuess; ++ return pages * pageSize; ++ } + #elif BOS(UNIX) + long pages = sysconf(_SC_PHYS_PAGES); + long pageSize = sysconf(_SC_PAGE_SIZE); +@@ -178,14 +200,19 @@ static size_t computeAvailableMemory() + size_t availableMemory() + { + static size_t availableMemory; ++#if BOS(OPENBSD) ++ // We always calculate the available memory because we take care... ++ availableMemory = computeAvailableMemory(); ++#else + static std::once_flag onceFlag; + std::call_once(onceFlag, [] { + availableMemory = computeAvailableMemory(); + }); ++#endif + return availableMemory; + } + +-#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD) ++#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD) || BOS(OPENBSD) + MemoryStatus memoryStatus() + { + #if BPLATFORM(IOS_FAMILY) +@@ -211,6 +238,22 @@ MemoryStatus memoryStatus() + size_t memoryFootprint = 0; + if (!sysctl(mib, 4, &info, &infolen, nullptr, 0)) + memoryFootprint = static_cast(info.ki_rssize) * vmPageSize(); ++#elif BOS(OPENBSD) ++ size_t memoryFootprint = 0, length; ++ struct kinfo_proc *info; ++ int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, getpid(), sizeof(struct kinfo_proc), 0 }; ++ ++ if (sysctl(mib, std::size(mib), NULL, &length, NULL, 0) == 0) { ++ info = (struct kinfo_proc *)malloc(length); ++ mib[5] = (length / sizeof(struct kinfo_proc)); ++ if (sysctl(mib, std::size(mib), info, &length, NULL, 0) == 0) { ++ memoryFootprint = static_cast( ++ info->p_vm_tsize + ++ info->p_vm_dsize + ++ info->p_vm_ssize) * vmPageSize(); ++ } ++ free(info); ++ } + #endif + + double percentInUse = static_cast(memoryFootprint) / static_cast(availableMemory()); diff --git a/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h b/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h new file mode 100644 index 0000000..fab7c0c --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h @@ -0,0 +1,21 @@ +Index: Source/bmalloc/bmalloc/AvailableMemory.h +--- Source/bmalloc/bmalloc/AvailableMemory.h.orig ++++ Source/bmalloc/bmalloc/AvailableMemory.h +@@ -32,7 +32,7 @@ namespace bmalloc { + + BEXPORT size_t availableMemory(); + +-#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD) ++#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD) || BOS(OPENBSD) + struct MemoryStatus { + MemoryStatus(size_t memoryFootprint, double percentAvailableMemoryInUse) + : memoryFootprint(memoryFootprint) +@@ -61,7 +61,7 @@ inline double percentAvailableMemoryInUse() + + inline bool isUnderMemoryPressure() + { +-#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD) ++#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD) || BOS(OPENBSD) + return percentAvailableMemoryInUse() > memoryPressureThreshold; + #else + return false; diff --git a/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_BPlatform_h b/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_BPlatform_h new file mode 100644 index 0000000..076f6f3 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_BPlatform_h @@ -0,0 +1,14 @@ +Index: Source/bmalloc/bmalloc/BPlatform.h +--- Source/bmalloc/bmalloc/BPlatform.h.orig ++++ Source/bmalloc/bmalloc/BPlatform.h +@@ -52,6 +52,10 @@ + #define BOS_FREEBSD 1 + #endif + ++#if defined(__OpenBSD__) ++#define BOS_OPENBSD 1 ++#endif ++ + #if defined(WIN32) || defined(_WIN32) + #define BOS_WINDOWS 1 + #endif diff --git a/www/webkitgtk4/patches/patch-Source_cmake_OptionsCommon_cmake b/www/webkitgtk4/patches/patch-Source_cmake_OptionsCommon_cmake new file mode 100644 index 0000000..cb01e64 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_cmake_OptionsCommon_cmake @@ -0,0 +1,16 @@ +Put the internal library path first so that we can +build with an older webkitgtk4 package installed. + +Index: Source/cmake/OptionsCommon.cmake +--- Source/cmake/OptionsCommon.cmake.orig ++++ Source/cmake/OptionsCommon.cmake +@@ -180,6 +180,9 @@ if (NOT PORT STREQUAL "GTK" AND NOT PORT STREQUAL "WPE + set(LIBEXEC_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Absolute path to install executables executed by the library") + endif () + ++# make sure that the internal library dir is the first in the path ++link_directories("${CMAKE_BINARY_DIR}/lib") ++ + # Check whether features.h header exists. + # Including glibc's one defines __GLIBC__, that is used in Platform.h + WEBKIT_CHECK_HAVE_INCLUDE(HAVE_FEATURES_H features.h) diff --git a/www/webkitgtk4/patches/patch-Source_cmake_WebKitCommon_cmake b/www/webkitgtk4/patches/patch-Source_cmake_WebKitCommon_cmake new file mode 100644 index 0000000..0a30949 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_cmake_WebKitCommon_cmake @@ -0,0 +1,43 @@ +Index: Source/cmake/WebKitCommon.cmake +--- Source/cmake/WebKitCommon.cmake.orig ++++ Source/cmake/WebKitCommon.cmake +@@ -106,7 +106,7 @@ if (NOT HAS_RUN_WEBKIT_COMMON) + endif () + elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(i[3-6]86|x86)") + set(WTF_CPU_X86 1) +- elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc") ++ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(ppc|powerpc)") + set(WTF_CPU_PPC 1) + elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64") + set(WTF_CPU_PPC64 1) +@@ -114,6 +114,8 @@ if (NOT HAS_RUN_WEBKIT_COMMON) + set(WTF_CPU_PPC64LE 1) + elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^riscv64") + set(WTF_CPU_RISCV64 1) ++ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "sparc64") ++ set(WTF_CPU_SPARC64 1) + else () + set(WTF_CPU_UNKNOWN 1) + endif () +@@ -185,9 +187,9 @@ if (NOT HAS_RUN_WEBKIT_COMMON) + # We cannot check for RUBY_FOUND because it is set only when the full package is installed and + # the only thing we need is the interpreter. Unlike Python, cmake does not provide a macro + # for finding only the Ruby interpreter. +- find_package(Ruby 1.9) +- if (NOT RUBY_EXECUTABLE OR RUBY_VERSION VERSION_LESS 1.9) +- message(FATAL_ERROR "Ruby 1.9 or higher is required.") ++ find_package(Ruby 3.0) ++ if (NOT RUBY_EXECUTABLE OR RUBY_VERSION VERSION_LESS 3.0) ++ message(FATAL_ERROR "Ruby 3.0 or higher is required.") + endif () + + # ----------------------------------------------------------------------------- +@@ -199,7 +201,7 @@ if (NOT HAS_RUN_WEBKIT_COMMON) + include(CheckCXXCompilerFlag) + include(CheckCXXSourceCompiles) + include(CheckFunctionExists) +- include(CheckIncludeFile) ++ include(CheckIncludeFiles) + include(CheckSymbolExists) + include(CheckStructHasMember) + include(CheckTypeSize) diff --git a/www/webkitgtk4/patches/patch-Source_cmake_WebKitCompilerFlags_cmake b/www/webkitgtk4/patches/patch-Source_cmake_WebKitCompilerFlags_cmake new file mode 100644 index 0000000..df36054 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_cmake_WebKitCompilerFlags_cmake @@ -0,0 +1,16 @@ +Index: Source/cmake/WebKitCompilerFlags.cmake +--- Source/cmake/WebKitCompilerFlags.cmake.orig ++++ Source/cmake/WebKitCompilerFlags.cmake +@@ -260,9 +260,9 @@ if (NOT MSVC) + string(REGEX MATCHALL "-fsanitize=[^ ]*" ENABLED_COMPILER_SANITIZERS ${CMAKE_CXX_FLAGS}) + endif () + +-if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS) +- set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}") +-endif () ++#if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS) ++# set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}") ++#endif () + + + if (MSVC) diff --git a/www/webkitgtk4/patches/patch-Source_cmake_WebKitFeatures_cmake b/www/webkitgtk4/patches/patch-Source_cmake_WebKitFeatures_cmake new file mode 100644 index 0000000..b1047a3 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_cmake_WebKitFeatures_cmake @@ -0,0 +1,12 @@ +Index: Source/cmake/WebKitFeatures.cmake +--- Source/cmake/WebKitFeatures.cmake.orig ++++ Source/cmake/WebKitFeatures.cmake +@@ -404,7 +404,7 @@ macro(CREATE_CONFIGURATION_HEADER) + endmacro() + + macro(WEBKIT_CHECK_HAVE_INCLUDE _variable _header) +- check_include_file(${_header} ${_variable}_value) ++ check_include_files("${_header}" ${_variable}_value) + SET_AND_EXPOSE_TO_BUILD(${_variable} ${${_variable}_value}) + endmacro() + diff --git a/www/webkitgtk4/pkg/CVS/Entries b/www/webkitgtk4/pkg/CVS/Entries new file mode 100644 index 0000000..dc807f7 --- /dev/null +++ b/www/webkitgtk4/pkg/CVS/Entries @@ -0,0 +1,3 @@ +/DESCR/1.1.1.1/Tue Sep 30 08:25:28 2014// +/PLIST/1.24/Sat Mar 26 16:11:56 2022// +D diff --git a/www/webkitgtk4/pkg/CVS/Repository b/www/webkitgtk4/pkg/CVS/Repository new file mode 100644 index 0000000..5d2cc25 --- /dev/null +++ b/www/webkitgtk4/pkg/CVS/Repository @@ -0,0 +1 @@ +ports/www/webkitgtk4/pkg diff --git a/www/webkitgtk4/pkg/CVS/Root b/www/webkitgtk4/pkg/CVS/Root new file mode 100644 index 0000000..3811072 --- /dev/null +++ b/www/webkitgtk4/pkg/CVS/Root @@ -0,0 +1 @@ +/cvs diff --git a/www/webkitgtk4/pkg/DESCR b/www/webkitgtk4/pkg/DESCR new file mode 100644 index 0000000..4e1d6e7 --- /dev/null +++ b/www/webkitgtk4/pkg/DESCR @@ -0,0 +1,4 @@ +WebKitGTK+ is the GNOME platform port of the WebKit rendering engine. +Offering WebKit's full functionality through a set of GObject-based +APIs, it is suitable for projects requiring any kind of web integration, +from hybrid HTML/CSS applications to full-fledged web browsers. diff --git a/www/webkitgtk4/pkg/PLIST b/www/webkitgtk4/pkg/PLIST new file mode 100644 index 0000000..fd147d2 --- /dev/null +++ b/www/webkitgtk4/pkg/PLIST @@ -0,0 +1,290 @@ +@bin bin/WebKitWebDriver +include/webkitgtk-${API}/ +include/webkitgtk-${API}/JavaScriptCore/ +include/webkitgtk-${API}/JavaScriptCore/JSBase.h +include/webkitgtk-${API}/JavaScriptCore/JSContextRef.h +include/webkitgtk-${API}/JavaScriptCore/JSObjectRef.h +include/webkitgtk-${API}/JavaScriptCore/JSStringRef.h +include/webkitgtk-${API}/JavaScriptCore/JSTypedArray.h +include/webkitgtk-${API}/JavaScriptCore/JSValueRef.h +include/webkitgtk-${API}/JavaScriptCore/JavaScript.h +include/webkitgtk-${API}/JavaScriptCore/WebKitAvailability.h +include/webkitgtk-${API}/jsc/ +include/webkitgtk-${API}/jsc/JSCAutocleanups.h +include/webkitgtk-${API}/jsc/JSCClass.h +include/webkitgtk-${API}/jsc/JSCContext.h +include/webkitgtk-${API}/jsc/JSCDefines.h +include/webkitgtk-${API}/jsc/JSCException.h +include/webkitgtk-${API}/jsc/JSCOptions.h +include/webkitgtk-${API}/jsc/JSCValue.h +include/webkitgtk-${API}/jsc/JSCVersion.h +include/webkitgtk-${API}/jsc/JSCVirtualMachine.h +include/webkitgtk-${API}/jsc/JSCWeakValue.h +include/webkitgtk-${API}/jsc/jsc.h +include/webkitgtk-${API}/webkit2/ +include/webkitgtk-${API}/webkit2/WebKitApplicationInfo.h +include/webkitgtk-${API}/webkit2/WebKitAuthenticationRequest.h +include/webkitgtk-${API}/webkit2/WebKitAutocleanups.h +include/webkitgtk-${API}/webkit2/WebKitAutomationSession.h +include/webkitgtk-${API}/webkit2/WebKitBackForwardList.h +include/webkitgtk-${API}/webkit2/WebKitBackForwardListItem.h +include/webkitgtk-${API}/webkit2/WebKitColorChooserRequest.h +include/webkitgtk-${API}/webkit2/WebKitConsoleMessage.h +include/webkitgtk-${API}/webkit2/WebKitContextMenu.h +include/webkitgtk-${API}/webkit2/WebKitContextMenuActions.h +include/webkitgtk-${API}/webkit2/WebKitContextMenuItem.h +include/webkitgtk-${API}/webkit2/WebKitCookieManager.h +include/webkitgtk-${API}/webkit2/WebKitCredential.h +include/webkitgtk-${API}/webkit2/WebKitDefines.h +include/webkitgtk-${API}/webkit2/WebKitDeviceInfoPermissionRequest.h +include/webkitgtk-${API}/webkit2/WebKitDownload.h +include/webkitgtk-${API}/webkit2/WebKitEditingCommands.h +include/webkitgtk-${API}/webkit2/WebKitEditorState.h +include/webkitgtk-${API}/webkit2/WebKitEnumTypes.h +include/webkitgtk-${API}/webkit2/WebKitError.h +include/webkitgtk-${API}/webkit2/WebKitFaviconDatabase.h +include/webkitgtk-${API}/webkit2/WebKitFileChooserRequest.h +include/webkitgtk-${API}/webkit2/WebKitFindController.h +include/webkitgtk-${API}/webkit2/WebKitFormSubmissionRequest.h +include/webkitgtk-${API}/webkit2/WebKitForwardDeclarations.h +include/webkitgtk-${API}/webkit2/WebKitFrame.h +include/webkitgtk-${API}/webkit2/WebKitGeolocationManager.h +include/webkitgtk-${API}/webkit2/WebKitGeolocationPermissionRequest.h +include/webkitgtk-${API}/webkit2/WebKitHitTestResult.h +include/webkitgtk-${API}/webkit2/WebKitInputMethodContext.h +include/webkitgtk-${API}/webkit2/WebKitInstallMissingMediaPluginsPermissionRequest.h +include/webkitgtk-${API}/webkit2/WebKitJavascriptResult.h +include/webkitgtk-${API}/webkit2/WebKitMediaKeySystemPermissionRequest.h +include/webkitgtk-${API}/webkit2/WebKitMemoryPressureSettings.h +include/webkitgtk-${API}/webkit2/WebKitMimeInfo.h +include/webkitgtk-${API}/webkit2/WebKitNavigationAction.h +include/webkitgtk-${API}/webkit2/WebKitNavigationPolicyDecision.h +include/webkitgtk-${API}/webkit2/WebKitNetworkProxySettings.h +include/webkitgtk-${API}/webkit2/WebKitNotification.h +include/webkitgtk-${API}/webkit2/WebKitNotificationPermissionRequest.h +include/webkitgtk-${API}/webkit2/WebKitOptionMenu.h +include/webkitgtk-${API}/webkit2/WebKitOptionMenuItem.h +include/webkitgtk-${API}/webkit2/WebKitPermissionRequest.h +include/webkitgtk-${API}/webkit2/WebKitPlugin.h +include/webkitgtk-${API}/webkit2/WebKitPointerLockPermissionRequest.h +include/webkitgtk-${API}/webkit2/WebKitPolicyDecision.h +include/webkitgtk-${API}/webkit2/WebKitPrintCustomWidget.h +include/webkitgtk-${API}/webkit2/WebKitPrintOperation.h +include/webkitgtk-${API}/webkit2/WebKitResponsePolicyDecision.h +include/webkitgtk-${API}/webkit2/WebKitScriptDialog.h +include/webkitgtk-${API}/webkit2/WebKitScriptWorld.h +include/webkitgtk-${API}/webkit2/WebKitSecurityManager.h +include/webkitgtk-${API}/webkit2/WebKitSecurityOrigin.h +include/webkitgtk-${API}/webkit2/WebKitSettings.h +include/webkitgtk-${API}/webkit2/WebKitURIRequest.h +include/webkitgtk-${API}/webkit2/WebKitURIResponse.h +include/webkitgtk-${API}/webkit2/WebKitURISchemeRequest.h +include/webkitgtk-${API}/webkit2/WebKitURISchemeResponse.h +include/webkitgtk-${API}/webkit2/WebKitURIUtilities.h +include/webkitgtk-${API}/webkit2/WebKitUserContent.h +include/webkitgtk-${API}/webkit2/WebKitUserContentFilterStore.h +include/webkitgtk-${API}/webkit2/WebKitUserContentManager.h +include/webkitgtk-${API}/webkit2/WebKitUserMediaPermissionRequest.h +include/webkitgtk-${API}/webkit2/WebKitUserMessage.h +include/webkitgtk-${API}/webkit2/WebKitVersion.h +include/webkitgtk-${API}/webkit2/WebKitWebContext.h +include/webkitgtk-${API}/webkit2/WebKitWebEditor.h +include/webkitgtk-${API}/webkit2/WebKitWebExtension.h +include/webkitgtk-${API}/webkit2/WebKitWebExtensionAutocleanups.h +include/webkitgtk-${API}/webkit2/WebKitWebHitTestResult.h +include/webkitgtk-${API}/webkit2/WebKitWebInspector.h +include/webkitgtk-${API}/webkit2/WebKitWebPage.h +include/webkitgtk-${API}/webkit2/WebKitWebProcessEnumTypes.h +include/webkitgtk-${API}/webkit2/WebKitWebResource.h +include/webkitgtk-${API}/webkit2/WebKitWebView.h +include/webkitgtk-${API}/webkit2/WebKitWebViewBase.h +include/webkitgtk-${API}/webkit2/WebKitWebViewSessionState.h +include/webkitgtk-${API}/webkit2/WebKitWebsiteData.h +include/webkitgtk-${API}/webkit2/WebKitWebsiteDataAccessPermissionRequest.h +include/webkitgtk-${API}/webkit2/WebKitWebsiteDataManager.h +include/webkitgtk-${API}/webkit2/WebKitWebsitePolicies.h +include/webkitgtk-${API}/webkit2/WebKitWindowProperties.h +include/webkitgtk-${API}/webkit2/webkit-web-extension.h +include/webkitgtk-${API}/webkit2/webkit2.h +include/webkitgtk-${API}/webkitdom/ +include/webkitgtk-${API}/webkitdom/WebKitDOMAttr.h +include/webkitgtk-${API}/webkitdom/WebKitDOMBlob.h +include/webkitgtk-${API}/webkitdom/WebKitDOMCDATASection.h +include/webkitgtk-${API}/webkitdom/WebKitDOMCSSRule.h +include/webkitgtk-${API}/webkitdom/WebKitDOMCSSRuleList.h +include/webkitgtk-${API}/webkitdom/WebKitDOMCSSStyleDeclaration.h +include/webkitgtk-${API}/webkitdom/WebKitDOMCSSStyleSheet.h +include/webkitgtk-${API}/webkitdom/WebKitDOMCSSValue.h +include/webkitgtk-${API}/webkitdom/WebKitDOMCharacterData.h +include/webkitgtk-${API}/webkitdom/WebKitDOMClientRect.h +include/webkitgtk-${API}/webkitdom/WebKitDOMClientRectList.h +include/webkitgtk-${API}/webkitdom/WebKitDOMComment.h +include/webkitgtk-${API}/webkitdom/WebKitDOMCustom.h +include/webkitgtk-${API}/webkitdom/WebKitDOMCustomUnstable.h +include/webkitgtk-${API}/webkitdom/WebKitDOMDOMImplementation.h +include/webkitgtk-${API}/webkitdom/WebKitDOMDOMSelection.h +include/webkitgtk-${API}/webkitdom/WebKitDOMDOMTokenList.h +include/webkitgtk-${API}/webkitdom/WebKitDOMDOMWindow.h +include/webkitgtk-${API}/webkitdom/WebKitDOMDOMWindowUnstable.h +include/webkitgtk-${API}/webkitdom/WebKitDOMDeprecated.h +include/webkitgtk-${API}/webkitdom/WebKitDOMDocument.h +include/webkitgtk-${API}/webkitdom/WebKitDOMDocumentFragment.h +include/webkitgtk-${API}/webkitdom/WebKitDOMDocumentFragmentUnstable.h +include/webkitgtk-${API}/webkitdom/WebKitDOMDocumentType.h +include/webkitgtk-${API}/webkitdom/WebKitDOMDocumentUnstable.h +include/webkitgtk-${API}/webkitdom/WebKitDOMElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMElementUnstable.h +include/webkitgtk-${API}/webkitdom/WebKitDOMEvent.h +include/webkitgtk-${API}/webkitdom/WebKitDOMEventTarget.h +include/webkitgtk-${API}/webkitdom/WebKitDOMFile.h +include/webkitgtk-${API}/webkitdom/WebKitDOMFileList.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLAnchorElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLAppletElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLAreaElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLBRElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLBaseElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLBodyElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLButtonElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLCanvasElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLCollection.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLDListElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLDirectoryElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLDivElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLDocument.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLElementUnstable.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLEmbedElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLFieldSetElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLFontElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLFormElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLFrameElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLFrameSetElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLHRElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLHeadElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLHeadingElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLHtmlElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLIFrameElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLImageElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLInputElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLLIElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLLabelElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLLegendElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLLinkElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLMapElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLMarqueeElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLMenuElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLMetaElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLModElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLOListElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLObjectElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLOptGroupElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLOptionElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLOptionsCollection.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLParagraphElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLParamElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLPreElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLQuoteElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLScriptElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLSelectElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLStyleElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTableCaptionElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTableCellElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTableColElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTableElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTableRowElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTableSectionElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTextAreaElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTitleElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLUListElement.h +include/webkitgtk-${API}/webkitdom/WebKitDOMKeyboardEvent.h +include/webkitgtk-${API}/webkitdom/WebKitDOMMediaList.h +include/webkitgtk-${API}/webkitdom/WebKitDOMMouseEvent.h +include/webkitgtk-${API}/webkitdom/WebKitDOMNamedNodeMap.h +include/webkitgtk-${API}/webkitdom/WebKitDOMNode.h +include/webkitgtk-${API}/webkitdom/WebKitDOMNodeFilter.h +include/webkitgtk-${API}/webkitdom/WebKitDOMNodeIterator.h +include/webkitgtk-${API}/webkitdom/WebKitDOMNodeList.h +include/webkitgtk-${API}/webkitdom/WebKitDOMObject.h +include/webkitgtk-${API}/webkitdom/WebKitDOMProcessingInstruction.h +include/webkitgtk-${API}/webkitdom/WebKitDOMRange.h +include/webkitgtk-${API}/webkitdom/WebKitDOMRangeUnstable.h +include/webkitgtk-${API}/webkitdom/WebKitDOMStyleSheet.h +include/webkitgtk-${API}/webkitdom/WebKitDOMStyleSheetList.h +include/webkitgtk-${API}/webkitdom/WebKitDOMText.h +include/webkitgtk-${API}/webkitdom/WebKitDOMTreeWalker.h +include/webkitgtk-${API}/webkitdom/WebKitDOMUIEvent.h +include/webkitgtk-${API}/webkitdom/WebKitDOMWheelEvent.h +include/webkitgtk-${API}/webkitdom/WebKitDOMXPathExpression.h +include/webkitgtk-${API}/webkitdom/WebKitDOMXPathNSResolver.h +include/webkitgtk-${API}/webkitdom/WebKitDOMXPathResult.h +include/webkitgtk-${API}/webkitdom/webkitdom.h +include/webkitgtk-${API}/webkitdom/webkitdomautocleanups.h +include/webkitgtk-${API}/webkitdom/webkitdomdefines.h +lib/girepository-1.0/JavaScriptCore-${API}.typelib +lib/girepository-1.0/WebKit2-${API}.typelib +lib/girepository-1.0/WebKit2WebExtension-${API}.typelib +@lib lib/libjavascriptcoregtk-${API}.so.${LIBjavascriptcoregtk-${API}_VERSION} +@lib lib/libwebkit2gtk-${API}.so.${LIBwebkit2gtk-${API}_VERSION} +lib/pkgconfig/javascriptcoregtk-${API}.pc +lib/pkgconfig/webkit2gtk-${API}.pc +lib/pkgconfig/webkit2gtk-web-extension-${API}.pc +lib/webkit2gtk-${API}/ +lib/webkit2gtk-${API}/injected-bundle/ +@so lib/webkit2gtk-${API}/injected-bundle/libwebkit2gtkinjectedbundle.so +libexec/webkit2gtk-${API}/ +@bin libexec/webkit2gtk-${API}/MiniBrowser +@bin libexec/webkit2gtk-${API}/WebKitNetworkProcess +@bin libexec/webkit2gtk-${API}/WebKitWebProcess +@bin libexec/webkit2gtk-${API}/jsc +share/gir-1.0/JavaScriptCore-${API}.gir +share/gir-1.0/WebKit2-${API}.gir +share/gir-1.0/WebKit2WebExtension-${API}.gir +share/locale/ar/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/as/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/bg/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/ca/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/cs/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/da/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/de/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/el/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/en_CA/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/en_GB/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/eo/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/es/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/et/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/eu/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/fi/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/fr/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/gl/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/gu/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/he/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/hi/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/hu/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/id/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/it/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/ja/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/kn/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/ko/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/lt/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/lv/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/ml/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/mr/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/nb/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/nl/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/or/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/pa/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/pl/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/pt/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/pt_BR/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/ro/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/ru/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/sl/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/sr/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/sr@latin/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/sv/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/ta/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/te/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/tr/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/uk/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/vi/LC_MESSAGES/WebKit2GTK-${API}.mo +share/locale/zh_CN/LC_MESSAGES/WebKit2GTK-${API}.mo -- cgit v1.2.3