diff mbox series

[meta-oe,2/2] webkitgtk3: Fix build on RISCV32

Message ID 20250321180308.1071453-2-raj.khem@gmail.com
State New
Headers show
Series [meta-oe,1/2] webkitgtk3: Fix build with clang and riscv | expand

Commit Message

Khem Raj March 21, 2025, 6:03 p.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../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
diff mbox series

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 <raj.khem@gmail.com>
+--- 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)
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 \