From ab376e94b9a9e9403315743500150103b080330c Mon Sep 17 00:00:00 2001 From: "Douglas R. Reno" Date: Fri, 21 Apr 2023 15:54:25 -0500 Subject: [PATCH] Update to WebKitGTK+-2.40.1 I used Bruce's advice for the GTK3/GTK4 split here. It can definitely be improved upon if desired. --- introduction/welcome/changelog.xml | 4 +++ packages.ent | 2 +- x/lib/webkitgtk.xml | 58 ++++++++++++++++++++++++++---- 3 files changed, 56 insertions(+), 8 deletions(-) diff --git a/introduction/welcome/changelog.xml b/introduction/welcome/changelog.xml index 7ed1b2e840..3368bdf72d 100644 --- a/introduction/welcome/changelog.xml +++ b/introduction/welcome/changelog.xml @@ -41,6 +41,10 @@ April 21st, 2023 + + [renodr] - Update to WebKitGTK+-2.40.1 (Security Update). Fixes + #17801. + [bdubbs] - Update to pipewire-0.3.70. Fixes #17969. diff --git a/packages.ent b/packages.ent index 08e254a263..d7d0ee8840 100644 --- a/packages.ent +++ b/packages.ent @@ -841,7 +841,7 @@ to avoid building libxml2 twice, which is slow with all deps --> - + diff --git a/x/lib/webkitgtk.xml b/x/lib/webkitgtk.xml index bf228b944a..a8af8e8476 100644 --- a/x/lib/webkitgtk.xml +++ b/x/lib/webkitgtk.xml @@ -6,10 +6,10 @@ - - + + - + ]> @@ -89,6 +89,7 @@ , , , + , , , , @@ -118,7 +119,6 @@ , , - , , , , @@ -148,6 +148,17 @@ patch -Np1 -i ../webkitgtk-&webkitgtk-version;-upstream_fix-1.patch --> + + + This package allows building with either GTK-3 or GTK-4, but not both + in the same build. To build the GTK-4 version for packages such as + Epiphany, make sure to set -DUSE_GTK4=ON. For other packages, such as + Balsa or Evolution, the GTK-3 version is required, so set + -DUSE_GTK4=OFF if you want to build this package to use those + applications. Both versions can be installed on the same system. + + + Install WebKitGTK by running the following commands: @@ -166,6 +177,7 @@ cmake -DCMAKE_BUILD_TYPE=Release \ -DENABLE_MINIBROWSER=ON \ -DENABLE_DOCUMENTATION=OFF \ -DUSE_WOFF2=OFF \ + -DUSE_GTK4=[ON or OFF] \ -DUSE_WPE_RENDERER=ON \ -DENABLE_BUBBLEWRAP_SANDBOX=OFF \ -Wno-dev -G Ninja .. && @@ -184,6 +196,7 @@ cmake -DCMAKE_BUILD_TYPE=Release \ -DENABLE_MINIBROWSER=ON \ -DENABLE_DOCUMENTATION=OFF \ -DUSE_WOFF2=OFF \ + -DUSE_GTK4=[ON or OFF] \ -DUSE_WPE_RENDERER=ON \ -DENABLE_JOURNALD_LOG=OFF \ -DENABLE_BUBBLEWRAP_SANDBOX=OFF \ @@ -332,12 +345,16 @@ install -vm644 ../Documentation/webkit2gtk-web-extension-4.1/* \ WebKitWebDriver - libjavascriptcoregtk-4.1.so and - libwebkit2gtk-4.1.so + libjavascriptcoregtk-4.1.so, + libjavascriptcoregtk-6.0.so, + libwebkit2gtk-4.1.so, and + libwebkitgtk-6.0.so /usr/include/webkitgtk-4.1, - /usr/lib{,exec}/webkit2gtk-4.1, and + /usr/include/webkitgtk-6.0, + /usr/lib{,exec}/webkit2gtk-4.1, + /usr/lib{,exec}/webkitgtk-6.0, and /usr/share/gtk-doc/html/{jsc-glib,webkit2gtk{,-web-extension}}-4.1 @@ -402,6 +419,20 @@ install -vm644 ../Documentation/webkit2gtk-web-extension-4.1/* \ + + libjavascriptcoregtk-6.0.so + + + contains core JavaScript API functions used by + jsc and + libwebkitgtk-6.0.so + + + libjavascriptcoregtk-6.0.so + + + + libwebkit2gtk-4.1.so @@ -414,6 +445,19 @@ install -vm644 ../Documentation/webkit2gtk-web-extension-4.1/* \ + + libwebkitgtk-6.0.so + + + contains the WebKit API functions for + GTK-4 applications + + + libwebkitgtk-6.0.so + + + +