[gmt] 01/02: Add patch to fix build on mips*.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Sat Jun 27 14:27:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository gmt.
commit 8382b7f33987d0b87e45b66f0e728f4e9222f8df
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sat Jun 27 13:13:42 2015 +0200
Add patch to fix build on mips*.
---
debian/changelog | 6 ++++++
debian/patches/mips.patch | 15 +++++++++++++++
debian/patches/series | 1 +
3 files changed, 22 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index eb29216..6ac844f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+gmt (5.1.2+dfsg1-1~exp4) UNRELEASED; urgency=medium
+
+ * Add patch to fix build on mips*.
+
+ -- Bas Couwenberg <sebastic at debian.org> Sat, 27 Jun 2015 15:51:53 +0200
+
gmt (5.1.2+dfsg1-1~exp3) experimental; urgency=medium
* Only recompress man pages if they exist.
diff --git a/debian/patches/mips.patch b/debian/patches/mips.patch
new file mode 100644
index 0000000..f1afed6
--- /dev/null
+++ b/debian/patches/mips.patch
@@ -0,0 +1,15 @@
+Description: Use ucontext from aarch64 for mips too.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://gmt.soest.hawaii.edu/issues/720
+
+--- a/src/common_sighandler.c
++++ b/src/common_sighandler.c
+@@ -75,7 +75,7 @@ void backtrace_symbols_fd(void *const *b
+ #elif defined(SIZEOF_GREG_T)
+ # ifdef __x86_64__
+ # define UC_IP(uc) ((void *) (uc)->uc_mcontext.gregs[REG_RIP])
+-# elif defined(__aarch64__)
++# elif defined(__aarch64__) || defined(__mips__)
+ # define UC_IP(uc) ((void *) (uc)->uc_mcontext.pc)
+ # elif defined( __arm__)
+ # define UC_IP(uc) ((void *) (uc)->uc_mcontext.arm_pc)
diff --git a/debian/patches/series b/debian/patches/series
index 98c6946..73d1746 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ algorithm-typo.patch
length-typo.patch
palette-typo.patch
kfreebsd.patch
+mips.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