[Git][debian-gis-team/gmt][master] Add patch by John Paul Adrian Glaubit to support riscv64 & sh4. (closes: #958556)
Bas Couwenberg
gitlab at salsa.debian.org
Thu Apr 23 17:58:55 BST 2020
Bas Couwenberg pushed to branch master at Debian GIS Project / gmt
Commits:
56d081e0 by Bas Couwenberg at 2020-04-23T18:58:44+02:00
Add patch by John Paul Adrian Glaubit to support riscv64 & sh4. (closes: #958556)
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/riscv64-sh4-support.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+gmt (6.0.0+dfsg-3) UNRELEASED; urgency=medium
+
+ * Add patch by John Paul Adrian Glaubit to support riscv64 & sh4.
+ (closes: #958556)
+
+ -- Bas Couwenberg <sebastic at debian.org> Thu, 23 Apr 2020 18:58:10 +0200
+
gmt (6.0.0+dfsg-2) unstable; urgency=medium
* Drop Name field from upstream metadata.
=====================================
debian/patches/riscv64-sh4-support.patch
=====================================
@@ -0,0 +1,22 @@
+Description: Add build support for riscv64 and sh4
+ Defines UC_IP() on riscv64 and sh4 so that gmt can be built on
+ these targets.
+Author: John Paul Adrian <glaubitz at physik.fu-berlin.de>
+Forwarded: https://github.com/GenericMappingTools/gmt/pull/3155
+Bug-Debian: https://bugs.debian.org/958556
+
+--- a/src/common_sighandler.c
++++ b/src/common_sighandler.c
+@@ -86,8 +86,12 @@ void backtrace_symbols_fd(void *const *b
+ # define UC_IP(uc) ((void *) (uc)->uc_mcontext.sc_iaoq[0])
+ # elif defined(__m68k__)
+ # define UC_IP(uc) ((void *) (uc)->uc_mcontext.gregs[R_PC])
++# elif defined(__riscv)
++# define UC_IP(uc) ((void *) (uc)->uc_mcontext.__gregs[REG_PC])
+ # elif defined(__s390__)
+ # define UC_IP(uc) ((void *) (uc)->uc_mcontext.psw.addr)
++# elif defined( __sh4__)
++# define UC_IP(uc) ((void *) (uc)->uc_mcontext.pc)
+ # elif defined(__sparc__)
+ # if defined (__arch64__)
+ # define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_gregs[MC_PC])
=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@ disable-triangle.patch
incorrect-path-for-interpreter.patch
no-docs.patch
0001-Address-the-issue-2493-where-GMT-fails-to-build-unde.patch
+riscv64-sh4-support.patch
View it on GitLab: https://salsa.debian.org/debian-gis-team/gmt/-/commit/56d081e0c10382e598d21fdd80a428a1f63f0486
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/gmt/-/commit/56d081e0c10382e598d21fdd80a428a1f63f0486
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20200423/415adfa9/attachment-0001.html>
More information about the Pkg-grass-devel
mailing list