webkitgtk3: Upgrade to 2.48.0
PATCH 1/1 webkitgtk3: Upgrade to 2.48.0
* Drop backports already present in this release
* Add couple of patches to fix build with clang-20
* Refresh patches e.g. no-musttail-arm.patch
Signed-off-by Khem Raj <[email protected]>
---
...04-main-7ffc29624258-.-https-bugs.we.patch | 75 ++++++
...or-no-matching-function-for-call-to-.patch | 77 ++++++
...1-Fix-build-issues-with-latest-Clang.patch | 237 ------------------
...ter.cpp-339-21-error-t6-was-not-decl.patch | 35 ---
.../0001-Support-ICU-76.1-build.patch | 36 ---
...d5e22213fdaca2a29ec3400c927d710a37a8.patch | 65 -----
...b1773bff2ef7c3b867ab019d69faa36c010d.patch | 33 ---
.../webkitgtk3/no-musttail-arm.patch | 24 +-
...kitgtk3_2.44.3.bb => webkitgtk3_2.48.0.bb} | 11 +-
9 files changed, 171 insertions(+), 422 deletions(-)
create mode 100644 meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-Cherry-pick-292304-main-7ffc29624258-.-https-bugs.we.patch
create mode 100644 meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-EnumTraits.h-error-no-matching-function-for-call-to-.patch
delete mode 100644 meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-Fix-build-issues-with-latest-Clang.patch
delete mode 100644 meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-LowLevelInterpreter.cpp-339-21-error-t6-was-not-decl.patch
delete mode 100644 meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-Support-ICU-76.1-build.patch
delete mode 100644 meta-oe/recipes-support/webkitgtk/webkitgtk3/30e1d5e22213fdaca2a29ec3400c927d710a37a8.patch
delete mode 100644 meta-oe/recipes-support/webkitgtk/webkitgtk3/fff1b1773bff2ef7c3b867ab019d69faa36c010d.patch
rename meta-oe/recipes-support/webkitgtk/{webkitgtk3_2.44.3.bb => webkitgtk3_2.48.0.bb} (95%)meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-Cherry-pick-292304-main-7ffc29624258-.-https-bugs.we.patch new file +75 -0
@@ -0,0 +1,75 @@ +From 83093455d02d73a327cea502d974aac82b59ad17 Mon Sep 17 00:00:00 2001 +From: Adrian Perez de Castro <[email protected]> +Date: Tue, 18 Mar 2025 07:39:01 -0700 +Subject: [PATCH] Cherry-pick 292304@main (7ffc29624258). + https://bugs.webkit.org/show_bug.cgi?id=289953 + + [GTK][WPE] Use _LIBCPP_HARDENING_MODE with newer libc++ versions + https://bugs.webkit.org/show_bug.cgi?id=289953 + + Reviewed by Alicia Boya Garcia. + + * Source/cmake/OptionsCommon.cmake: Add a new check for the libc++ + version, if it is 19 or newer, use the new _LIBCPP_HARDENING_MODE + macro, otherwise for older versions keep _LIBCPP_ENABLE_ASSERTIONS. + + Canonical link: https://commits.webkit.org/292304@main + +Upstream-Status: Backport [https://github.com/WebKit/WebKit/commit/2c105443d41e5ce3de3a4cac2ed8a07ebd134459] + +Canonical link: https://commits.webkit.org/290945.71@webkitglib/2.48 + +Signed-off-by: Khem Raj <[email protected]> +--- + Source/cmake/OptionsCommon.cmake | 24 +++++++++++++++++++----- + 1 file changed, 19 insertions(+), 5 deletions(-) + +diff --git a/Source/cmake/OptionsCommon.cmake b/Source/cmake/OptionsCommon.cmake +index f6cf5ee..3178674 100644 +--- a/Source/cmake/OptionsCommon.cmake ++++ b/Source/cmake/OptionsCommon.cmake +@@ -229,8 +229,22 @@ set(CXX_STDLIB_TEST_SOURCE " + ") + check_cxx_source_compiles("${CXX_STDLIB_TEST_SOURCE}" CXX_STDLIB_IS_LIBCPP) + if (CXX_STDLIB_IS_LIBCPP) +- set(CXX_STDLIB_VARIANT "LIBCPP") +- set(CXX_STDLIB_ASSERTIONS_MACRO _LIBCPP_ENABLE_ASSERTIONS) ++ set(CXX_STDLIB_TEST_SOURCE " ++ #include <utility> ++ #if _LIBCPP_VERSION >= 190000 ++ int main() { } ++ #else ++ #error libc++ is older than 19.x ++ #endif ++ ") ++ check_cxx_source_compiles("${CXX_STDLIB_TEST_SOURCE}" CXX_STDLIB_IS_LIBCPP_19_OR_NEWER) ++ if (CXX_STDLIB_IS_LIBCPP_19_OR_NEWER) ++ set(CXX_STDLIB_VARIANT "LIBCPP 19+") ++ set(CXX_STDLIB_ASSERTIONS_MACRO _LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE) ++ else () ++ set(CXX_STDLIB_VARIANT "LIBCPP <19") ++ set(CXX_STDLIB_ASSERTIONS_MACRO _LIBCPP_ENABLE_ASSERTIONS=1) ++ endif () + else () + set(CXX_STDLIB_TEST_SOURCE " + #include <utility> +@@ -239,7 +253,7 @@ else () + check_cxx_source_compiles("${CXX_STDLIB_TEST_SOURCE}" CXX_STDLIB_IS_GLIBCXX) + if (CXX_STDLIB_IS_GLIBCXX) + set(CXX_STDLIB_VARIANT "GLIBCXX") +- set(CXX_STDLIB_ASSERTIONS_MACRO _GLIBCXX_ASSERTIONS) ++ set(CXX_STDLIB_ASSERTIONS_MACRO _GLIBCXX_ASSERTIONS=1) + endif () + endif () + message(STATUS "C++ standard library in use: ${CXX_STDLIB_VARIANT}") +@@ -255,8 +269,8 @@ option(USE_CXX_STDLIB_ASSERTIONS + + if (USE_CXX_STDLIB_ASSERTIONS) + if (CXX_STDLIB_ASSERTIONS_MACRO) +- message(STATUS " Assertions enabled, ${CXX_STDLIB_ASSERTIONS_MACRO}=1") +- add_compile_definitions("${CXX_STDLIB_ASSERTIONS_MACRO}=1") ++ message(STATUS " Assertions enabled, ${CXX_STDLIB_ASSERTIONS_MACRO}") ++ add_compile_definitions("${CXX_STDLIB_ASSERTIONS_MACRO}") + else () + message(STATUS " Assertions disabled, CXX_STDLIB_ASSERTIONS_MACRO undefined") + endif ()
meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-EnumTraits.h-error-no-matching-function-for-call-to-.patch new file +77 -0
77 lines not on this page · raw message
meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-Fix-build-issues-with-latest-Clang.patch deleted +0 -237
237 lines not on this page · raw message
meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-LowLevelInterpreter.cpp-339-21-error-t6-was-not-decl.patch deleted +0 -35
@@ -1,35 +0,0 @@ -From fb81a5de7798eb7f68e0de1c281671553e1aa19d Mon Sep 17 00:00:00 2001 -From: Michael Catanzaro <[email protected]> -Date: Mon, 5 Feb 2024 11:00:49 -0600 -Subject: [PATCH] =?UTF-8?q?LowLevelInterpreter.cpp:339:21:=20error:=20?= - =?UTF-8?q?=E2=80=98t6=E2=80=99=20was=20not=20declared=20in=20this=20scope?= - =?UTF-8?q?=20https://bugs.webkit.org/show=5Fbug.cgi=3Fid=3D268739?= -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Unreviewed build fix. Seems a backport went badly, and we didn't notice -because the code is architecture-specific. - -* Source/JavaScriptCore/llint/LowLevelInterpreter.cpp: -(JSC::CLoop::execute): - -Upstream-Status: Backport [https://github.com/WebKit/WebKit/commit/3d5373575695b293b8559155431d0079a6153aff] -Signed-off-by: Khem Raj <[email protected]> ---- - Source/JavaScriptCore/llint/LowLevelInterpreter.cpp | 2 -- - 1 file changed, 2 deletions(-) - -diff --git a/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp b/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp -index 75cecbbd..b1020ea4 100644 ---- a/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp -+++ b/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp -@@ -336,8 +336,6 @@ JSValue CLoop::execute(OpcodeID entryOpcodeID, void* executableAddress, VM* vm, - UNUSED_VARIABLE(t2); - UNUSED_VARIABLE(t3); - UNUSED_VARIABLE(t5); -- UNUSED_VARIABLE(t6); -- UNUSED_VARIABLE(t7); - - struct StackPointerScope { - StackPointerScope(CLoopStack& stack)
meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-Support-ICU-76.1-build.patch deleted +0 -36
@@ -1,36 +0,0 @@ -From 57b80aa00be614218552fda67b2bf8d535b4f4cf Mon Sep 17 00:00:00 2001 -From: Jason Schonberg <[email protected]> -Date: Wed, 20 Nov 2024 11:05:52 -0500 -Subject: [PATCH] Support ICU 76.1 build - -https://bugs.webkit.org/show_bug.cgi?id=282120 - -Reviewed by Yusuke Suzuki. - -In ICU 76.1 an additional macro `U_SHOW_CPLUSPLUS_HEADER_API` was added to -control visibility of the C++ API within ICU. Set this value to `0` since WebKit -wants to only use the C API. - -* Source/WTF/wtf/Platform.h: - -Canonical link: https://commits.webkit.org/285727@main - -Upstream-Status: Backport [ from webkitgtk-2.47.1 https://github.com/WebKit/WebKit/commit/63f7badbada070ebaadd318b2801818ecf7e7ea0 ] - -Signed-off-by: Jason Schonberg <[email protected]> ---- - Source/WTF/wtf/Platform.h | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h -index 23070df2..51a8dce9 100644 ---- a/Source/WTF/wtf/Platform.h -+++ b/Source/WTF/wtf/Platform.h -@@ -115,6 +115,7 @@ - /* 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 -+#define U_SHOW_CPLUSPLUS_HEADER_API 0 - #ifdef __cplusplus - #define UCHAR_TYPE char16_t - #endif
meta-oe/recipes-support/webkitgtk/webkitgtk3/30e1d5e22213fdaca2a29ec3400c927d710a37a8.patch deleted +0 -65
65 lines not on this page · raw message
meta-oe/recipes-support/webkitgtk/webkitgtk3/fff1b1773bff2ef7c3b867ab019d69faa36c010d.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From fff1b1773bff2ef7c3b867ab019d69faa36c010d Mon Sep 17 00:00:00 2001 -From: Michael Catanzaro <[email protected]> -Date: Wed, 3 Jul 2024 13:36:54 -0700 -Subject: [PATCH] WebKitDOMEventTarget.h:95: Warning: WebKit2WebExtension: - invalid "scope" annotation: only valid on callback parameters - https://bugs.webkit.org/show_bug.cgi?id=276180 - -Unreviewed build fix. - -Emmanuele recommends using (type gpointer) for the GCallback parameter -of webkit_dom_event_target_remove_event_listener, since it won't be -called and is therefore not functioning as a callback. - -* Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h: - -Canonical link: https://commits.webkit.org/280639@main -Upstream-Status: Backport [https://github.com/WebKit/WebKit/commit/fff1b1773bff2ef7c3b867ab019d69faa36c010d] -Signed-off-by: Khem Raj <[email protected]> ---- - .../InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h -+++ b/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h -@@ -92,7 +92,7 @@ WEBKIT_DEPRECATED gboolean webkit_dom_e - * webkit_dom_event_target_remove_event_listener: - * @target: A #WebKitDOMEventTarget - * @event_name: A #gchar -- * @handler: (scope call): A #GCallback -+ * @handler: (type gpointer): A #GCallback - * @use_capture: A #gboolean - * - * Returns: a #gboolean
meta-oe/recipes-support/webkitgtk/webkitgtk3/no-musttail-arm.patch +14 -10
@@ -1,6 +1,6 @@ -From c50f2277509f2e6f087cda2eaf323eaf569aad8d Mon Sep 17 00:00:00 2001 +From 4602261fa44d6bbb4c3698c79e08a6a40a6edc5a Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> -Date: Sat, 30 Sep 2023 12:42:06 -0700 +Date: Fri, 12 Jan 2024 09:21:39 -0800 Subject: [PATCH] clang/arm: Do not use MUST_TAIL_CALL This causes clang-17 to crash see [1]
@@ -9,22 +9,26 @@ this code is new in webkit 2.42[2] thats why we do not see the crash in older we [1] https://github.com/llvm/llvm-project/issues/67767 [2] https://github.com/WebKit/WebKit/commit/4d816460b765acd8aef90ab474615850b91ecc35 -Upstream-Status: Pending +Upstream-Status: Inappropriate [work around to avoid clang compiler crash] Signed-off-by: Khem Raj <[email protected]> + +Update context for webkitgtk 2.48.0. + +Signed-off-by: Kai Kang <[email protected]> --- Source/WTF/wtf/Compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/WTF/wtf/Compiler.h b/Source/WTF/wtf/Compiler.h -index 449ca502..daac29d7 100644 +index 16e416d..68dd9a0 100644 --- a/Source/WTF/wtf/Compiler.h +++ b/Source/WTF/wtf/Compiler.h -@@ -321,7 +321,7 @@ - /* MUST_TAIL_CALL */ - +@@ -293,7 +293,7 @@ + #if COMPILER(CLANG) + #if __SIZEOF_POINTER__ == 8 #if !defined(MUST_TAIL_CALL) && defined(__cplusplus) && defined(__has_cpp_attribute) --#if __has_cpp_attribute(clang::musttail) -+#if __has_cpp_attribute(clang::musttail) && !defined(__arm__) +-#if __has_cpp_attribute(clang::musttail) && !defined(__powerpc__) && !defined(_WIN32) ++#if __has_cpp_attribute(clang::musttail) && !defined(__powerpc__) && !defined(_WIN32) && !defined(__arm__) #define MUST_TAIL_CALL [[clang::musttail]] - #endif + #define HAVE_MUST_TAIL_CALL 1 #endif
meta-oe/recipes-support/webkitgtk/webkitgtk3_2.48.0.bb renamed from meta-oe/recipes-support/webkitgtk/webkitgtk3_2.44.3.bb +5 -6
@@ -17,13 +17,10 @@ SRC_URI = "https://www.webkitgtk.org/releases/webkitgtk-${PV}.tar.xz \ file://0001-FindGObjectIntrospection.cmake-prefix-variables-obta.patch \ file://reproducibility.patch \ file://no-musttail-arm.patch \ - file://0001-LowLevelInterpreter.cpp-339-21-error-t6-was-not-decl.patch \ - file://30e1d5e22213fdaca2a29ec3400c927d710a37a8.patch \ - file://0001-Fix-build-issues-with-latest-Clang.patch \ - file://fff1b1773bff2ef7c3b867ab019d69faa36c010d.patch \ - file://0001-Support-ICU-76.1-build.patch \ + file://0001-Cherry-pick-292304-main-7ffc29624258-.-https-bugs.we.patch \ + file://0001-EnumTraits.h-error-no-matching-function-for-call-to-.patch \ " -SRC_URI[sha256sum] = "dc82d042ecaca981a4852357c06e5235743319cf10a94cd36ad41b97883a0b54" +SRC_URI[sha256sum] = "94904a55cf12d44a4e36ceadafff02d46da73d76be9b4769f34cbfdf0eebf88e" inherit cmake pkgconfig gobject-introspection perlnative features_check upstream-version-is-even gi-docgen
@@ -92,6 +89,8 @@ PACKAGECONFIG[gamepad] = "-DENABLE_GAMEPAD=ON,-DENABLE_GAMEPAD=OFF,libmanette" PACKAGECONFIG[webrtc] = "-DENABLE_WEB_RTC=ON,-DENABLE_WEB_RTC=OFF" PACKAGECONFIG[bubblewrap] = "-DENABLE_BUBBLEWRAP_SANDBOX=ON -DBWRAP_EXECUTABLE=${bindir}/bwrap -DDBUS_PROXY_EXECUTABLE=${bindir}/xdg-dbus-proxy,-DENABLE_BUBBLEWRAP_SANDBOX=OFF,,bubblewrap xdg-dbus-proxy" PACKAGECONFIG[backtrace] = "-DUSE_LIBBACKTRACE=ON,-DUSE_LIBBACKTRACE=OFF,libbacktrace" +PACKAGECONFIG[sysprof-capture] = "-DUSE_SYSTEM_SYSPROF_CAPTURE=YES,-DUSE_SYSTEM_SYSPROF_CAPTURE=NO,sysprof" +PACKAGECONFIG[speech] = "-DENABLE_SPEECH_SYNTHESIS=ON,-DENABLE_SPEECH_SYNTHESIS=OFF,flite" EXTRA_OECMAKE = " \ -DPORT=GTK \