From 2bdb6c413a7db77b05435bca84a3935fcbf5f5ce Mon Sep 17 00:00:00 2001 From: Jingyun Hua Date: Fri, 18 Nov 2022 09:12:47 +0000 Subject: [PATCH] add loongarch64 support Signed-off-by: Jingyun Hua --- 0001-add-support-loongarch64.patch | 27 +++++++++++++++++++++++++++ icu.spec | 6 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0001-add-support-loongarch64.patch diff --git a/0001-add-support-loongarch64.patch b/0001-add-support-loongarch64.patch new file mode 100644 index 0000000..52031c5 --- /dev/null +++ b/0001-add-support-loongarch64.patch @@ -0,0 +1,27 @@ +From beefaa392eaf51355f9a3806a004c762d1ce17fa Mon Sep 17 00:00:00 2001 +From: Jingyun Hua +Date: Fri, 18 Nov 2022 09:00:58 +0000 +Subject: [PATCH] add support loongarch64 + +Signed-off-by: Jingyun Hua +--- + 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 303668f..77f5ded 100644 +--- a/source/i18n/double-conversion-utils.h ++++ b/source/i18n/double-conversion-utils.h +@@ -160,7 +160,8 @@ int main(int argc, char** argv) { + defined(__riscv) || defined(__e2k__) || \ + defined(__or1k__) || defined(__arc__) || defined(__ARC64__) || \ + 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.33.0 + diff --git a/icu.spec b/icu.spec index 91feada..a802f2b 100644 --- a/icu.spec +++ b/icu.spec @@ -1,6 +1,6 @@ Name: icu Version: 72.1 -Release: 1 +Release: 2 Summary: International Components for Unicode License: MIT and UCD and Public Domain URL: http://site.icu-project.org/ @@ -13,6 +13,7 @@ Requires: lib%{name} = %{version}-%{release} Patch1: gennorm2-man.patch Patch2: icuinfo-man.patch Patch3: backport-remove-TestJitterbug6175.patch +Patch4: 0001-add-support-loongarch64.patch %description Tools and utilities for developing with icu. @@ -129,6 +130,9 @@ LD_LIBRARY_PATH=lib:stubdata:tools/ctestfw:$LD_LIBRARY_PATH bin/uconv -l %changelog +* Fri Nov 18 2022 huajingyun - 72.1-2 +- add loongarch64 support + * Sat Nov 15 2022 zhouwenpei - 72.1-1 - update to icu4c-72.1