webkitgtk3: Fix build with clang and riscv
PATCH 1/2 webkitgtk3: Fix build with clang and riscv
Signed-off-by Khem Raj <[email protected]>
--- ...-on-RISCV-https-bugs.webkit.org-show.patch | 30 +++++++++++++++++++ .../webkitgtk/webkitgtk3_2.48.0.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-Fix-build-errors-on-RISCV-https-bugs.webkit.org-show.patch
meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-Fix-build-errors-on-RISCV-https-bugs.webkit.org-show.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 984538dcce7b184269efc1e1b0fb78e1cb932b5d Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 21 Mar 2025 01:21:22 -0700 +Subject: [PATCH] Fix build errors on RISCV + https://bugs.webkit.org/show_bug.cgi?id=290163 + +Reviewed by NOBODY (OOPS!). + +Include c++ header <system_error> for std::error_code. + +* Source/WebCore/contentextensions/ContentExtensionActions.h: Include system_error + +Upstream-Status: Submitted [https://github.com/WebKit/WebKit/pull/42802] +Signed-off-by: Khem Raj <[email protected]> +--- + Source/WebCore/contentextensions/ContentExtensionActions.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Source/WebCore/contentextensions/ContentExtensionActions.h b/Source/WebCore/contentextensions/ContentExtensionActions.h +index 0b75d2e1df78..61cb33c94ce8 100644 +--- a/Source/WebCore/contentextensions/ContentExtensionActions.h ++++ b/Source/WebCore/contentextensions/ContentExtensionActions.h +@@ -28,6 +28,7 @@ + #if ENABLE(CONTENT_EXTENSIONS) + + #include "ContentExtensionStringSerialization.h" ++#include <system_error> + #include <wtf/JSONValues.h> + #include <wtf/Hasher.h> +
meta-oe/recipes-support/webkitgtk/webkitgtk3_2.48.0.bb +1 -0
@@ -19,6 +19,7 @@ SRC_URI = "https://www.webkitgtk.org/releases/webkitgtk-${PV}.tar.xz \ file://no-musttail-arm.patch \ file://0001-Cherry-pick-292304-main-7ffc29624258-.-https-bugs.we.patch \ file://0001-EnumTraits.h-error-no-matching-function-for-call-to-.patch \ + file://0001-Fix-build-errors-on-RISCV-https-bugs.webkit.org-show.patch \ " SRC_URI[sha256sum] = "94904a55cf12d44a4e36ceadafff02d46da73d76be9b4769f34cbfdf0eebf88e"
PATCH 2/2 webkitgtk3: Fix build on RISCV32
Signed-off-by Khem Raj <[email protected]>
--- .../webkitgtk/webkitgtk3/sys_futex.patch | 16 ++++++++++++++++ .../webkitgtk/webkitgtk3_2.48.0.bb | 1 + 2 files changed, 17 insertions(+) create mode 100644 meta-oe/recipes-support/webkitgtk/webkitgtk3/sys_futex.patch
meta-oe/recipes-support/webkitgtk/webkitgtk3/sys_futex.patch new file +16 -0
@@ -0,0 +1,16 @@ +Fix build on newer 32bit architectures with only 64bit time_t + +Upstream-Status: Submitted [https://chromium-review.googlesource.com/c/angle/angle/+/6108397] +Signed-off-by: Khem Raj <[email protected]> +--- a/Source/ThirdParty/ANGLE/src/common/SimpleMutex.cpp ++++ b/Source/ThirdParty/ANGLE/src/common/SimpleMutex.cpp +@@ -17,6 +17,9 @@ + # include <linux/futex.h> + # include <sys/syscall.h> + # include <unistd.h> ++# if !defined(SYS_futex) && defined(SYS_futex_time64) ++# define SYS_futex SYS_futex_time64 ++# endif + # endif // defined(ANGLE_PLATFORM_LINUX) || defined(ANGLE_PLATFORM_ANDROID) + + # if defined(ANGLE_PLATFORM_WINDOWS)
meta-oe/recipes-support/webkitgtk/webkitgtk3_2.48.0.bb +1 -0
@@ -17,6 +17,7 @@ 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://sys_futex.patch \ file://0001-Cherry-pick-292304-main-7ffc29624258-.-https-bugs.we.patch \ file://0001-EnumTraits.h-error-no-matching-function-for-call-to-.patch \ file://0001-Fix-build-errors-on-RISCV-https-bugs.webkit.org-show.patch \