Native backtraces don't work on powerpc, sparc and arm*
authorStephane Glondu <steph@glondu.net>
Sat, 9 Nov 2013 06:56:39 +0000 (07:56 +0100)
committerStephane Glondu <steph@glondu.net>
Sun, 10 Nov 2013 01:46:41 +0000 (02:46 +0100)
debian/patches/0014-Native-backtraces-don-t-work-on-powerpc-sparc-and-ar.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0014-Native-backtraces-don-t-work-on-powerpc-sparc-and-ar.patch b/debian/patches/0014-Native-backtraces-don-t-work-on-powerpc-sparc-and-ar.patch
new file mode 100644 (file)
index 0000000..35372e9
--- /dev/null
@@ -0,0 +1,25 @@
+From: Stephane Glondu <steph@glondu.net>
+Date: Sat, 9 Nov 2013 07:56:39 +0100
+Subject: Native backtraces don't work on powerpc, sparc and arm*
+
+---
+ testsuite/tests/backtrace/Makefile | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/testsuite/tests/backtrace/Makefile b/testsuite/tests/backtrace/Makefile
+index 83f9472..ce563be 100644
+--- a/testsuite/tests/backtrace/Makefile
++++ b/testsuite/tests/backtrace/Makefile
+@@ -18,7 +18,10 @@ OTHERFILES=backtrace2.ml raw_backtrace.ml
+ default:
+       $(MAKE) byte
+-      @if $(BYTECODE_ONLY); then : ; else $(MAKE) native; fi
++      @case `dpkg-architecture -qDEB_BUILD_ARCH` in \
++        sparc|powerpc|arm*) : ;; \
++        *) if $(BYTECODE_ONLY) ; then : ; else $(MAKE) native; fi ;; \
++      esac
+ .PHONY: byte
+ byte:
+-- 
index d67ae494c7fb055622fdda086cb6a72a6b65d36d..efbcf038342d564fc0d72f5bf0027273746a05a6 100644 (file)
@@ -11,3 +11,4 @@
 0011-Enable-mkstemp-in-yacc.patch
 0012-Fix-ocamlopt-on-sparc.patch
 0013-Tune-resource-usage-of-some-tests.patch
+0014-Native-backtraces-don-t-work-on-powerpc-sparc-and-ar.patch