Bug#1058719: geeqie: add loongarch64 support

2023-12-16 Thread Andreas Rönnquist
Control: forwarded 1058719 https://github.com/BestImageViewer/geeqie/pull/1219

Thank you very much for the patch! I have forwarded this to the
upstream bug tracker, and will include the patch in a Debian release if
upstream takes too long to include it in a upstream release.

Thanks!
/Andreas Rönnquist
gus...@debian.org



Bug#1058719: geeqie: add loongarch64 support

2023-12-14 Thread zhangdandan

Source: geeqie
Version: 1:2.1-1
Severity: wishlist
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

The geeqie source package lacks LoongArch architecture support.
Please consider the patch I have attached.
The geeqie source package was compiled successfully on my local loong64 
rootfs environment.

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

thanks,
Dandan Zhang

Description: add support for loongarch64 
Last-Update: 2023-12-14

--- geeqie-2.1.orig/src/backward.h
+++ geeqie-2.1/src/backward.h
@@ -4250,6 +4250,8 @@ public:
 #else
   error_addr = reinterpret_cast(uctx->uc_mcontext.pc);
 #endif
+#elif defined(__loongarch64)
+error_addr = reinterpret_cast(uctx->uc_mcontext.__pc);
 #elif defined(__mips__)
 error_addr = reinterpret_cast(
 reinterpret_cast(>uc_mcontext)->sc_pc);