diff --git a/1000-add-loongarch64-support.patch b/1000-add-loongarch64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..c1ae53247ee2e4b719dd1370e90199f9477b68a2 --- /dev/null +++ b/1000-add-loongarch64-support.patch @@ -0,0 +1,25 @@ +From 54521bfb9d2d82353cd06efad9361bfd00bcdbf7 Mon Sep 17 00:00:00 2001 +From: yangcheng1203 +Date: Thu, 22 May 2025 09:44:10 +0800 +Subject: [PATCH] add loongarch64 support + +--- + Source/WTF/wtf/dtoa/utils.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Source/WTF/wtf/dtoa/utils.h b/Source/WTF/wtf/dtoa/utils.h +index 46b04529..501489c3 100644 +--- a/Source/WTF/wtf/dtoa/utils.h ++++ b/Source/WTF/wtf/dtoa/utils.h +@@ -88,7 +88,7 @@ int main(int argc, char** argv) { + defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \ + defined(_POWER) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || \ + defined(__sparc__) || defined(__sparc) || defined(__s390__) || \ +- defined(__SH4__) || defined(__alpha__) || \ ++ defined(__SH4__) || defined(__alpha__) || defined(__loongarch64) || \ + defined(_MIPS_ARCH_MIPS32R2) || \ + defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \ + defined(__riscv) || \ +-- +2.43.5 + diff --git a/webkitgtk.spec b/webkitgtk.spec index 78fab2354461b878aa0f98637df448cc4473ed94..1d28c72f02d36deba742bb1d1c3aa278f0d7d67c 100644 --- a/webkitgtk.spec +++ b/webkitgtk.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 ## NOTE: Lots of files in various subdirectories have the same name (such as ## "LICENSE") so this short macro allows us to distinguish them by using their @@ -23,7 +23,7 @@ URL: https://www.webkitgtk.org/ Source0: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz Source1: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz.asc -ExcludeArch: loongarch64 +Patch1000: 1000-add-loongarch64-support.patch BuildRequires: bison BuildRequires: bubblewrap @@ -255,6 +255,10 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1 %if !0%{?with_gamepad} -DENABLE_GAMEPAD=OFF \ %endif +%ifarch loongarch64 + -DENABLE_JIT=OFF \ + -DUSE_SYSTEM_MALLOC=ON \ +%endif %ifarch aarch64 -DUSE_64KB_PAGE_BLOCK=ON \ %endif @@ -274,6 +278,10 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1 %if !0%{?with_gamepad} -DENABLE_GAMEPAD=OFF \ %endif +%ifarch loongarch64 + -DENABLE_JIT=OFF \ + -DUSE_SYSTEM_MALLOC=ON \ +%endif %ifarch aarch64 -DUSE_64KB_PAGE_BLOCK=ON \ %endif @@ -294,6 +302,10 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1 %if !0%{?with_gamepad} -DENABLE_GAMEPAD=OFF \ %endif +%ifarch loongarch64 + -DENABLE_JIT=OFF \ + -DUSE_SYSTEM_MALLOC=ON \ +%endif %ifarch aarch64 -DUSE_64KB_PAGE_BLOCK=ON \ %endif @@ -429,6 +441,9 @@ export NINJA_STATUS="[2/2][%f/%t %es] " %endif %changelog +* Wed May 21 2025 Cheng Yang - 2.48.1-2 +- Rebuild for loongarch64 + * Mon May 12 2025 wenxin - 2.48.1-1 - update to 2.48.1