Bug#1043264: sunpinyin: Please add support for arch loongarch64

2023-08-08 Thread Boyuan Yang
Hi,

在 2023-08-08星期二的 15:55 +0800,zhangdandan写道:
> Package: sunpinyin
> Version: 3.0.0~rc2+ds1-4
> Severity: wishlist
> Tags: patch
> User: debian-de...@lists.debian.org
> Usertags: loongarch64
> 
> Dear maintainers,
> 
>     When I compiled sunpinyin for loongarch architecture, it reported 
> missing architecture support.
> The error message is as follows,
> In file included from src/portability.cpp:39:
> ./config.h:124:3: error: #error can not detect the endianness!
>    124 | # error can not detect the endianness!
>    |   ^
> 
> We have added loongarch architecture support for sunpinyin, the patch 
> can be found in the attachment.
> 
> If you have any questions, you can contact me at any time.

I will take the patch as submitted previously at
https://github.com/sunpinyin/sunpinyin/pull/140 . They look essentially the
same.

Thanks,
Boyuan Yang


signature.asc
Description: This is a digitally signed message part


Bug#1043264: sunpinyin: Please add support for arch loongarch64

2023-08-08 Thread zhangdandan

Package: sunpinyin
Version: 3.0.0~rc2+ds1-4
Severity: wishlist
Tags: patch
User: debian-de...@lists.debian.org
Usertags: loongarch64

Dear maintainers,

   When I compiled sunpinyin for loongarch architecture, it reported 
missing architecture support.

The error message is as follows,
In file included from src/portability.cpp:39:
./config.h:124:3: error: #error can not detect the endianness!
  124 | # error can not detect the endianness!
  |   ^

We have added loongarch architecture support for sunpinyin, the patch 
can be found in the attachment.


If you have any questions, you can contact me at any time.

thanks,
Dandan Zhang

Subject: [PATCH] Add loongarch64 support

---
 SConstruct | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/SConstruct b/SConstruct
index 9fce9bf..68c71a4 100644
--- a/SConstruct
+++ b/SConstruct
@@ -349,7 +349,8 @@ def AppendEndianCheck(conf):
   || defined(__alpha__) || defined(__ARMEL__) \
   || defined(_MIPSEL)   || (defined(__sh__) && defined(__LITTLE_ENDIAN__)) \
   || defined(__riscv) \
-  || defined(__AARCH64EL__)
+  || defined(__AARCH64EL__) \
+  || defined(__loongarch__)
 # undef WORDS_BIGENDIAN
 
 #else
-- 
2.39.2