[gmt] 01/05: Add patch by John Paul Adrian Glaubitz for m68k support. (closes: #865726)

Bas Couwenberg sebastic at debian.org
Sat Jun 24 11:31:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository gmt.

commit 38642cf2cda6a11048efd14dfd5e43767d74d2d4
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Jun 24 11:16:32 2017 +0200

    Add patch by John Paul Adrian Glaubitz for m68k support. (closes: #865726)
---
 debian/changelog                  |  7 +++++++
 debian/patches/m68k-support.patch | 19 +++++++++++++++++++
 debian/patches/series             |  1 +
 3 files changed, 27 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index f0d78be..83d84b1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+gmt (5.4.1+dfsg-2) UNRELEASED; urgency=medium
+
+  * Add patch by John Paul Adrian Glaubitz for m68k support.
+    (closes: #865726)
+
+ -- Bas Couwenberg <sebastic at debian.org>  Sat, 24 Jun 2017 11:15:52 +0200
+
 gmt (5.4.1+dfsg-1) unstable; urgency=medium
 
   * Move from experimental to unstable.
diff --git a/debian/patches/m68k-support.patch b/debian/patches/m68k-support.patch
new file mode 100644
index 0000000..bb30d6a
--- /dev/null
+++ b/debian/patches/m68k-support.patch
@@ -0,0 +1,19 @@
+Description: Add support for m68k.
+ This patch adds support for m68k by defining the correct
+ macro to determine the instruction pointer from ucontext.
+ .
+Author: John Paul Adrian Glaubitz <glaubitz at physik.fu-berlin.de>
+Bug-Debian: https://bugs.debian.org/865726
+Last-Update: 2017-06-24
+
+--- a/src/common_sighandler.c
++++ b/src/common_sighandler.c
+@@ -83,6 +83,8 @@ void backtrace_symbols_fd(void *const *b
+ #  define UC_IP(uc) ((void *) (uc)->uc_mcontext.arm_pc)
+ # elif defined( __hppa__)
+ #  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(__s390__)
+ #  define UC_IP(uc) ((void *) (uc)->uc_mcontext.psw.addr)
+ # elif defined(__sparc__)
diff --git a/debian/patches/series b/debian/patches/series
index 65bf2b3..6ec2ec9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 disable-triangle.patch
 manpage-section.patch
+m68k-support.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/gmt.git



More information about the Pkg-grass-devel mailing list