diff --git a/1001-webkitgtk-add-loongarch-and-sw.patch b/1001-webkitgtk-add-loongarch-and-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..1c04745582a7611b5568c544086cfb407ffc44ba --- /dev/null +++ b/1001-webkitgtk-add-loongarch-and-sw.patch @@ -0,0 +1,25 @@ +From fc28e3dba8c33c201a671e487480f822c8b99bfb Mon Sep 17 00:00:00 2001 +From: lzq11122 +Date: Tue, 29 Jul 2025 14:45:58 +0800 +Subject: [PATCH 1/1] webkitgtk-add-loongarch-and-sw.patch + +--- + 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..b4ed5f31 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(__sw_64__) || \ + defined(_MIPS_ARCH_MIPS32R2) || \ + defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \ + defined(__riscv) || \ +-- +2.43.5 + diff --git a/webkitgtk.spec b/webkitgtk.spec index f985be9247fbc2d870f5ca0cc3e1ac98165aebaa..fb786222a33dc09c9807b2232ac823485f6bba09 100644 --- a/webkitgtk.spec +++ b/webkitgtk.spec @@ -1,4 +1,4 @@ -%define anolis_release 3 +%define anolis_release 4 ## 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 @@ -27,7 +27,7 @@ Source1: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz.asc Patch01: riscv-use-unknown-cpu.patch Patch02: fix_code_error.patch - +Patch03: 1001-webkitgtk-add-loongarch-and-sw.patch BuildRequires: bison BuildRequires: bubblewrap @@ -456,6 +456,8 @@ export NINJA_STATUS="[2/2][%f/%t %es] " %endif %changelog +* Tue Jul 29 2025 lzq11122 - 2.48.1-4 +- fix spec for add sw64 architecture * Tue Jun 24 2025 doupengda - 2.48.1-3 - add support for loongarch64