From 67d29672b97392b980ae924fb28b504ba525e6d4 Mon Sep 17 00:00:00 2001 From: lzq11122 Date: Tue, 29 Jul 2025 11:46:44 +0800 Subject: [PATCH] fix spec for add sw64 architecture Signed-off-by: lzq11122 --- 1001-webkitgtk-add-loongarch-and-sw.patch | 25 +++++++++++++++++++++++ webkitgtk.spec | 6 ++++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 1001-webkitgtk-add-loongarch-and-sw.patch diff --git a/1001-webkitgtk-add-loongarch-and-sw.patch b/1001-webkitgtk-add-loongarch-and-sw.patch new file mode 100644 index 0000000..1c04745 --- /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 f985be9..fb78622 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 -- Gitee