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<void *>(uctx->uc_mcontext.pc);
     #endif
+#elif defined(__loongarch64)
+    error_addr = reinterpret_cast<void *>(uctx->uc_mcontext.__pc);
 #elif defined(__mips__)
     error_addr = reinterpret_cast<void *>(
         reinterpret_cast<struct sigcontext *>(&uctx->uc_mcontext)->sc_pc);

Reply via email to