From bffb5659e7a6c3fb62193d75950514e110f6f7c3 Mon Sep 17 00:00:00 2001 From: Jingyun Hua Date: Fri, 18 Nov 2022 08:48:56 +0000 Subject: [PATCH] add loongarch64 support Signed-off-by: Jingyun Hua --- 0001-support-loongarch64.patch | 26 ++++++++++++++++++++++++++ icu.spec | 6 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0001-support-loongarch64.patch diff --git a/0001-support-loongarch64.patch b/0001-support-loongarch64.patch new file mode 100644 index 0000000..108b8a0 --- /dev/null +++ b/0001-support-loongarch64.patch @@ -0,0 +1,26 @@ +From a7d14392275a078b4d35076a0d7a24a5594b296f Mon Sep 17 00:00:00 2001 +From: Wenlong Zhang +Date: Fri, 29 Apr 2022 10:22:17 +0800 +Subject: [PATCH] support loongarch64 + +--- + source/i18n/double-conversion-utils.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/source/i18n/double-conversion-utils.h b/source/i18n/double-conversion-utils.h +index c937463..44e55d5 100644 +--- a/source/i18n/double-conversion-utils.h ++++ b/source/i18n/double-conversion-utils.h +@@ -128,7 +128,8 @@ int main(int argc, char** argv) { + defined(__riscv) || defined(__e2k__) || \ + defined(__or1k__) || defined(__arc__) || \ + defined(__microblaze__) || defined(__XTENSA__) || \ +- defined(__EMSCRIPTEN__) || defined(__wasm32__) ++ defined(__EMSCRIPTEN__) || defined(__wasm32__) || \ ++ defined(__loongarch__) + #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 + #elif defined(__mc68000__) || \ + defined(__pnacl__) || defined(__native_client__) +-- +2.27.0 + diff --git a/icu.spec b/icu.spec index c854959..045230d 100644 --- a/icu.spec +++ b/icu.spec @@ -1,6 +1,6 @@ Name: icu Version: 69.1 -Release: 2 +Release: 3 Summary: International Components for Unicode License: MIT and UCD and Public Domain URL: http://site.icu-project.org/ @@ -12,6 +12,7 @@ Requires: lib%{name} = %{version}-%{release} Patch1: gennorm2-man.patch Patch2: icuinfo-man.patch +Patch3: 0001-support-loongarch64.patch %description Tools and utilities for developing with icu. @@ -125,6 +126,9 @@ LD_LIBRARY_PATH=lib:stubdata:tools/ctestfw:$LD_LIBRARY_PATH bin/uconv -l %changelog +* Fri Nov 18 2022 huajingyun - 69.1-3 +- add loongarch64 support + * Thu Jul 16 2020 hanhui - 69.1-2 - delete libicu*.so.67* -- Gitee