From 3f08abfc9cf20a34869673d4d6b9b105db960cc2 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 21 Mar 2025 09:53:28 -0700 Subject: webkitgtk3: Fix build on RISCV32 Signed-off-by: Khem Raj --- .../recipes-support/webkitgtk/webkitgtk3/sys_futex.patch | 16 ++++++++++++++++ meta-oe/recipes-support/webkitgtk/webkitgtk3_2.48.0.bb | 1 + 2 files changed, 17 insertions(+) create mode 100644 meta-oe/recipes-support/webkitgtk/webkitgtk3/sys_futex.patch diff --git a/meta-oe/recipes-support/webkitgtk/webkitgtk3/sys_futex.patch b/meta-oe/recipes-support/webkitgtk/webkitgtk3/sys_futex.patch new file mode 100644 index 0000000000..19d18dea88 --- /dev/null +++ b/meta-oe/recipes-support/webkitgtk/webkitgtk3/sys_futex.patch @@ -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 +--- a/Source/ThirdParty/ANGLE/src/common/SimpleMutex.cpp ++++ b/Source/ThirdParty/ANGLE/src/common/SimpleMutex.cpp +@@ -17,6 +17,9 @@ + # include + # include + # include ++# 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) diff --git a/meta-oe/recipes-support/webkitgtk/webkitgtk3_2.48.0.bb b/meta-oe/recipes-support/webkitgtk/webkitgtk3_2.48.0.bb index 10c2576407..291e922df0 100644 --- a/meta-oe/recipes-support/webkitgtk/webkitgtk3_2.48.0.bb +++ b/meta-oe/recipes-support/webkitgtk/webkitgtk3_2.48.0.bb @@ -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 \ -- cgit v1.2.3-54-g00ecf