diff --git a/0001-Add-loongarch64-support-for-poco.patch b/0001-Add-loongarch64-support-for-poco.patch new file mode 100644 index 0000000000000000000000000000000000000000..0dafae2d620ba0197b12bd4db91d9583b889a0bf --- /dev/null +++ b/0001-Add-loongarch64-support-for-poco.patch @@ -0,0 +1,48 @@ +From d1056cbdcbf997a234430a71f031eb45819055f1 Mon Sep 17 00:00:00 2001 +From: Jingyun Hua +Date: Tue, 23 May 2023 12:03:30 +0000 +Subject: [PATCH] Add loongarch64 support for poco + +Signed-off-by: Jingyun Hua +--- + Foundation/include/Poco/Platform.h | 4 ++++ + Foundation/src/utils.h | 1 + + 2 files changed, 5 insertions(+) + +diff --git a/Foundation/include/Poco/Platform.h b/Foundation/include/Poco/Platform.h +index 799db41..70c253e 100644 +--- a/Foundation/include/Poco/Platform.h ++++ b/Foundation/include/Poco/Platform.h +@@ -135,6 +135,7 @@ + #define POCO_ARCH_AARCH64 0x0f + #define POCO_ARCH_ARM64 0x0f // same as POCO_ARCH_AARCH64 + #define POCO_ARCH_RISCV64 0x10 ++#define POCO_ARCH_LOONGARCH64 0x11 + + + #if defined(__ALPHA) || defined(__alpha) || defined(__alpha__) || defined(_M_ALPHA) +@@ -228,6 +229,9 @@ + #elif defined(__riscv) && (__riscv_xlen == 64) + #define POCO_ARCH POCO_ARCH_RISCV64 + #define POCO_ARCH_LITTLE_ENDIAN 1 ++#elif defined(__loongarch64) ++ #define POCO_ARCH POCO_ARCH_LOONGARCH64 ++ #define POCO_ARCH_LITTLE_ENDIAN 1 + #endif + + +diff --git a/Foundation/src/utils.h b/Foundation/src/utils.h +index c87cee1..dfbc7f7 100644 +--- a/Foundation/src/utils.h ++++ b/Foundation/src/utils.h +@@ -58,6 +58,7 @@ + defined(__avr32__) || \ + defined(__hppa__) || defined(__ia64__) || \ + defined(__mips__) || \ ++ defined(__loongarch__) || \ + defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \ + defined(__sparc__) || defined(__sparc) || defined(__s390__) || \ + defined(__SH4__) || defined(__alpha__) || \ +-- +2.33.0 + diff --git a/poco.spec b/poco.spec index cbc17d9827dc31c2a9195a7cf368cd22cfe4e0d4..cdba0d3a9a40bc8f110523f3b8395cb9c18bbbd0 100644 --- a/poco.spec +++ b/poco.spec @@ -1,8 +1,9 @@ Name: poco Version: 1.10.1 -Release: 3 +Release: 4 Summary: This is ROS melodic ros_comm's 3rdparty poco License: BSL-1.0 +Patch0: 0001-Add-loongarch64-support-for-poco.patch URL: https://github.com/pocoproject/poco/releases/tag/poco-1.10.1-release Source0: https://github.com/pocoproject/poco/archive/poco-1.10.1-release.tar.gz BuildRequires: gcc-c++ @@ -15,6 +16,7 @@ This is ROS melodic ros_comm's 3rdparty poco. %prep %setup +%patch -p1 %install mkdir cmake-build/ @@ -35,6 +37,9 @@ find %{buildroot} -type f -name '*.so.*' -exec strip '{}' ';' /usr/local/* %changelog +* Tue May 23 2023 huajingyun - 1.10.1-4 +- Add loongarch64 support + * Wed Jun 15 2022 loong_C - 1.10.1-3 - update poco.spec for License error and bad log