Package: a2jmidid
Version: 8~dfsg0-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu vivid ubuntu-patch
Dear Maintainer,
a2jmidid currently FTBFS on arm64 due to NGREG not existing. This patch adds a
check to see if the current architecture is arm64 before checking the NGREG
condition.
In Ubuntu, the attached patch was applied to achieve the following:
* debian/patches/arm64-sigsegv.patch: Disable NGREG check to fix FTBFS on
arm64.
Thanks for considering the patch.
Logan Rosen
-- System Information:
Debian Release: jessie/sid
APT prefers vivid-updates
APT policy: (500, 'vivid-updates'), (500, 'vivid-security'), (500, 'vivid'),
(100, 'vivid-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-25-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru a2jmidid-8~dfsg0/debian/patches/arm64-sigsegv.patch a2jmidid-8~dfsg0/debian/patches/arm64-sigsegv.patch
--- a2jmidid-8~dfsg0/debian/patches/arm64-sigsegv.patch 1969-12-31 19:00:00.000000000 -0500
+++ a2jmidid-8~dfsg0/debian/patches/arm64-sigsegv.patch 2014-12-13 04:05:55.000000000 -0500
@@ -0,0 +1,13 @@
+Description: disable NGREG check on arm64
+Author: Logan Rosen <[email protected]>
+--- a/sigsegv.c
++++ b/sigsegv.c
+@@ -91,7 +91,7 @@
+ a2j_error("info.si_errno = %d", info->si_errno);
+ a2j_error("info.si_code = %d (%s)", info->si_code, si_codes[info->si_code]);
+ a2j_error("info.si_addr = %p", info->si_addr);
+-#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__)
++#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__) && !defined(__aarch64__)
+ for(i = 0; i < NGREG; i++)
+ a2j_error("reg[%02d] = 0x" REGFORMAT, i,
+ #if defined(__powerpc__) && !defined(__powerpc64__)
diff -Nru a2jmidid-8~dfsg0/debian/patches/series a2jmidid-8~dfsg0/debian/patches/series
--- a2jmidid-8~dfsg0/debian/patches/series 2012-08-02 07:19:38.000000000 -0400
+++ a2jmidid-8~dfsg0/debian/patches/series 2014-12-13 04:05:48.000000000 -0500
@@ -1 +1,3 @@
shebangs.diff
+arm64-sigsegv.patch