From d86f03cfa57aade6388d2a860775c5034178ff06 Mon Sep 17 00:00:00 2001 From: yeah_wang Date: Fri, 19 Mar 2021 19:44:38 +0800 Subject: [PATCH] fix webkit aarch64 page size (cherry picked from commit b1a5df0b0664c496f22805d5110002cfe42f7d3f) --- webkit-aarch64_page_size.patch | 15 +++++++++++++++ webkit2gtk3.spec | 15 ++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 webkit-aarch64_page_size.patch diff --git a/webkit-aarch64_page_size.patch b/webkit-aarch64_page_size.patch new file mode 100644 index 0000000..0e532d8 --- /dev/null +++ b/webkit-aarch64_page_size.patch @@ -0,0 +1,15 @@ +diff -Naru a/Source/WTF/wtf/PageBlock.h b/Source/WTF/wtf/PageBlock.h +--- a/Source/WTF/wtf/PageBlock.h 2020-04-24 16:43:26.000000000 +0800 ++++ b/Source/WTF/wtf/PageBlock.h 2021-03-19 19:13:08.942852245 +0800 +@@ -49,9 +49,9 @@ + // Use 64 KiB for any unknown CPUs to be conservative. + #if OS(DARWIN) + constexpr size_t CeilingOnPageSize = 16 * KB; +-#elif OS(WINDOWS) || CPU(MIPS) || CPU(MIPS64) || CPU(X86) || CPU(X86_64) || CPU(ARM) || CPU(ARM64) ++#elif OS(WINDOWS) || CPU(MIPS) || CPU(MIPS64) || CPU(X86) || CPU(X86_64) || CPU(ARM) + constexpr size_t CeilingOnPageSize = 4 * KB; +-#elif CPU(UNKNOWN) || CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) ++#elif CPU(UNKNOWN) || CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) || CPU(ARM64) + constexpr size_t CeilingOnPageSize = 64 * KB; + #else + #error Must set CeilingOnPageSize in PageBlock.h when adding a new CPU architecture! diff --git a/webkit2gtk3.spec b/webkit2gtk3.spec index 1931c02..721114f 100644 --- a/webkit2gtk3.spec +++ b/webkit2gtk3.spec @@ -5,7 +5,7 @@ #Basic Information Name: webkit2gtk3 Version: 2.28.3 -Release: 2 +Release: 4 Summary: GTK+ Web content engine library License: LGPLv2 AND BSD-3-Clause AND ICU AND MIT URL: http://www.webkitgtk.org/ @@ -13,6 +13,8 @@ Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz Patch0: user-agent-branding.patch +Patch6000: webkit-aarch64_page_size.patch + #Dependency BuildRequires: at-spi2-core-devel bison cairo-devel cmake enchant2-devel BuildRequires: flex fontconfig-devel freetype-devel ninja-build @@ -108,7 +110,12 @@ pushd %{_target_platform} -DCMAKE_BUILD_TYPE=Release \ -DENABLE_GTKDOC=ON \ -DENABLE_MINIBROWSER=ON \ + -DUSE_WPE_RENDERER=OFF \ -DPYTHON_EXECUTABLE=%{_bindir}/python3 \ +%ifarch aarch64 + -DENABLE_JIT=OFF \ + -DUSE_SYSTEM_MALLOC=ON \ +%endif .. popd @@ -175,6 +182,12 @@ done %{_datadir}/gtk-doc/html/webkitdomgtk-4.0/ %changelog +* Fri Mar 19 2021 Dehui Fan - 2.28.3-4 +- DESC: fix webkit aarch64 page size + +* Tue Dec 15 2020 hanhui - 2.28.3-3 +- modify license + * Wed Aug 05 2020 songnannan - 2.28.3-2 - change the mesa-libELGS-devel to libglvnd-devel -- Gitee