summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-sato/webkit/webkitgtk/0001-ANGLE-do-not-enable-SSE-on-x86.patch26
-rw-r--r--meta/recipes-sato/webkit/webkitgtk/0001-Enable-THREADS_PREFER_PTHREAD_FLAG.patch10
-rw-r--r--meta/recipes-sato/webkit/webkitgtk/0001-MiniBrowser-Fix-reproduciblity.patch31
-rw-r--r--meta/recipes-sato/webkit/webkitgtk/include_xutil.patch8
-rw-r--r--meta/recipes-sato/webkit/webkitgtk/musl-lower-stack-usage.patch14
-rw-r--r--meta/recipes-sato/webkit/webkitgtk_2.34.0.bb (renamed from meta/recipes-sato/webkit/webkitgtk_2.32.3.bb)23
6 files changed, 55 insertions, 57 deletions
diff --git a/meta/recipes-sato/webkit/webkitgtk/0001-ANGLE-do-not-enable-SSE-on-x86.patch b/meta/recipes-sato/webkit/webkitgtk/0001-ANGLE-do-not-enable-SSE-on-x86.patch
new file mode 100644
index 0000000000..1c6ba97037
--- /dev/null
+++ b/meta/recipes-sato/webkit/webkitgtk/0001-ANGLE-do-not-enable-SSE-on-x86.patch
@@ -0,0 +1,26 @@
1From c71a4e18afb4869a0fbb0efd59c4860b72f493f7 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Tue, 5 Oct 2021 13:32:28 +0200
4Subject: [PATCH] ANGLE: do not enable SSE on x86
5
6The code does not actually build there.
7
8Upstream-Status: Pending
9Signed-off-by: Alexander Kanavin <alex@linutronix.de>
10---
11 Source/ThirdParty/ANGLE/src/common/platform.h | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/Source/ThirdParty/ANGLE/src/common/platform.h b/Source/ThirdParty/ANGLE/src/common/platform.h
15index 41f3cf4f..cab85a82 100644
16--- a/Source/ThirdParty/ANGLE/src/common/platform.h
17+++ b/Source/ThirdParty/ANGLE/src/common/platform.h
18@@ -89,7 +89,7 @@
19 #if defined(_MSC_VER) && !defined(_M_ARM) && !defined(_M_ARM64)
20 # include <intrin.h>
21 # define ANGLE_USE_SSE
22-#elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))
23+#elif defined(__GNUC__) && (defined(__x86_64__))
24 # include <x86intrin.h>
25 # define ANGLE_USE_SSE
26 #endif
diff --git a/meta/recipes-sato/webkit/webkitgtk/0001-Enable-THREADS_PREFER_PTHREAD_FLAG.patch b/meta/recipes-sato/webkit/webkitgtk/0001-Enable-THREADS_PREFER_PTHREAD_FLAG.patch
index 6d7d7067e4..a65cfc8b5a 100644
--- a/meta/recipes-sato/webkit/webkitgtk/0001-Enable-THREADS_PREFER_PTHREAD_FLAG.patch
+++ b/meta/recipes-sato/webkit/webkitgtk/0001-Enable-THREADS_PREFER_PTHREAD_FLAG.patch
@@ -1,4 +1,4 @@
1From acf26a385d17a59ccd4b767d6303ec3dbf78e788 Mon Sep 17 00:00:00 2001 1From b055bd199f9c40148334725a227796c0d7d14788 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 3 Feb 2020 17:06:27 -0800 3Date: Mon, 3 Feb 2020 17:06:27 -0800
4Subject: [PATCH] Enable THREADS_PREFER_PTHREAD_FLAG 4Subject: [PATCH] Enable THREADS_PREFER_PTHREAD_FLAG
@@ -20,11 +20,11 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
20 2 files changed, 2 insertions(+) 20 2 files changed, 2 insertions(+)
21 21
22diff --git a/Source/cmake/OptionsGTK.cmake b/Source/cmake/OptionsGTK.cmake 22diff --git a/Source/cmake/OptionsGTK.cmake b/Source/cmake/OptionsGTK.cmake
23index f316f49..de81ce0 100644 23index 3cb5a495..dfba9900 100644
24--- a/Source/cmake/OptionsGTK.cmake 24--- a/Source/cmake/OptionsGTK.cmake
25+++ b/Source/cmake/OptionsGTK.cmake 25+++ b/Source/cmake/OptionsGTK.cmake
26@@ -6,6 +6,7 @@ WEBKIT_OPTION_BEGIN() 26@@ -7,6 +7,7 @@ SET_PROJECT_VERSION(2 34 0)
27 SET_PROJECT_VERSION(2 32 3) 27
28 28
29 set(USER_AGENT_BRANDING "" CACHE STRING "Branding to add to user agent string") 29 set(USER_AGENT_BRANDING "" CACHE STRING "Branding to add to user agent string")
30+set(THREADS_PREFER_PTHREAD_FLAG ON) 30+set(THREADS_PREFER_PTHREAD_FLAG ON)
@@ -32,7 +32,7 @@ index f316f49..de81ce0 100644
32 find_package(Cairo 1.14.0 REQUIRED) 32 find_package(Cairo 1.14.0 REQUIRED)
33 find_package(Fontconfig 2.8.0 REQUIRED) 33 find_package(Fontconfig 2.8.0 REQUIRED)
34diff --git a/Source/cmake/OptionsJSCOnly.cmake b/Source/cmake/OptionsJSCOnly.cmake 34diff --git a/Source/cmake/OptionsJSCOnly.cmake b/Source/cmake/OptionsJSCOnly.cmake
35index 1066440..d9aca95 100644 35index e892b427..73bf9e4d 100644
36--- a/Source/cmake/OptionsJSCOnly.cmake 36--- a/Source/cmake/OptionsJSCOnly.cmake
37+++ b/Source/cmake/OptionsJSCOnly.cmake 37+++ b/Source/cmake/OptionsJSCOnly.cmake
38@@ -1,3 +1,4 @@ 38@@ -1,3 +1,4 @@
diff --git a/meta/recipes-sato/webkit/webkitgtk/0001-MiniBrowser-Fix-reproduciblity.patch b/meta/recipes-sato/webkit/webkitgtk/0001-MiniBrowser-Fix-reproduciblity.patch
deleted file mode 100644
index 98d2d1ded9..0000000000
--- a/meta/recipes-sato/webkit/webkitgtk/0001-MiniBrowser-Fix-reproduciblity.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From dcf9ae0dc0b4510eddbeeea09e11edfb123f95af Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 2 May 2021 13:10:49 -0700
4Subject: [PATCH] MiniBrowser: Fix reproduciblity
5
6Do not emit references to source dir in generated sourcecode
7
8Upstream-Status: Submitted [https://bugs.webkit.org/show_bug.cgi?id=225283]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 Tools/MiniBrowser/gtk/CMakeLists.txt | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/Tools/MiniBrowser/gtk/CMakeLists.txt b/Tools/MiniBrowser/gtk/CMakeLists.txt
15index 93b62521..482d3b00 100644
16--- a/Tools/MiniBrowser/gtk/CMakeLists.txt
17+++ b/Tools/MiniBrowser/gtk/CMakeLists.txt
18@@ -51,8 +51,8 @@ add_custom_command(
19 OUTPUT ${MiniBrowser_DERIVED_SOURCES_DIR}/BrowserMarshal.c
20 ${MiniBrowser_DERIVED_SOURCES_DIR}/BrowserMarshal.h
21 MAIN_DEPENDENCY ${MiniBrowser_DIR}/browser-marshal.list
22- COMMAND glib-genmarshal --prefix=browser_marshal ${MiniBrowser_DIR}/browser-marshal.list --body > ${MiniBrowser_DERIVED_SOURCES_DIR}/BrowserMarshal.c
23- COMMAND glib-genmarshal --prefix=browser_marshal ${MiniBrowser_DIR}/browser-marshal.list --header > ${MiniBrowser_DERIVED_SOURCES_DIR}/BrowserMarshal.h
24+ COMMAND glib-genmarshal --prefix=browser_marshal ${MiniBrowser_DIR}/browser-marshal.list --body --skip-source > ${MiniBrowser_DERIVED_SOURCES_DIR}/BrowserMarshal.c
25+ COMMAND glib-genmarshal --prefix=browser_marshal ${MiniBrowser_DIR}/browser-marshal.list --header --skip-source > ${MiniBrowser_DERIVED_SOURCES_DIR}/BrowserMarshal.h
26 VERBATIM)
27
28 if (USE_GTK4)
29--
302.31.1
31
diff --git a/meta/recipes-sato/webkit/webkitgtk/include_xutil.patch b/meta/recipes-sato/webkit/webkitgtk/include_xutil.patch
index ffe1b74be3..e7a4cc25ad 100644
--- a/meta/recipes-sato/webkit/webkitgtk/include_xutil.patch
+++ b/meta/recipes-sato/webkit/webkitgtk/include_xutil.patch
@@ -1,4 +1,4 @@
1From d95f46e149226f634830e76cc1f4f8e3ee04ff5a Mon Sep 17 00:00:00 2001 1From 2cc9d445b4c8eb70c2ab6c1723dfd208218f103e Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Fri, 6 Nov 2020 04:38:13 +0100 3Date: Fri, 6 Nov 2020 04:38:13 +0100
4Subject: [PATCH] webkitgtk: fix build with x11 enabled 4Subject: [PATCH] webkitgtk: fix build with x11 enabled
@@ -21,12 +21,12 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
21 1 file changed, 1 insertion(+) 21 1 file changed, 1 insertion(+)
22 22
23diff --git a/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp b/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp 23diff --git a/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp b/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp
24index 2d66b9cd..424fb5a1 100644 24index bad56eba..fc141f98 100644
25--- a/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp 25--- a/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp
26+++ b/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp 26+++ b/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp
27@@ -30,6 +30,7 @@ 27@@ -31,6 +31,7 @@
28
29 #if PLATFORM(X11) 28 #if PLATFORM(X11)
29 #include <X11/Xatom.h>
30 #include <X11/Xlib.h> 30 #include <X11/Xlib.h>
31+#include <X11/Xutil.h> 31+#include <X11/Xutil.h>
32 #include <X11/extensions/Xcomposite.h> 32 #include <X11/extensions/Xcomposite.h>
diff --git a/meta/recipes-sato/webkit/webkitgtk/musl-lower-stack-usage.patch b/meta/recipes-sato/webkit/webkitgtk/musl-lower-stack-usage.patch
index f71f8452fd..d8d36fad6b 100644
--- a/meta/recipes-sato/webkit/webkitgtk/musl-lower-stack-usage.patch
+++ b/meta/recipes-sato/webkit/webkitgtk/musl-lower-stack-usage.patch
@@ -1,4 +1,4 @@
1From 04e4999c6fa2e9810634745a07f1e380f27b8e61 Mon Sep 17 00:00:00 2001 1From 358a8f053c367aab7fba8ab059244e0530c7ff82 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 17 Mar 2021 13:24:57 -0700 3Date: Wed, 17 Mar 2021 13:24:57 -0700
4Subject: [PATCH] reduce thread stack and heap usage for javascriptcore on musl 4Subject: [PATCH] reduce thread stack and heap usage for javascriptcore on musl
@@ -25,10 +25,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
25 2 files changed, 19 insertions(+), 3 deletions(-) 25 2 files changed, 19 insertions(+), 3 deletions(-)
26 26
27diff --git a/Source/JavaScriptCore/runtime/OptionsList.h b/Source/JavaScriptCore/runtime/OptionsList.h 27diff --git a/Source/JavaScriptCore/runtime/OptionsList.h b/Source/JavaScriptCore/runtime/OptionsList.h
28index bb6d2f1d..a6209742 100644 28index a0c2170e..9e107af7 100644
29--- a/Source/JavaScriptCore/runtime/OptionsList.h 29--- a/Source/JavaScriptCore/runtime/OptionsList.h
30+++ b/Source/JavaScriptCore/runtime/OptionsList.h 30+++ b/Source/JavaScriptCore/runtime/OptionsList.h
31@@ -71,6 +71,18 @@ JS_EXPORT_PRIVATE bool canUseJITCage(); 31@@ -77,6 +77,18 @@ bool canUseWebAssemblyFastMemory();
32 // On instantiation of the first VM instance, the Options will be write protected 32 // On instantiation of the first VM instance, the Options will be write protected
33 // and cannot be modified thereafter. 33 // and cannot be modified thereafter.
34 34
@@ -47,7 +47,7 @@ index bb6d2f1d..a6209742 100644
47 #define FOR_EACH_JSC_OPTION(v) \ 47 #define FOR_EACH_JSC_OPTION(v) \
48 v(Bool, useKernTCSM, defaultTCSMValue(), Normal, "Note: this needs to go before other options since they depend on this value.") \ 48 v(Bool, useKernTCSM, defaultTCSMValue(), Normal, "Note: this needs to go before other options since they depend on this value.") \
49 v(Bool, validateOptions, false, Normal, "crashes if mis-typed JSC options were passed to the VM") \ 49 v(Bool, validateOptions, false, Normal, "crashes if mis-typed JSC options were passed to the VM") \
50@@ -86,9 +98,9 @@ JS_EXPORT_PRIVATE bool canUseJITCage(); 50@@ -92,9 +104,9 @@ bool canUseWebAssemblyFastMemory();
51 \ 51 \
52 v(Bool, reportMustSucceedExecutableAllocations, false, Normal, nullptr) \ 52 v(Bool, reportMustSucceedExecutableAllocations, false, Normal, nullptr) \
53 \ 53 \
@@ -61,11 +61,11 @@ index bb6d2f1d..a6209742 100644
61 v(Bool, crashOnDisallowedVMEntry, ASSERT_ENABLED, Normal, "Forces a crash if we attempt to enter the VM when disallowed") \ 61 v(Bool, crashOnDisallowedVMEntry, ASSERT_ENABLED, Normal, "Forces a crash if we attempt to enter the VM when disallowed") \
62 v(Bool, crashIfCantAllocateJITMemory, false, Normal, nullptr) \ 62 v(Bool, crashIfCantAllocateJITMemory, false, Normal, nullptr) \
63diff --git a/Source/WTF/wtf/Threading.h b/Source/WTF/wtf/Threading.h 63diff --git a/Source/WTF/wtf/Threading.h b/Source/WTF/wtf/Threading.h
64index 9495d6c1..190b3811 100644 64index 178f9808..95ec5a85 100644
65--- a/Source/WTF/wtf/Threading.h 65--- a/Source/WTF/wtf/Threading.h
66+++ b/Source/WTF/wtf/Threading.h 66+++ b/Source/WTF/wtf/Threading.h
67@@ -60,6 +60,10 @@ 67@@ -67,6 +67,10 @@
68 #include <dispatch/dispatch.h> 68 #undef None
69 #endif 69 #endif
70 70
71+#if OS(LINUX) && !defined(__GLIBC__) 71+#if OS(LINUX) && !defined(__GLIBC__)
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.32.3.bb b/meta/recipes-sato/webkit/webkitgtk_2.34.0.bb
index db2357002c..25e1d422cc 100644
--- a/meta/recipes-sato/webkit/webkitgtk_2.32.3.bb
+++ b/meta/recipes-sato/webkit/webkitgtk_2.34.0.bb
@@ -18,10 +18,10 @@ SRC_URI = "https://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \
18 file://include_xutil.patch \ 18 file://include_xutil.patch \
19 file://reduce-memory-overheads.patch \ 19 file://reduce-memory-overheads.patch \
20 file://musl-lower-stack-usage.patch \ 20 file://musl-lower-stack-usage.patch \
21 file://0001-MiniBrowser-Fix-reproduciblity.patch \ 21 file://0001-ANGLE-do-not-enable-SSE-on-x86.patch \
22 " 22 "
23 23
24SRC_URI[sha256sum] = "c1f496f5ac654efe4cef62fbd4f2fbeeef265a07c5e7419e5d2900bfeea52cbc" 24SRC_URI[sha256sum] = "880c8ee626f67019f67557ca09e59a23ecf245e60f6173215f1a8823cb09af34"
25 25
26inherit cmake pkgconfig gobject-introspection perlnative features_check upstream-version-is-even gtk-doc 26inherit cmake pkgconfig gobject-introspection perlnative features_check upstream-version-is-even gtk-doc
27 27
@@ -38,7 +38,7 @@ DEPENDS = " \
38 atk \ 38 atk \
39 libwebp \ 39 libwebp \
40 gtk+3 \ 40 gtk+3 \
41 libsoup-2.4 \ 41 libsoup \
42 libxslt \ 42 libxslt \
43 libtasn1 \ 43 libtasn1 \
44 libnotify \ 44 libnotify \
@@ -48,12 +48,13 @@ DEPENDS = " \
48 48
49PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd wayland x11', d)} \ 49PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd wayland x11', d)} \
50 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'webgl opengl', '', d)} \ 50 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'webgl opengl', '', d)} \
51 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'webgl gles2', d)} \ 51 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'webgl gles2 angle', d)} \
52 enchant \ 52 enchant \
53 libsecret \ 53 libsecret \
54 " 54 "
55 55
56PACKAGECONFIG[wayland] = "-DENABLE_WAYLAND_TARGET=ON,-DENABLE_WAYLAND_TARGET=OFF,wayland libwpe wpebackend-fdo wayland-native" 56PACKAGECONFIG[wayland] = "-DENABLE_WAYLAND_TARGET=ON,-DENABLE_WAYLAND_TARGET=OFF,wayland libwpe wpebackend-fdo wayland-native"
57PACKAGECONFIG[angle] = "-DUSE_ANGLE_WEBGL=ON,-DUSE_ANGLE_WEBGL=OFF"
57PACKAGECONFIG[x11] = "-DENABLE_X11_TARGET=ON,-DENABLE_X11_TARGET=OFF,virtual/libx11 libxcomposite libxdamage libxrender libxt" 58PACKAGECONFIG[x11] = "-DENABLE_X11_TARGET=ON,-DENABLE_X11_TARGET=OFF,virtual/libx11 libxcomposite libxdamage libxrender libxt"
58PACKAGECONFIG[geoclue] = "-DENABLE_GEOLOCATION=ON,-DENABLE_GEOLOCATION=OFF,geoclue" 59PACKAGECONFIG[geoclue] = "-DENABLE_GEOLOCATION=ON,-DENABLE_GEOLOCATION=OFF,geoclue"
59PACKAGECONFIG[enchant] = "-DENABLE_SPELLCHECK=ON,-DENABLE_SPELLCHECK=OFF,enchant2" 60PACKAGECONFIG[enchant] = "-DENABLE_SPELLCHECK=ON,-DENABLE_SPELLCHECK=OFF,enchant2"
@@ -66,6 +67,7 @@ PACKAGECONFIG[woff2] = "-DUSE_WOFF2=ON,-DUSE_WOFF2=OFF,woff2"
66PACKAGECONFIG[openjpeg] = "-DUSE_OPENJPEG=ON,-DUSE_OPENJPEG=OFF,openjpeg" 67PACKAGECONFIG[openjpeg] = "-DUSE_OPENJPEG=ON,-DUSE_OPENJPEG=OFF,openjpeg"
67PACKAGECONFIG[systemd] = "-DUSE_SYSTEMD=ON,-DUSE_SYSTEMD=off,systemd" 68PACKAGECONFIG[systemd] = "-DUSE_SYSTEMD=ON,-DUSE_SYSTEMD=off,systemd"
68PACKAGECONFIG[reduce-size] = "-DCMAKE_BUILD_TYPE=MinSizeRel,-DCMAKE_BUILD_TYPE=Release,," 69PACKAGECONFIG[reduce-size] = "-DCMAKE_BUILD_TYPE=MinSizeRel,-DCMAKE_BUILD_TYPE=Release,,"
70PACKAGECONFIG[lcms] = "-DUSE_LCMS=ON,-DUSE_LCMS=OFF,lcms"
69 71
70# webkitgtk is full of /usr/bin/env python, particular for generating docs 72# webkitgtk is full of /usr/bin/env python, particular for generating docs
71do_configure[postfuncs] += "setup_python_link" 73do_configure[postfuncs] += "setup_python_link"
@@ -120,7 +122,7 @@ EXTRA_OECMAKE:append:x86-x32 = " -DENABLE_JIT=OFF "
120SECURITY_CFLAGS:remove:aarch64 = "-fpie" 122SECURITY_CFLAGS:remove:aarch64 = "-fpie"
121SECURITY_CFLAGS:append:aarch64 = " -fPIE" 123SECURITY_CFLAGS:append:aarch64 = " -fPIE"
122 124
123FILES:${PN} += "${libdir}/webkit2gtk-4.0/injected-bundle/libwebkit2gtkinjectedbundle.so" 125FILES:${PN} += "${libdir}/webkit2gtk-4.1/injected-bundle/libwebkit2gtkinjectedbundle.so"
124 126
125RRECOMMENDS:${PN} += "ca-certificates shared-mime-info" 127RRECOMMENDS:${PN} += "ca-certificates shared-mime-info"
126 128
@@ -149,10 +151,11 @@ PACKAGE_PREPROCESS_FUNCS += "src_package_preprocess"
149src_package_preprocess () { 151src_package_preprocess () {
150 # Trim build paths from comments in generated sources to ensure reproducibility 152 # Trim build paths from comments in generated sources to ensure reproducibility
151 sed -i -e "s,${WORKDIR},,g" \ 153 sed -i -e "s,${WORKDIR},,g" \
152 ${B}/DerivedSources/webkit2gtk/webkit2/*.cpp \ 154 ${B}/JavaScriptCore/DerivedSources/*.h \
153 ${B}/DerivedSources/ForwardingHeaders/JavaScriptCore/*.h \ 155 ${B}/JavaScriptCore/DerivedSources/yarr/*.h \
154 ${B}/DerivedSources/JavaScriptCore/*.h \ 156 ${B}/JavaScriptCore/PrivateHeaders/JavaScriptCore/*.h \
155 ${B}/DerivedSources/JavaScriptCore/yarr/*.h \ 157 ${B}/WebKit2Gtk/DerivedSources/webkit2/*.cpp \
156 ${B}/DerivedSources/MiniBrowser/*.c 158 ${B}/WebKit2Gtk/DerivedSources/webkit2/*.h
159
157} 160}
158 161